I am using the Desktop Version of Ubuntu Lucid Lynx, but I am posting here because I think all of you server guru's can help me. I am setting up my desktop as a mobile development server. I am hoping to eventually have it work with an intranet. Anyways I am trying to configure this and I hit a snag.
I have a 403 forbidden error. I've read around and I thought it might have something to do with SELinux
Here is my Virtualhost file
I was wondering if everything is set up correctly in the configuration file to allow access to the starace document directory?
DirectoryIndex index.html index.php
Options Indexes FollowSymLinks MultiViews
allow from all
ScriptAlias /cgi-bin/ /home/chris/cgi-bin/
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Allow from all
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
CustomLog /home/chris/logs/access.log combined
I have added this to the sites enabled using the a2ensite command. The logs appear to be working just fine.
I have an index.html in the /home/chris/public_html/
I added starace to the /etc/hosts/
Both the public_html and index.html have read permission
ls -l: -rwxr-xr-x 1 chris chris 6 2010-06-08 15:30 index.html
drwxr-xr-x 2 chris chris 4096 2010-06-14 02:04 public_html
I go to http://starace/index.html and I get
You don't have permission to access /index.html on this server.
Apache/2.2.14 (Ubuntu) Server at starace Port 80
The error log tells me
[Mon Jun 14 02:43:03 2010] [error] [client 127.0.1.1] (13)Permission denied: access to /index.html denied
Why am I getting a 403? How can I set the permissions to allow the content to be shown?