![]() |
403 Error When a Site possess same domain as server
Hello,
I've recently set up Ispconfig 3 on an Ubuntu 10.04 box using the perfect server tutorial. The Ispconfig server is called linuxserver1.domain.com. I have no problem accessing the ISpconfig control panel from this domain. I have a website hosting a company blog at www.domain.com. domain.com 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. |
Please check the outputs of
Code:
hostnameIs your server named www.domain.com (bad), or is it something like server1.domain.com (good)? |
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. output: Code:
@linuxserver1:~$ hostnameCode:
127.0.0.1 localhost |
This looks fine.
Can you post the www.domain.com vhost configuration? Did you check the website's error log? |
From /etc/apache2/sites-available/domain.com.vhost:
Code:
<Directory /var/www/domain.com>From /var/log/ispconfig/httpd/domain.com/error.log: Code:
[Mon Dec 12 19:56:14 2011] [error] [client 111.22.3.444] client denied by server configuration: /var/www/domain.com/web/wp-login.php |
SOLVED.
After reviewing the above posted domain.com.vhost 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). Thanks! |
| All times are GMT +2. The time now is 21:34. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.