Is the correct forum for this question. I am not an expert and have not found an answer after several hours of looking on Google. I also checked the Similar Threads listing.
I want to set up localhost subdomains in an Apache/2.2.11 (Fedora) Server. Here are the changes I made to httpd.conf:
#
NameVirtualHost *:80
#
..
<VirtualHost *:80>
# ServerAdmin
webmaster@dummy-host.example.com
DocumentRoot /home/bobn/test
ServerName test.localhost
<Directory "/home/bobn/test">
Options All
AllowOverride All
Allow from All
</Directory>
ErrorLog logs/test_error_log
# CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
I added a test page, boo.html, to home/bobn/test. When I enter test.localhost.boo.html into Firefox I get:
Forbidden
You don't have permission to access /test/index.php on this server.
The httpd error_log shows no error but test_error_log lists the following:
[Wed Jun 10 04:27:59 2009] [error] [client 127.0.0.1] (13)Permission denied: access to /boo.html denied
The permissions for boo.html are
-rwxrwx--- 1 bobn apache 391 2009-06-09 18:37 boo.html
I have disabled SELinux until I can solve this problem.
Removing the <Directory> element from <VirtualHost *:80> produces the same result.
What should I try next?.
Thanks in Advance,
Bob N