www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Williams <tom.willi...@diversifiedsoftware.com>
Subject mod_alias/5612: Alias directive does not work within VirtualHost stanzas
Date Thu, 20 Jan 2000 22:21:19 GMT

>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
>Originator:     tom.williams@diversifiedsoftware.com
>Release:        1.3.6/1.3.9
RedHat Linux 5.2 w/ 2.0.38 kernel
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 <VirtualHost> section, I want to define some aliases for directories.
 I specify the Alias directive like this:
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"
Does anyone know why the Alias directive doesn't work properly when defined *only* in the
VirtualHost definition?
Thanks in advance for your time!
Try browsing the "http://www1.mynet.com/docs" URL with the VirtualHost config in the Full
Description section above.
Update the documentation on how to properly use the Alias directive with VirtualHost stanzas
if this problem is actually a configuration problem.
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> 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!     ]

View raw message