Forbidden

12 posts / 0 new
Last post
#1 Mon, 07/02/2007 - 16:01
GregNewman

Forbidden

I setup a new virtual server this morning, all default settings. I can view the site fine through webmin as the proxy, but when I try to get the site direct through the domain name, I get:

Forbidden You don't have permission to access / on this server.

What is wrong with this setup? FTP is fine, email seems fine, just can't get the site. Again, I used the default setup when creating this virtual.

Thanks!

Mon, 07/02/2007 - 16:51
ah...lifes...good

Which version of Virtualmin are you using? If you are using an old version, there may be a bug.

You can fix the problem with:

chmod 750 /home/domainname

Mon, 07/02/2007 - 16:54 (Reply to #2)
Mon, 07/02/2007 - 17:03 (Reply to #3)
GregNewman

chmod did not fix it.
I'm running 3.41

Mon, 07/02/2007 - 17:04 (Reply to #4)
GregNewman

the other strange thing I notice is if I explicitly access the index.php file which does exist I get a 404.

Tue, 07/10/2007 - 11:45 (Reply to #5)
GregNewman

Joe, it's showing /home, so I guess we're good on that end.
I think when you installed virtualmin for me you had to reinstall apache.

The logs are not showing anything that I can find. Shoot me an email at carbon8. I can't figure out where this is failing. ;(

Sat, 07/14/2007 - 02:24 (Reply to #6)
Joe
Joe's picture

Ok, to follow up on this one now that it's been resolved.

Apache was being configured with a private IP address found on eth0. The public IPs on the server were on eth1. Switching that in the Module Configuration:Other Server Settings page, and then using the Change IP Address form to fix it in all of the various configuration files knocked the problem right out.

--

Check out the forum guidelines!

Sat, 07/14/2007 - 14:31 (Reply to #7)
GregNewman

Thanks for the help Joe!

Thu, 07/05/2007 - 22:13
Joe
Joe's picture

Hey Greg,

What's in the error_log (both /var/log/httpd/error_log or /var/log/apache2/error_log and /home/domain/logs/error_log) when you hit the page? That might give us a clue.

For PHP stuff, I'd suspect maybe the wrong Apache version got installed. Ours has suexec rebuilt for the docroot in /home, while the default on most operating systems is somewhere in /var.

--

Check out the forum guidelines!

Thu, 07/05/2007 - 22:15 (Reply to #9)
Joe
Joe's picture

Oh, I didn't mention how to check the apache:

As root, execute:

suexec -V

Then look for "-D AP_DOC_ROOT=". If it's /home, you're good. If not, we'll have to get the right Apache version installed.

--

Check out the forum guidelines!

Sun, 08/26/2007 - 19:32
KrisKenyon

Hello I am having a simualar issue though only when viewing the web page through Virtualmin (it works outside of virtualmin) I did discover that if I run suexec2 -V it returns -D AP_DOC_ROOT="/var/www" I am running on Ubuntu 6.06 and tried to reinstall appache via aptitude with the same results. What am I missing?

Mon, 09/05/2011 - 21:04
phocks

I'm having the same issue. It happened after my server froze for no reason. Now all my domains are throwing a 403 Forbidden error.

Topic locked