www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Moore <ramo...@atlantech.net>
Subject config/1935: NCSA compatibility issue, ServerRoot in <VirtualHost> block
Date Wed, 11 Mar 1998 16:58:32 GMT

>Number:         1935
>Category:       config
>Synopsis:       NCSA compatibility issue, ServerRoot in <VirtualHost> block
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          doc-bug
>Submitter-Id:   apache
>Arrival-Date:   Wed Mar 11 10:10:01 PST 1998
>Originator:     ramoore@atlantech.net
>Release:        1.2.5
BSDI v 2.0.1 and BSDI v 3.1
NCSA v 1.5.2
Apache v 1.2.5
I'm moving from NCSA v 1.5.2a to Apache v 1.2.5 and have run into a compatibility
issue that I could not find on the Compatibility notes page (http://www.apache.org/docs/misc/compat_notes.html)

With NCSA, I could use the "ServerRoot" directive inside of a VirtualHost definition,
which allowed me use use blocks like the following:

<VirtualHost 111.222.333.444 Required >
ServerName      www.company1.com  
DocumentRoot    /usr/local/etc/httpd/virtual/company1/docs
ServerRoot      /usr/local/etc/httpd/virtual/company1
ResourceConfig  conf/srm.conf
TransferLog     logs/access_log 
ErrorLog        logs/error_log

With Apache, using this block in the config file results in the main host and
every vhost using the ServerRoot listed in the last vhost definition.

The funtionality I need can be reproduced by changing the vhost definition to:
<VirtualHost 111.222.333.444 >
ServerName      www.company1.com  
DocumentRoot    /usr/local/etc/httpd/virtual/company1/docs
ResourceConfig  /usr/local/etc/httpd/virtual/company1/conf/srm.conf
TransferLog     /usr/local/etc/httpd/virtual/company1/logs/access_log 
ErrorLog        /usr/local/etc/httpd/virtual/company1/logs/error_log

But, it took me several hours to figure out the problem and I'd like to save
that time for anyone else in the same situation.

Thanks to all the developers for a wonderful product.

Just add another entry to the NCSA compatibility notes
[In order for any reply to be added to the PR database, ]
[you need to include <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]

View raw message