Received: (qmail 58923 invoked by uid 65534); 20 Jan 2000 22:21:19 -0000 Message-Id: <20000120222119.58922.qmail@locus.apache.org> Date: 20 Jan 2000 22:21:19 -0000 From: Tom Williams Reply-To: tom.williams@diversifiedsoftware.com To: submit@bugz.apache.org Subject: Alias directive does not work within VirtualHost stanzas X-Send-Pr-Version: 3.110 >Number: 5612 >Category: mod_alias >Synopsis: Alias directive does not work within VirtualHost stanzas >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Thu Jan 20 14:30:01 PST 2000 >Closed-Date: >Last-Modified: Thu Jan 20 21:10:01 PST 2000 >Originator: tom.williams@diversifiedsoftware.com >Release: 1.3.6/1.3.9 >Organization: apache >Environment: RedHat Linux 5.2 w/ 2.0.38 kernel gcc-2.95.2 glibc-2.0.7 >Description: Hi! I'm trying to use the Apache Alias directive to create aliases for directories. I've tried this on Apache 1.3.6 and 1.3.9 with the same results. Basically, I have some VirtualHosts defined and in each section, I want to define some aliases for directories. I specify the Alias directive like this: NameVirtualHost 192.168.0.1 ServerName www1.mynet.com Alias /docs "/mnt/lan3/dir/docs" DocumentRoot "/mnt/lan1/dir" ServerName www2.mynet.com DocumentRoot "/mnt/lan2/dir" The above is correct syntax, but it does not give the desired results. When I move the Alias directive outside (and before) the VirtualHost definitions, it works as I want it to work. Now, according to the Apache doc, the Alias directive applies to "server" and "virtual host" context. Does anyone know why the Alias directive doesn't work properly when defined *only* in the VirtualHost definition? Thanks in advance for your time! Peace.... Tom >How-To-Repeat: Try browsing the "http://www1.mynet.com/docs" URL with the VirtualHost config in the Full Description section above. >Fix: Update the documentation on how to properly use the Alias directive with VirtualHost stanzas if this problem is actually a configuration problem. >Release-Note: >Audit-Trail: From: vsolve apache To: tom.williams@diversifiedsoftware.com, submit@bugz.apache.org Cc: apbugs@Apache.Org Subject: Re: mod_alias/5612: Alias directive does not work within VirtualHost stanzas Date: Thu, 20 Jan 2000 21:09:40 -0800 (PST) Hi, Alias directive works fine both in server config and Virtualhost context. May be you have some problem with the Virtualhost. check for the DNS entry for your virtualhosts. regards, vsolve_apache v-solve dot com >Number: 5612 >Category: mod_alias >Synopsis: Alias directive does not work within VirtualHost stanzas >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Thu Jan 20 14:30:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: tom.williams@diversifiedsoftware.com >Release: 1.3.6/1.3.9 >Organization: apache >Environment: RedHat Linux 5.2 w/ 2.0.38 kernel gcc-2.95.2 glibc-2.0.7 >Description: Hi! I'm trying to use the Apache Alias directive to create aliases for directories. I've tried this on Apache 1.3.6 and 1.3.9 with the same results. Basically, I have some VirtualHosts defined and in each section, I want to define some aliases for directories. I specify the Alias directive like this: NameVirtualHost 192.168.0.1 ServerName www1.mynet.com Alias /docs "/mnt/lan3/dir/docs" DocumentRoot "/mnt/lan1/dir" ServerName www2.mynet.com DocumentRoot "/mnt/lan2/dir" The above is correct syntax, but it does not give the desired results. When I move the Alias directive outside (and before) the VirtualHost definitions, it works as I want it to work. Now, according to the Apache doc, the Alias directive applies to "server" and "virtual host" context. Does anyone know why the Alias directive doesn't work properly when defined *only* in the VirtualHost definition? Thanks in advance for your time! Peace.... Tom >How-To-Repeat: Try browsing the "http://www1.mynet.com/docs" URL with the VirtualHost config in the Full Description section above. >Fix: Update the documentation on how to properly use the Alias directive with VirtualHost stanzas if this problem is actually a configuration problem. >Release-Note: __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com From: vsolve apache To: tom.williams@diversifiedsoftware.com, submit@bugz.apache.org Cc: apbugs@Apache.Org Subject: Re: mod_alias/5612: Alias directive does not work within VirtualHost stanzas Date: Thu, 20 Jan 2000 21:09:40 -0800 (PST) Hi, Alias directive works fine both in server config and Virtualhost context. May be you have some problem with the Virtualhost. check for the DNS entry for your virtualhosts. regards, vsolve_apache v-solve dot com >Number: 5612 >Category: mod_alias >Synopsis: Alias directive does not work within VirtualHost stanzas >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Thu Jan 20 14:30:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: tom.williams@diversifiedsoftware.com >Release: 1.3.6/1.3.9 >Organization: apache >Environment: RedHat Linux 5.2 w/ 2.0.38 kernel gcc-2.95.2 glibc-2.0.7 >Description: Hi! I'm trying to use the Apache Alias directive to create aliases for directories. I've tried this on Apache 1.3.6 and 1.3.9 with the same results. Basically, I have some VirtualHosts defined and in each section, I want to define some aliases for directories. I specify the Alias directive like this: NameVirtualHost 192.168.0.1 ServerName www1.mynet.com Alias /docs "/mnt/lan3/dir/docs" DocumentRoot "/mnt/lan1/dir" ServerName www2.mynet.com DocumentRoot "/mnt/lan2/dir" The above is correct syntax, but it does not give the desired results. When I move the Alias directive outside (and before) the VirtualHost definitions, it works as I want it to work. Now, according to the Apache doc, the Alias directive applies to "server" and "virtual host" context. Does anyone know why the Alias directive doesn't work properly when defined *only* in the VirtualHost definition? Thanks in advance for your time! Peace.... Tom >How-To-Repeat: Try browsing the "http://www1.mynet.com/docs" URL with the VirtualHost config in the Full Description section above. >Fix: Update the documentation on how to properly use the Alias directive with VirtualHost stanzas if this problem is actually a configuration problem. >Release-Note: __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]