Apache Virtual Hosts Trouble
A hosted domain for a friend works fine,
and now I tried adding a domain for a family member…
Which does not work, it appears apache is trying to point to "/" instead of the /home/areawiderepair.com/public_html folder.
here is my httpd.conf
NameVirtualHost 126.96.36.199:80 <virtualhost 188.8.131.52:80="">ServerName triptoy.net ServerAlias www.triptoy.net DocumentRoot "/var/www" ScriptAlias /cgi-bin/ /var/www/cgi-bin/</virtualhost> <virtualhost 184.108.40.206:80="">ServerName slivovitzmusic.com ServerAlias www.slivovitzmusic.com DocumentRoot "/home/slivovitzmusic.com/public_html" ScriptAlias /cgi-bin/ /home/slivovitzmusic.com/cgi-bin/</virtualhost> <virtualhost 220.127.116.11:80="">ServerName areawiderepair.com ServerAlias www.areawiderepair.com DocumentRoot "/home/areawiderepair.com/public_html" ScriptAlias /cgi-bin/ /home/areawiderepair.com/cgi-bin/</virtualhost>
Anyone else see what the problem is?
> Have you re-loaded Apache?
Yes, and had to reboot for another reason… Neither worked.
The other two work fine.
I have an index.html file in that directory so this shouldnt be the case…
As for the error you're seeing, it looks a lot like a permissions or ownership problem on the directory or index file.
Forbidden You don't have permission to access / on this server. ---------------------------------------- Apache/2.2.3 (Debian) PHP/5.2.0-8+etch10 Server at areawiderepair.com Port 80
Yep.. the problem was the permission! thanks
Anyone have any ideas?
Somehow the permissions were messed up, again? Anyone have a recommendation on the proper permissions to have on public_html and the files within?
Directories: 0755 = drwxr-xr-x
Files: 0644 = -rw-r--r--
CGIs: 0755 = -rwxr-xr-x
I've see strange problems where file permissions were changing for no apparent reason. It was because of the [FTP|SFTP] client software used to transfer files to the server. If you're seeing that, get a better client.