I'm trying to migrate Apache 1.x vhost server to Apache 2 on Centos
(but I'm not getting very far...)
I've put this in /etc/httpd/httpd.conf:
----
NameVirtualHost 203.42.34.53:80
<VirtualHost 203.42.34.53:80>
ServerName ww.sbt.net.au
DocumentRoot /home/sbt.net.au
<LocationMatch "^/+$">
Options -Indexes
ErrorDocument 403 /error/noindex.html
</LocationMatch>
</VirtualHost>
-----
that appears to server a page from /home/sbt.net.au OK;
BUT, when I edit docroot like this
---
DocumentRoot /home/sbt.net.au/www
---
on restart I get:
# service httpd restart
[ OK ]
Starting httpd: Warning: DocumentRoot [/home/sbt.net.au/www] does not exist
[ OK ]
# ls /home/sbt.net.au/www -al
total 24
drwxr-xr-x 2 apache apache 4096 Mar 18 23:55 .
drwxr-xr-x 4 root root 4096 May 30 10:15 ..
-rw-r--r-- 1 apache apache 9 Mar 18 23:53 index.html
# ls /home/sbt.net.au/ -al
total 40
drwxr-xr-x 4 root root 4096 May 30 10:15 .
drwxr-xr-x 8 root root 4096 Mar 18 23:52 ..
drwxr-xr-x 3 root root 4096 Mar 18 22:50 error
-rw-r--r-- 1 root apache 20 May 30 10:15 index.html
drwxr-xr-x 2 apache apache 4096 Mar 18 23:55 www
where am I going wrong...?
--
Voytek
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html