[EMAIL PROTECTED] Use of environment variables in configuration files?

2006-08-25 Thread Devraj Mukherjee
Hello World, Is it possible to environment variables such as the domain name being access to adaptable Apache configuration. Such as Alias /documents /home/www/domain.com.au/documents Where domain.com.au could be replaced depending on what domain name was accessed. Any help is appreciated.

[EMAIL PROTECTED] CGI Processes hanging in state W

2006-08-25 Thread Steve Swift
If we monitor the /server-status page of our apache 2.0.57 running under linux we notice a build up of processes that are hung in state W, which is Sending Reply:6-1 13451 1/3/3 W 0.83 1141 0 0.0 0.01 0.01 9.135.165.197 climate.uk.ibm.com POST /sat/satindex.cmd HTTP/1.1They are *always* CGI

RE: [EMAIL PROTECTED] Apache restarts on logrotate

2006-08-25 Thread Ralph.Grothe
On Unix systems most daemon processes are written to trap a SIGHUP sent to their proccess ID (PID) and reinitialize. This is common behaviour and handy if you either need to propagate a change in the daemon's configuration, or want it to release locks or file handles. The latter is mostly required

Re: [EMAIL PROTECTED] Use of environment variables in configuration files?

2006-08-25 Thread Joshua Slive
On 8/25/06, Devraj Mukherjee [EMAIL PROTECTED] wrote: Hello World, Is it possible to environment variables such as the domain name being access to adaptable Apache configuration. Such as Alias /documents /home/www/domain.com.au/documents Where domain.com.au could be replaced depending on

[EMAIL PROTECTED] Order of checks

2006-08-25 Thread Steve Swift
We have two apache webservers running release 2.0.57On one of them, if we ask for a non-existent script from a protected directory we get the 404 Not Found response without a prompt for username and password.On the other one, we get prompted for username and password and when we get those right we

Re: [EMAIL PROTECTED] Order of checks

2006-08-25 Thread Joshua Slive
On 8/25/06, Steve Swift [EMAIL PROTECTED] wrote: We have two apache webservers running release 2.0.57 On one of them, if we ask for a non-existent script from a protected directory we get the 404 Not Found response without a prompt for username and password. On the other one, we get prompted for

[EMAIL PROTECTED] redirect without changing URL?

2006-08-25 Thread Bing Du
Hello, We're running Apache 2.0.52 on RHEL 4. After moving a site to a new Apache server that has a new file structure, we did redirect for a customer to keep their old URL working. The redirection http://www.dept.some.edu/somegroup = http://www.dept.some.edu/long/path/to/somegroup works

Re: [EMAIL PROTECTED] redirect without changing URL?

2006-08-25 Thread Joshua Slive
On 8/25/06, Bing Du [EMAIL PROTECTED] wrote: Hello, We're running Apache 2.0.52 on RHEL 4. After moving a site to a new Apache server that has a new file structure, we did redirect for a customer to keep their old URL working. The redirection http://www.dept.some.edu/somegroup =

Re: [EMAIL PROTECTED] redirect without changing URL?

2006-08-25 Thread Shawn Beard
Yes this is possible. You can use alias directive and or a rewrite directive. I would recommend a rewrite instead of a redirect as often Apache doesnt like to be redirected to itself. Here is some good documentation on how to use it: http://httpd.apache.org/docs/2.0/misc/rewriteguide.html

Re: [EMAIL PROTECTED] Add SSL + https to Apache2 Proxied site - won't start!

2006-08-25 Thread Chris Dagnon
Thanks for that hint - I didn't think to check log files since it didn't start. error.log said the app's log file couldn't be created so I updated that location to match my previous values. Victim of cut-and-paste-itis. But I'm back to 'can't establish a connection to the server at...' when

Re: [EMAIL PROTECTED] redirect without changing URL?

2006-08-25 Thread Bing Du
Start here: http://httpd.apache.org/docs/2.2/urlmapping.html What you want is probably a simple Alias. But note that it is best not to have two permanent URLs mapping to the same place. So you should make one URL or the other be a Redirect. Thanks for the quick response. What if I need

Re: [EMAIL PROTECTED] redirect without changing URL?

2006-08-25 Thread Joshua Slive
On 8/25/06, Bing Du [EMAIL PROTECTED] wrote: Start here: http://httpd.apache.org/docs/2.2/urlmapping.html What you want is probably a simple Alias. But note that it is best not to have two permanent URLs mapping to the same place. So you should make one URL or the other be a Redirect.

Re: [EMAIL PROTECTED] redirect without changing URL?

2006-08-25 Thread Bing Du
You could use AliasMatch ^/group/$ /var/www/html/log/path/to/group/overview.html Alias /group/ /var/www/html/log/path/to/group/ The above config triggers the following warning: [warn] The Alias directive in /etc/httpd/conf.d/dept.conf at line 19 will probably never match because it overlaps

Re: [EMAIL PROTECTED] 503 response with mod_rewrite?

2006-08-25 Thread Evaldas Imbrasas
Is there a way to do this redirect on a conditional as a rewrite rule allows, though? I.e., return a 503 if a certain file exists? Is there a way to return a custom document along with a 503 Network Unavailable response code using mod_rewrite rules? The documentation mentions the ability to

Re: [EMAIL PROTECTED] redirect without changing URL?

2006-08-25 Thread Joshua Slive
On 8/25/06, Bing Du [EMAIL PROTECTED] wrote: You could use AliasMatch ^/group/$ /var/www/html/log/path/to/group/overview.html Alias /group/ /var/www/html/log/path/to/group/ The above config triggers the following warning: [warn] The Alias directive in /etc/httpd/conf.d/dept.conf at line 19

Re: [EMAIL PROTECTED] redirect without changing URL?

2006-08-25 Thread Bing Du
You could use AliasMatch ^/group/$ /var/www/html/log/path/to/group/overview.html Alias /group/ /var/www/html/log/path/to/group/ The above config triggers the following warning: [warn] The Alias directive in /etc/httpd/conf.d/dept.conf at line 19 will probably never match because it

Re: [EMAIL PROTECTED] 503 response with mod_rewrite?

2006-08-25 Thread Joshua Slive
On 8/25/06, Evaldas Imbrasas [EMAIL PROTECTED] wrote: Is there a way to do this redirect on a conditional as a rewrite rule allows, though? I.e., return a 503 if a certain file exists? Is there a way to return a custom document along with a 503 Network Unavailable response code using

Re: [EMAIL PROTECTED] 503 response with mod_rewrite?

2006-08-25 Thread Evaldas Imbrasas
On 8/25/06, Joshua Slive [EMAIL PROTECTED] wrote: On 8/25/06, Evaldas Imbrasas [EMAIL PROTECTED] wrote: Is there a way to do this redirect on a conditional as a rewrite rule allows, though? I.e., return a 503 if a certain file exists? Sure, just make a certain file an .htaccess file in the

Re: [EMAIL PROTECTED] 503 response with mod_rewrite?

2006-08-25 Thread Joshua Slive
On 8/25/06, Evaldas Imbrasas [EMAIL PROTECTED] wrote: On 8/25/06, Joshua Slive [EMAIL PROTECTED] wrote: On 8/25/06, Evaldas Imbrasas [EMAIL PROTECTED] wrote: Is there a way to do this redirect on a conditional as a rewrite rule allows, though? I.e., return a 503 if a certain file exists?

Re: [EMAIL PROTECTED] 503 response with mod_rewrite?

2006-08-25 Thread Evaldas Imbrasas
It would be no more performance-draining to check for an .htaccess file than it would be to check for any other file as a condition for issuing a 503. If .htaccess files are enabled, Apache would check for their existance recursively, wouldn't it? Meaning, for a requested file that is 4

Re: [EMAIL PROTECTED] 503 response with mod_rewrite?

2006-08-25 Thread Joshua Slive
On 8/25/06, Evaldas Imbrasas [EMAIL PROTECTED] wrote: It would be no more performance-draining to check for an .htaccess file than it would be to check for any other file as a condition for issuing a 503. If .htaccess files are enabled, Apache would check for their existance recursively,

Re: [EMAIL PROTECTED] Add SSL + https to Apache2 Proxied site - won't start!

2006-08-25 Thread Chris Dagnon
1. Sorry about cc'ing to you personally - I did a Reply All to keep the message and forgot to amend the headers. 2. Reproducible fix: Finally got the secured site to server by adding to /etc/apache2/mods-available/ssl.conf one line: Listen 443 3. Reproducible fix: I eliminated the

[EMAIL PROTECTED] vitual subdomain problems

2006-08-25 Thread RYAN vAN GINNEKEN
Using Apache/1.3.34 (Unix) PHP/4.4.2 configured with 4.11-STABLE FreeBSD I am having trouble creating a subdomain the rest of my virtual sites seem to work. THE problem is that everytime i try to view thecontentforsite1.computerking.ca i get the content fromwww.computerking.cawhich is

[EMAIL PROTECTED] apr-config

2006-08-25 Thread David Link
Hi I have installed Apache 2.2.3 on a RedHat Linux Enterprise 4ES system and am trying to install mod_perl 2. The installation of mod_perl insists on apr-config being somewhere on the system but the install of Apache 2.2.3 does not seem to have installed a new apr-config (I cannot find it in

Re: [EMAIL PROTECTED] vitual subdomain problems

2006-08-25 Thread Joshua Slive
On 8/25/06, RYAN vAN GINNEKEN [EMAIL PROTECTED] wrote: Using Apache/1.3.34 (Unix) PHP/4.4.2 configured with 4.11-STABLE FreeBSD I am having trouble creating a subdomain the rest of my virtual sites seem to work. THE problem is that everytime i try to view the content for

[EMAIL PROTECTED] Alias/RewriteRule/ProxyPass/SSL - how do they coexist?

2006-08-25 Thread Chris Dagnon
Here is hopefully a succinct re-statement of my current problem: I had a website setup and it was working fine using VirtualHost ProxyPass to forward to another port and a server-level Alias+Directory pair to forward all image requests to a concrete, common directory. Now that I've added SSL

Re: [EMAIL PROTECTED] 503 response with mod_rewrite?

2006-08-25 Thread Bob Ionescu
Evaldas Imbrasas wrote: On 8/25/06, Joshua Slive [EMAIL PROTECTED] wrote: On 8/25/06, Evaldas Imbrasas [EMAIL PROTECTED] wrote: Is there a way to do this redirect on a conditional as a rewrite rule allows, though? I.e., return a 503 if a certain file exists? Sure, just make a certain file an

[EMAIL PROTECTED] 301 redirect with mod_rewrite? Possible to use relitive paths rather then FQDN paths?

2006-08-25 Thread John H. Nyhuis
I was wondering if anyone has given thought to allowing the use of relative paths with the mod_rewrite package rather then requiring full paths. i.e., in the .htaccess file: Redirect 301 ./neuro.asp ../neurology.php (does not work) instead of: Redirect 301

Re: [EMAIL PROTECTED] 301 redirect with mod_rewrite? Possible to use relitive paths rather then FQDN paths?

2006-08-25 Thread Joshua Slive
On 8/25/06, John H. Nyhuis [EMAIL PROTECTED] wrote: I was wondering if anyone has given thought to allowing the use of relative paths with the mod_rewrite package rather then requiring full paths. i.e., in the .htaccess file: Redirect 301 ./neuro.asp ../neurology.php (does not work)

Re: [EMAIL PROTECTED] vitual subdomain problems

2006-08-25 Thread RYAN vAN GINNEKEN
I have commented out the default host and have this setting in my config file if i set it * i get a bunch of overlap warnings as my vhosts.conf file uses the ipaddress not the star i think? But still get the default site when i try to load site1.computerking.ca # # Use name-based virtual

Re: [EMAIL PROTECTED] vitual subdomain problems

2006-08-25 Thread Joshua Slive
On 8/25/06, RYAN vAN GINNEKEN [EMAIL PROTECTED] wrote: I have commented out the default host and have this setting in my config file if i set it * i get a bunch of overlap warnings as my vhosts.conf file uses the ipaddress not the star i think? But still get the default site when i try to load