HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Installation/Configuration (
-   -   403 Error When a Site possess same domain as server (

quest 9th December 2011 04:45

403 Error When a Site possess same domain as server

I've recently set up Ispconfig 3 on an Ubuntu 10.04 box using the perfect server tutorial.

The Ispconfig server is called I have no problem accessing the ISpconfig control panel from this domain.

I have a website hosting a company blog at should also point to this blog site.

I've set up the new site in Ispconfig and applied the www subdomain to it.

However I'm receiving a 403 error when trying to access the site.

I believe this is caused due to a conflict with the domain name of the site being identical to the domain name of Ispconfig.

I have ~10 other sites, using different domains, up and running fine.

Any suggestions are appreciated.

falko 9th December 2011 11:29

Please check the outputs of

hostname -f

and the contents of /etc/hosts.

Is your server named (bad), or is it something like (good)?

quest 9th December 2011 23:18

Hello Falko!

First I want to personally thank you for producing such a fine open source project. This world can use more open source projects such as this in all aspects of development.



@linuxserver1:~$ hostname
@linuxserver1:~$ hostname -f

And /etc/hosts:

Code: localhost
111.22.333.44 linuxserver1

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

falko 10th December 2011 12:57

This looks fine.

Can you post the vhost configuration?

Did you check the website's error log?

quest 12th December 2011 23:16

From /etc/apache2/sites-available/


<Directory /var/www/>
    AllowOverride None
    Order Deny,Allow
    Deny from all

<VirtualHost *:80>
      DocumentRoot /var/www/


    ErrorLog /var/log/ispconfig/httpd/

    <Directory /var/www/>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
        <Files ~ '.php[s3-6]{0,1}$'>
            Order allow,deny
            Deny from all

From /var/log/ispconfig/httpd/


[Mon Dec 12 19:56:14 2011] [error] [client] client denied by server configuration: /var/www/
Are these what you're looking for?

quest 13th December 2011 01:30


After reviewing the above posted It's obvious .php files are blocked.

A few options in the Ispconfig control panel have the site up and running:

php: Fast-Cgi (was disabled)[I'm not familiar with the difference between fast-cgi, CGI, modphp, or suphp - Fast-cgi seems to work so I'm sticking with it.]

CGI: unchecked(was checked).


All times are GMT +2. The time now is 06:53.

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