Re: [us...@httpd] Re: Redirecting / to non slash

2010-05-17 Thread Igor Cicimov
Dude, you really want everything serve on a plate :) RewriteRule (.*)/(.*)/$ $1/$2 [R=301,L] or even better RewriteRule (.*)/$ $1 [R=301,L] On Tue, May 18, 2010 at 4:37 PM, Nilesh Govindarajan wrote: > On 05/18/2010 11:17 AM, Igor Cicimov wrote: > >> Don't forget to switch the rewrite engine

Re: [us...@httpd] Re: Redirecting / to non slash

2010-05-17 Thread Nilesh Govindarajan
On 05/18/2010 11:17 AM, Igor Cicimov wrote: Don't forget to switch the rewrite engine on first though: RewriteEngine On RewriteRule (.*)/foo/$ $1/foo [R=301,L] On Tue, May 18, 2010 at 3:45 PM, Igor Cicimov mailto:icici...@gmail.com>> wrote: Anything wrong with just simple redirect like thi

Re: [us...@httpd] Re: Redirecting / to non slash

2010-05-17 Thread Igor Cicimov
Don't forget to switch the rewrite engine on first though: RewriteEngine On RewriteRule (.*)/foo/$ $1/foo [R=301,L] On Tue, May 18, 2010 at 3:45 PM, Igor Cicimov wrote: > Anything wrong with just simple redirect like this? > > RewriteRule (.*)/foo/$ $1/foo [R=301,L] > > Igor > > > On Tue, May 1

Re: [us...@httpd] Re: Redirecting / to non slash

2010-05-17 Thread Igor Cicimov
Anything wrong with just simple redirect like this? RewriteRule (.*)/foo/$ $1/foo [R=301,L] Igor On Tue, May 18, 2010 at 11:25 AM, Nilesh Govindarajan wrote: > I am using Zend PHP Framework for my application, so all requests to > non-existent files, directories (or links) are sent to > /index.

Re: [us...@httpd] Struggle with Named Virtual Host - The SecondNamedVirtual HostAlways Returns 404 File Not Found Error

2010-05-17 Thread Igor Cicimov
Ah yes first revert to the initial VHost order... On Tue, May 18, 2010 at 3:15 PM, Igor Cicimov wrote: > First, any .htaccess file by some chance that is messing up your config? > Second, It looks like the requests for download sub domain are heating the > main domain server ... can you confirm

Re: [us...@httpd] Struggle with Named Virtual Host - The SecondNamedVirtual HostAlways Returns 404 File Not Found Error

2010-05-17 Thread Igor Cicimov
First, any .htaccess file by some chance that is messing up your config? Second, It looks like the requests for download sub domain are heating the main domain server ... can you confirm that in the access log for debrass2.ana.bna.boeing.com (go to download-devbrass2.ana.bna.boeing.com and tail -f

RE: [us...@httpd] Struggle with Named Virtual Host - The SecondNamedVirtual HostAlways Returns 404 File Not Found Error

2010-05-17 Thread Wang, Mary Y
Hmm.. It's getting interesting.. I reversed the order of the virtual host containers, and so now download-devbrass2 is the first virtual host and devbrass2 is the second virtual host. To my surprise, download-devbrass is still not working but devbrass2 is still working. I'm not sure if you saw

Re: [us...@httpd] Struggle with Named Virtual Host - The SecondNamed Virtual HostAlways Returns 404 File Not Found Error

2010-05-17 Thread Peter J Milanese
Silly question, did you try reversing the order of the virt containers? - Original Message - From: "Smith, Cathy" [cathy.sm...@pnl.gov] Sent: 05/17/2010 09:06 PM MST To: "Wang, Mary Y" ; "users@httpd.apache.org" Subject: RE: [us...@httpd] Struggle with Named Virtual Host - The

RE: [us...@httpd] Struggle with Named Virtual Host - The SecondNamed Virtual HostAlways Returns 404 File Not Found Error

2010-05-17 Thread Wang, Mary Y
Could any kind of Directory directive would cause this kind of behavior? Mary From: Wang, Mary Y Sent: Monday, May 17, 2010 9:09 PM To: Smith, Cathy; users@httpd.apache.org Subject: RE: [us...@httpd] Struggle with Named Virtual Host - The SecondNamed Virtual Host

RE: [us...@httpd] Struggle with Named Virtual Host - The SecondNamed Virtual HostAlways Returns 404 File Not Found Error

2010-05-17 Thread Wang, Mary Y
Cathy. I'm running httpd-2.0.46 Mary From: Smith, Cathy [mailto:cathy.sm...@pnl.gov] Sent: Monday, May 17, 2010 9:07 PM To: Wang, Mary Y; users@httpd.apache.org Subject: RE: [us...@httpd] Struggle with Named Virtual Host - The SecondNamed Virtual HostAlways Retu

RE: [us...@httpd] Struggle with Named Virtual Host - The SecondNamed Virtual HostAlways Returns 404 File Not Found Error

2010-05-17 Thread Smith, Cathy
Mary I just re-read the first posting, and should have asked if you are running Apache 2.0 or Apache 2.2. Cathy --- Cathy L. Smith IT Engineer Pacific Northwest National Laboratory Phone: 509.375.2687 Fax:509.375.2330 Email: cathy.sm...@pnl.gov From: Wang, Mary Y [mailto:mary.y.w

RE: [us...@httpd] Struggle with Named Virtual Host - The SecondNamed Virtual HostAlways Returns 404 File Not Found Error

2010-05-17 Thread Wang, Mary Y
Cathy, It came with the system (I didn't build it from source). Basically, the main virtual host works, but the second virtual host just returns the 404 File Not Found Error (even when the file exists in that directory and permissions is correct) Mary From: Smi

RE: [us...@httpd] Struggle with Named Virtual Host - The Second Named Virtual HostAlways Returns 404 File Not Found Error

2010-05-17 Thread Smith, Cathy
Mary Did you build Apache from source or get it as a Red Hat rpm? I ran into what sounds like a similar problem. I was running RHEL5 and built Apache 2.2.11 from source. Cathy --- Cathy L. Smith IT Engineer Pacific Northwest National Laboratory Phone: 509.375.2687 Fax:509.375.233

RE: [us...@httpd] Struggle with Named Virtual Host - The Second Named Virtual HostAlways Returns 404 File Not Found Error

2010-05-17 Thread Wang, Mary Y
Cathy, It's RHEL 3.9. Mary From: Smith, Cathy [mailto:cathy.sm...@pnl.gov] Sent: Monday, May 17, 2010 8:40 PM To: users@httpd.apache.org; Wang, Mary Y Subject: RE: [us...@httpd] Struggle with Named Virtual Host - The Second Named Virtual HostAlways Returns 404 F

RE: [us...@httpd] Struggle with Named Virtual Host - The Second Named Virtual HostAlways Returns 404 File Not Found Error

2010-05-17 Thread Smith, Cathy
Mary Did you mention what platform? Cathy --- Cathy L. Smith IT Engineer Pacific Northwest National Laboratory Phone: 509.375.2687 Fax:509.375.2330 Email: cathy.sm...@pnl.gov From: Wang, Mary Y [mailto:mary.y.w...@boeing.com] Sent: Monday, May 17, 2010 8:37 PM To: users@httpd.ap

RE: [us...@httpd] Struggle with Named Virtual Host - The Second Named Virtual HostAlways Returns 404 File Not Found Error

2010-05-17 Thread Wang, Mary Y
I checked. The -x (execute) bit is turned for other, group and owner. Any other ideas? Mary From: Igor Cicimov [mailto:icici...@gmail.com] Sent: Sunday, May 16, 2010 10:16 PM To: users@httpd.apache.org Subject: Re: [us...@httpd] Struggle with Named Virtual Host

RE: [us...@httpd] Struggle with Named Virtual Host - The Second Named Virtual HostAlways Returns 404 File Not Found Error

2010-05-17 Thread Wang, Mary Y
Thanks for the help. I still have the same 404 File Not Found Error after updating the ServerName for both virtual hosts. I also updated the names of the log files and they didn't provide additional hints of what the problem is. Mary -Original Message- From: Tapas Mishra [mailto:mi

[us...@httpd] Re: Redirecting / to non slash

2010-05-17 Thread Nilesh Govindarajan
I am using Zend PHP Framework for my application, so all requests to non-existent files, directories (or links) are sent to /index.php/foo/a/b/c/d... Now what happens is- /index.php/foo and /index.php/foo/ are the same page. Same page with two different urls is considered bad, so how to redire

Re: [us...@httpd] Authentication and Authorization against different LDAP URLs

2010-05-17 Thread Eric Covener
On Mon, May 17, 2010 at 7:56 PM, Palle Sejer Larsen wrote: > > Hi, > I am trying to figure out how to configure Apache vhost.ssl to enable LDAP > user authentication and LDAP group authorization when these are implemented > on two different LDAP URLs. > > My understanding is that specifying multip

[us...@httpd] Authentication and Authorization against different LDAP URLs

2010-05-17 Thread Palle Sejer Larsen
Hi, I am trying to figure out how to configure Apache vhost.ssl to enable LDAP user authentication and LDAP group authorization when these are implemented on two different LDAP URLs. My understanding is that specifying multiple URLs for AuthLDAPURL will not work for something like this - right

[us...@httpd] SOLVED! - Having problems with a redirect

2010-05-17 Thread Mike Soultanian
Well, I tried the following: Redirect 301 /~music "http://www.csulb.edu/music"; And it worked. So I guess problem solved! thanks, Mike On 5/17/2010 11:31 AM, Mike Soultanian wrote: Hello, I'm trying to redirect everyone that goes to http://www.csulb.edu/~music over to http://www.csulb.edu/de

Re: [us...@httpd] apache hanging whole system

2010-05-17 Thread Peter Halicky
Hi Tom, PHP: The RES size of the apache processes is around 25Mb, which totals to about 2Gb with 80 processes. The VM is configured with 3Gb RAM, so memory should be OK. Mysql: This, I think, is the most likely explanation - mysql locks. To avoid this, I tried to set max_execution_time in mysql t

[us...@httpd] Having problems with a redirect

2010-05-17 Thread Mike Soultanian
Hello, I'm trying to redirect everyone that goes to http://www.csulb.edu/~music over to http://www.csulb.edu/depts/music (no tilde) using the following .htacess file: Options +FollowSymLinks RewriteEngine on RewriteRule ^(.*)$ http://www.csulb.edu/music/$1 [L,NC,R=301] I'm having mild success

Re: [us...@httpd] apache hanging whole system

2010-05-17 Thread Tom Evans
On Sun, May 16, 2010 at 9:42 PM, Peter Halicky wrote: > Hi, > > I run a "LAMP" server with a few websites, one of them quite busy. I use > Ubuntu 8.04 with apache 2.2.8 > and PHP 5.2.4. The problem is this: about once a day, apache processes > cause the system load to go very > high (today it was

Re: [us...@httpd] Redirecting / to non slash

2010-05-17 Thread Kevin Castellow
Ahh. I didn't read it correctly. What result is desired when "/foo" is going to be served? Do you want a directory listing, a default page, or is "/foo" a default page without an extension? Maybe that would help me understand the end goal because a directory still has to have a default page of som

Re: [us...@httpd] Redirecting / to non slash

2010-05-17 Thread Tom Evans
On Mon, May 17, 2010 at 5:31 PM, Kevin Castellow wrote: > I would take a look at this module: > http://httpd.apache.org/docs/2.2/mod/mod_dir.html > > Depending on how you built your Apache it should be there by default if you > used the "all" option for modules. > > It should do exactly what you a

RE: [us...@httpd] Directory index w/ virtual servers

2010-05-17 Thread Joseph L. Casale
>Check the mod_dir directions. Thanks for the reply, I forgot the welcome.conf has: Options -Indexes ErrorDocument 403 /error/noindex.html My bad... jlc - The official User-To-User support forum of the Apache HTTP Ser

Re: [us...@httpd] apache hanging whole system

2010-05-17 Thread Peter Halicky
Thanks for the info, I was just trying everything to somehow fix the problem, I was suspecting some kind of leak, but it is apparently not the case... Before the problems started (and I started fixing it) it was set to 0, the setting has no effect on the problem. On 17.05.2010 17:19, Jeff Trawick

Re: [us...@httpd] Directory index w/ virtual servers

2010-05-17 Thread Kevin Castellow
Check the mod_dir directions. This is an option in that module. I do not see a mapping to the page you want displayed as the default page. In this example it is the index.html page. The DirectoryIndex directive sets the list of resources to look for, when the client requests an index of the dir

Re: [us...@httpd] Redirecting / to non slash

2010-05-17 Thread Kevin Castellow
I would take a look at this module: http://httpd.apache.org/docs/2.2/mod/mod_dir.html Depending on how you built your Apache it should be there by default if you used the "all" option for modules. It should do exactly what you are looking for. Regards, Kevin Castellow http://kevincastellow.worki

Re: [us...@httpd] apache hanging whole system

2010-05-17 Thread Jeff Trawick
On Sun, May 16, 2010 at 4:42 PM, Peter Halicky wrote: > Hi, > > I run a "LAMP" server with a few websites, one of them quite busy. I use > Ubuntu 8.04 with apache 2.2.8 > and PHP 5.2.4. The problem is this: about once a day, apache processes > cause the system load to go very > high (today it was

[us...@httpd] Redirecting / to non slash

2010-05-17 Thread Nilesh Govindarajan
Hi, For SEO reasons, I'd like to redirect /page/ to /page, how to ? -- Nilesh Govindarajan (निलेश गोविंदराजन) Twitter: nileshgr Facebook: nilesh.gr Website: www.itech7.com - The official User-To-User support forum of the Apache

[us...@httpd] Directory index w/ virtual servers

2010-05-17 Thread Joseph L. Casale
On a default CentOS install I setup a virtual server for a repo and added this config which works for all dirs except the root, I get the welcome redirect. Anyone know what I missed? ServerNamefoo.domain.local DocumentRoot /path/foo Options Indexes AllowOverride All

Re: [us...@httpd] ssl certifikate mismatch

2010-05-17 Thread Reinhard Vicinus
On 17/05/10 13:36, Eric Covener wrote: Can you show in one terminal session the contents of the two certificates (openssl x509 -in ... -text | grep Subject:) and the console output of s_client that includes the subject? According to one of the active SNI folks, your openssl invocation shouldn't

Re: [us...@httpd] Apache strange(?) DNS problem

2010-05-17 Thread Matija Levec
Hi. nscd wasn't running. Didn't try to turn it on though. I guess I'll never find out what was the real reason, as I failed to reproduce the problem on another CentOS 5.4 machine. It could have been a typo (overlooked by two people) in config but I'll rather blame it on sun flares and bad karma.

Re: [us...@httpd] apache hanging whole system

2010-05-17 Thread Peter Halicky
Hi Igor, I use awstats, but that also doesn't show too much (I looked at the actual logs of apache in the period when this problem happened). I also think it's either PHP or MySQL, but there are very many scripts on the server, first I'd like to know which script/file is causing this, then I can l

Re: [us...@httpd] ssl certifikate mismatch

2010-05-17 Thread Eric Covener
On Sun, May 16, 2010 at 3:18 PM, Eric Covener wrote: >> Listen 10.137.1.104:9901 >> >> SSLEngine on >> SSLCertificateFile /etc/apache2/conf/www.aaa.at.crt >> SSLCertificateKeyFile /etc/apache2/conf/www.aaa.at.key >> Include conf/www.aaa.misc >> >> >> Listen 10.137.1.104:9902 >> >> SSLEngine on

Re: [us...@httpd] apache hanging whole system

2010-05-17 Thread Igor Cicimov
Peter...apart from the one mentioned above there are bunch of tools you can use to monitor and analyze your server like webalizer, awstats etc. From what you have given us above I would expect that PHP is the culprit in this situation ... except if your application has a database back end in which