| Author |
Message |
djtriptoy
Joined: 30 Dec 2007
Posts: 26
|
| Posted: Thu Feb 07, 2008 6:33 pm Post subject: Apache Virtual Hosts Trouble |
|
|
My primary domain functions,
http://www.triptoy.net
A hosted domain for a friend works fine,
http://www.slivovitzmusic.com
and now I tried adding a domain for a family member...
http://www.areawiderepair.com
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
Code:
NameVirtualHost 67.18.186.137:80
<VirtualHost 67.18.186.137:80>
ServerName triptoy.net
ServerAlias www.triptoy.net
DocumentRoot "/var/www"
ScriptAlias /cgi-bin/ /var/www/cgi-bin/
</VirtualHost>
<VirtualHost 67.18.186.137:80>
ServerName slivovitzmusic.com
ServerAlias www.slivovitzmusic.com
DocumentRoot "/home/slivovitzmusic.com/public_html"
ScriptAlias /cgi-bin/ /home/slivovitzmusic.com/cgi-bin/
</VirtualHost>
<VirtualHost 67.18.186.137: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? |
|
| Back to top |
|
kangaby
Joined: 20 Oct 2004
Posts: 61
|
| Posted: Thu Feb 07, 2008 8:25 pm Post subject: |
|
|
| Have you re-loaded Apache? |
|
| Back to top |
|
djtriptoy
Joined: 30 Dec 2007
Posts: 26
|
| Posted: Fri Feb 08, 2008 9:54 am Post subject: |
|
|
Quote: Have you re-loaded Apache?
Yes, and had to reboot for another reason... Neither worked. |
|
| Back to top |
|
nabber00
Joined: 02 Dec 2007
Posts: 24
|
| Posted: Fri Feb 08, 2008 1:15 pm Post subject: |
|
|
| Looks like its working to me? |
|
| Back to top |
|
djtriptoy
Joined: 30 Dec 2007
Posts: 26
|
| Posted: Fri Feb 08, 2008 2:05 pm Post subject: |
|
|
It looks fine to me as well, but if you go to http://www.areawiderepair.com/ it tells me forbidden, you do not have access to "/"
The other two work fine.
I have an index.html file in that directory so this shouldnt be the case... |
|
| Back to top |
|
SteveG
Joined: 30 Nov 2003
Posts: 199
|
| Posted: Fri Feb 08, 2008 3:45 pm Post subject: |
|
|
Well, problem one is that www.areawiderepair.com points to yahoo servers. Did you forget to update DNS? Or has it just not propagated yet?
As for the error you're seeing, it looks a lot like a permissions or ownership problem on the directory or index file. |
|
| Back to top |
|
djtriptoy
Joined: 30 Dec 2007
Posts: 26
|
| Posted: Fri Feb 08, 2008 4:19 pm Post subject: |
|
|
propagation. what I see is:
Code:
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 |
|
| Back to top |
|
SteveG
Joined: 30 Nov 2003
Posts: 199
|
| Posted: Sat Feb 09, 2008 2:10 pm Post subject: |
|
|
| You've still got DNS problems., as of 1300 CST Feb 9. I think you need to update the registration to point to your new nameserver(s). |
|
| Back to top |
|
djtriptoy
Joined: 30 Dec 2007
Posts: 26
|
| Posted: Tue Feb 19, 2008 6:55 pm Post subject: |
|
|
This is still fudged. The DNS resolvers have been fixed but it still claims "/" is inaccessible. I don't know what happened, one moment I could see the page I created on the server and all of a sudden its back to forbidden. I didn't change anything to cause it to stop working....
Anyone have any ideas? |
|
| Back to top |
|
djtriptoy
Joined: 30 Dec 2007
Posts: 26
|
| Posted: Tue Feb 19, 2008 7:05 pm Post subject: |
|
|
Doh! Nevermind....
Somehow the permissions were messed up, again? Anyone have a recommendation on the proper permissions to have on public_html and the files within? |
|
| Back to top |
|
irgeek
Joined: 21 Jun 2003
Posts: 92
Location: Denver, CO
|
| Posted: Wed Feb 20, 2008 3:51 am Post subject: |
|
|
Code: 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. |
|
| Back to top |
|
blogpuzzles
Joined: 19 Feb 2008
Posts: 14
|
| Posted: Wed Feb 20, 2008 8:49 pm Post subject: Try a site manaager. |
|
|
| I use ISPConfig (http://www.ispconfig.org) to manage lots of websites with email (including antivirus and antispam), ftp, and other functionality. It's a free product and eases the administrative burden of server management. |
|
| Back to top |
|
| |