Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 22nd February 2010, 15:00
binover binover is offline
Member
 
Join Date: Mar 2008
Posts: 58
Thanks: 3
Thanked 0 Times in 0 Posts
Send a message via MSN to binover
Default 403 Forbidden in Serveralias

Hi guys, just a quick question, Im testing ispconfig 3 for the fist time, I installed it in advanced mode with zimbra as mail server.
I like it very very much but I can't solve 1 problem, I created a website and chose autoalias www and all seems to be allright but when I go to www.domine.com.ar I get 403 forbidden all the time. but only in www alias.
I get forbidden if I go to the IP address directly also.

this is the vhost file:
----
main:/var/www/ceotech.com.ar/web# cat /etc/apache2/sites-enabled/ceotech.com.ar.vhost
<Directory /var/www/ceotech.com.ar>
AllowOverride None
Order Deny,Allow
Deny from all
</Directory>

<VirtualHost *:80>
DocumentRoot /var/www/ceotech.com.ar/web

ServerName ceotech.com.ar
ServerAlias www.ceotech.com.ar
ServerAdmin webmaster@ceotech.com.ar

ErrorLog /var/log/ispconfig/httpd/ceotech.com.ar/error.log

ErrorDocument 400 /error/400.html
ErrorDocument 401 /error/401.html
ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html
ErrorDocument 405 /error/405.html
ErrorDocument 500 /error/500.html
ErrorDocument 503 /error/503.html

<Directory /var/www/ceotech.com.ar/web>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all

# ssi enabled
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Options +Includes
</Directory>
<Directory /var/www/clients/client1/web1/web>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all

# ssi enabled
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Options +Includes
</Directory>

# cgi enabled
<Directory /var/www/clients/client1/web1/cgi-bin>
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ /var/www/clients/client1/web1/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
# suexec enabled
SuexecUserGroup web1 client1
# mod_php enabled
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@ceotech.com.ar"
php_admin_value upload_tmp_dir /var/www/clients/client1/web1/tmp
php_admin_value session.save_path /var/www/clients/client1/web1/tmp
php_admin_value open_basedir /var/www/clients/client1/web1/web:/var/www/clients/client1/web1/tmp:/usr/share/php5


</VirtualHost>
--------

if I replace <VirtualHost *:80> to <VirtualHost www.ceotech.com.ar:80> all seems be ok but that is not the case.

And this is the apache2 error log (the XXX is just for hide the IP address):
---
[Sun Feb 21 22:55:05 2010] [error] [client XXX.XXX.XXX.XXX] client denied by server configuration: /var/www/
[Sun Feb 21 22:55:16 2010] [error] [client XXX.XXX.XXX.XXX] client denied by server configuration: /htdocs
[Mon Feb 22 09:11:14 2010] [error] [client XXX.XXX.XXX.XXX] client denied by server configuration: /var/www/favicon.ico
---

Thank you guys for all.
Reply With Quote
Sponsored Links
  #2  
Old 22nd February 2010, 19:44
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,416
Thanks: 812
Thanked 5,205 Times in 4,081 Posts
Default

Looks as if the website domain conflicts with the hostname of the server. To solve this, select the IP instead of * in the website settings. If the IP is not listed, add it in the server settings first.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
binover (22nd February 2010)
  #3  
Old 22nd February 2010, 20:16
binover binover is offline
Member
 
Join Date: Mar 2008
Posts: 58
Thanks: 3
Thanked 0 Times in 0 Posts
Send a message via MSN to binover
 
Default

works like a champ! Thanks Till! you're the best!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how can I set several IPs for one domain? freesqrt Tips/Tricks/Mods 17 12th January 2009 14:22
403 Error- Forbidden! on certain folder lschafroth Installation/Configuration 3 30th October 2008 15:16
add web site serr57 Installation/Configuration 18 13th April 2008 11:40
IMAP doesn't work..as i followed the Perfect Setup for Fedora 4 asokaajay Server Operation 11 10th June 2007 14:57
403 Error- Forbidden! on form submit Macord General 4 11th December 2006 22:22


All times are GMT +2. The time now is 16:13.


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