PDA

View Full Version : Co-domain problem


Gimly
20th December 2007, 22:10
Hi all,

I have a problem with co-domain. The forward doesn't work. For example : I created forum.espace4you.org on co-domain to forward on my directory forum (www.espace4you.org/forum). But the server return :

Forbidden

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

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
__________________________________________
Apache Server at forum.espace4you.org Port 80

I have debian etch with suphp & modsecurity enable on my server.

Do you have any idea about this problem ? You can try it with the url.
Thank you in advance for your answers. :)

Hans
20th December 2007, 23:14
When you created a co-domain, did you use "forum" within the hostname field and "espace4you.org" within the domain field? Within the forward field you should add the text "http://www.espace4you.org/forum". Did you do that?

Gimly
20th December 2007, 23:40
It worked fine but I've upgrade ispconfig with 2.2.18 and now it doesn't work. The problem also exists for my customers. I don't modified settings on my server. If you have an idea ?

till
21st December 2007, 12:56
Please post the vhost definition for this vhost from the file Vhost_ispconfig.conf

Gimly
23rd December 2007, 01:19
I find the problem in the Vhost_ispconfig.conf, I add "/" on the vhost :

RewriteEngine on
RewriteCond %{HTTP_HOST} ^forum\.espace4you\.org [NC]
RewriteRule ^/(.*)$ http://www.espace4you.org/forum/$1


But the problem is for all my vhost. There are a skeleton/template file in ispconfig, where I can add "/" for changing all my vhost and fix the bug ?

Thank you for your answers

falko
23rd December 2007, 18:26
You can change this in the function make_vhost() in /root/ispconfig/scripts/lib/config.lib.php.

Gimly
26th December 2007, 23:12
Ok, Thank you now it work fine :)