Forum Moderators: phranque
========================
1. I created user "testuser"
2. I created virtualhost
<VirtualHost *:80>
DocumentRoot /home/testuser/mysite-com
ServerName www.mysite.com
ServerAlias mysite.com *.mysite.com
<Directory /home/testuser/mysite-com>
Options -Indexes IncludesNOEXEC FollowSymLinks
allow from all
AllowOverride All
</Directory>
</VirtualHost>
3. I created file index.html in folder "mysite-com".
4. Permissions:
drwxr-xr-x 3 root root 4096 Sep 1 15:48 home
drwx--x--x 3 testuser testuser 4096 Sep 1 16:43 testuser
drwxr-xr-x 2 testuser testuser 4096 Sep 1 16:51 mysite-com
-rwxr-xr-x 1 testuser testuser 6 Sep 1 16:51 index.html
5. I restarted Apache
6. Result:
Stopping httpd: [ OK ]
Starting httpd: Warning: DocumentRoot [/home/testuser/mysite-com] does not exist
[ OK ]
5. /var/log/httpd/error_log file shows:
$
[Mon Sep 01 17:38:54 2008] [error] [client 111.111.111.111] (13)Permission denied: $
==============================
I tried to change DocumentRoot to:
/home/testuser
and also created index.html in this folder.
In this case Apache shows default Apache Test page instead of showing index.html file from "testuser" folder.
==============================
Can anyone help to solve this problem?
Thanks.
Still the same error:
Starting httpd: Warning: DocumentRoot [/home/testuser/mysite-com] does not exist
:(