HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   General (
-   -   getting a "forbidden" error 403 when accessing any other page than ISPconfig panel. (

neumann 27th August 2012 14:13

getting a "forbidden" error 403 when accessing any other page than ISPconfig panel.
I have searched high and low here and with google, and I'm about to give up.

I've installed the perfect server for ubuntu 12.04 LTS with ISPconfig3 which I also have on another server, and think it's awesome.

I'm getting the response "forbidden" no matter what page I'm trying to get served. I expect to get the "It works" or the welcome page you guys have custumized. Usually ISPconfig works right out of the box. I have changed the port for the control panel to 8000 instead of 8080, (and it took me a while to realize that it is necessary to open that port from within ISPconfig as well. Otherwise it is impossible to reach the control panel after a reboot).

And I've been looking in /var/log/apache2/error.log where I get this line for every attempt:
[Mon Aug 27 12:54:52 2012] [error] [client x.x.x.x] client denied by server configuration: /etc/apache2/htdocs

But there are no htdocs anywhere on the machine!?? So the info is of no help.

What am I missing?

till 27th August 2012 14:17

You get this error when you use which port? And do you use the IP address, the hostname of the server or the domain of a website as URL in the browser?

neumann 27th August 2012 14:25

For now I'm using the ip number, but I originally found the problem when I had an external DNS service pointing to the server, so both things have been attemted.

I can fine connect to the ISPconfig admin pages with port 8000. It is when I try to connect to 1 vhost on port 80.

neumann 27th August 2012 14:27

I'm just setting up the system, so I have only 1 vhost right now. But I have made more than 1, and even if i havent uploaded anything, you guys have made a general index file with some information so one knows that it is working. But it doesn't for me right now. :-(

till 27th August 2012 14:32

1) Ensure that you selecetd the correct IP address in the website settings. If the IP dont show up, then add it under system > servr IP first.
2) the default vhost seems to be disabled on your server. Enable it with:

a2enmod default
/etc/init.d/apache2 restart

3) ensure that you access the sites by domain name and that the dns records of the domains point to the IP address of the site.

neumann 27th August 2012 16:25

If I try to:
a2enmod default
I get this error:

ERROR: Module default does not exist!

till 27th August 2012 16:35

Sorry, I posted the wrong command. Please use:

a2ensite default
/etc/init.d/apache2 restart

neumann 27th August 2012 20:42

This is the reply:
Site default already enabled

So it must be something else.

btw, thank you for helping me out. :-)

till 27th August 2012 21:04

I posted 3 possible resaons for the error, soweknow that ist not the secodn one.What about the other two?

neumann 27th August 2012 21:15

I have tried 1 and 2. without any luck.

I can't test 3 because the site doesn't have a dns at this time.

I have a (production) webpage which shall run on this new server. The DNS is from a third party, and when this server works I'll switch the DNS to point at the new server. I only have that domain name for the time being, so I can't really switch over before I have some idea that the server works.

And I know that the server works when I can se it response to the servers ip number. This is working on my own server which is also ispconfig3 just on ubuntu 10.04. So I know that if all is right i can see the server response will be "it works ...." just by calling the ipnumber of the server.

My guess is that the problem relates to vhost, but if you have any other suggestions, please don't hesitate to spill your thoughts :-)

All times are GMT +2. The time now is 03:48.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.