httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike W <mi...@crucis.net>
Subject [users@httpd] Virtual Host document root problem
Date Fri, 18 Apr 2003 21:04:14 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have just upgraded from RH 7.3 with Apache 1.3.23 to RH 8.0 with 
Apache 2.0.40.  I've gone through the migration and have everything 
running except for one thing.  I can't seem to get the document root 
for the virtual hosts to change---they always stay with the global 
document root. 

With Apache 2.0.*, do you remove the global documentRoot and just use 
the ones in the VirtualHost containers?

Here are the ones I've added to httpd.conf...
# Default server
<VirtualHost *>
    ServerAdmin me@mydomain.net
    DocumentRoot /var/www/html
    ServerName www.mydomain.net
</VirtualHost>

# 2nd server 
<VirtualHost *>
    ServerAdmin me@mydomain.net
    DocumentRoot /var/www/html/2ndServerDir
    Servername www.my2nd-domain.net
</VirtualHost>

My Virtual servers worked fine in 1.3.23.

Mike W
- -- 
Registered Linux - 256979
NRA Life
ARS: WØTMW








-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+oGhR5fq6h2uDDlQRArvyAJ9y8UM7AYMfT8t4x0/7KcTEFuwmyACg0ijI
4kFKxcM8Xene5ezeaBB7SA4=
=lrjN
-----END PGP SIGNATURE-----


-- 
This message has been scanned for viruses and
dangerous content by F-Prot and MailScanner, 
and is believed to be clean.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message