VirtualHost and admin.mydomain.com error

Author Message

Pascal France

Friday 16 June 2006 1:44:31 am

Hi,

I'm trying to configure host access with eZP, so I follow this doc:
http://ez.no/doc/ez_publish/technical_manual/3_7/installation/virtual_host_setup
http://ez.no/doc/ez_publish/technical_manual/3_7/installation/virtual_host_setup/virtual_host_example

...and all works fine for my "linuxorable" public siteaccess but not at all for my admin siteaccess which should be accessed by http://admin.linuxorable.net but returns an error message saying:

domain not reachable
probably missing "www"
etc....

I would like know if I have to configure a DNS in order this works ?

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Vjeran Vlahovic

Friday 16 June 2006 6:17:47 am

Of course. You can add admin.linuxorable.net as an alias of www.linuxorable.net on your DNS.

But if you are using CPanel or some other similar manager, just add new subdomain admin.linuxorable.net through the interface, delete created public_html/admin directory and instead of it create a symbolic link to www directory which contains ez publish, e.g. ln -s linuxorable admin.

http://www.netgen.hr/eng

Pascal France

Saturday 17 June 2006 4:14:49 am

Hi,

Ok. I will see If I can host my own DNS serveur.

I added a private siteaccess, so I have three siteaccess:
linuxorable (public siteaccess)
linuxorable_assoc (private siteaccess)
admin (admin siteaccess).

linuxorable_assoc use the same database than linuxorable and admin.
When I define host access I have to configure the override/site.ini.append.php file like that:

 [SiteAccessSettings]
 CheckValidity=false
 AvailableSiteAccessList[]=linuxorable
 AvailableSiteAccessList[]=admin
 AvailableSiteAccessList[]=linuxorable_assoc
 MatchOrder=host
 HostMatchMapItems[]
 HostMatchMapItems[]=www.linuxorble.net/ez_publish;linuxorable

With these rules "linuxorable" is no more in the URL (now, I have again trouble to remove "index.php").
But I don't understand how I can define the linuxorable_assoc access.
Once I set up:

 HostMatchMapItems[]=www.linuxorble.net/ez_publish;linuxorable

I can't access anymore linuxorable_assoc

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Pascal France

Saturday 17 June 2006 4:26:19 am

Hi,

Should I create a sub-domain for linuxorable_assoc ? and set something like that in override/site.ini.append.php:

[SiteAccessSettings]
 CheckValidity=false
 AvailableSiteAccessList[]=linuxorable
 AvailableSiteAccessList[]=admin
 AvailableSiteAccessList[]=linuxorable_assoc
 MatchOrder=host
 HostMatchMapItems[]
 HostMatchMapItems[]=www.linuxorble.net/ez_publish;linuxorable
 HostMatchMapItems[]=assoc.linuxorble.net/ez_publish;linuxorable_assoc

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Pascal France

Saturday 17 June 2006 7:18:28 am

Hi,

As I have no DNS server, I'm doing tests with /etc/hosts.
I can now remove index.php and siteaccess from URLs but only for "admin" and "linuxorable" siteaccess and nothing works for linuxorable_assoc.
My /etc/hosts contains:

83.76.66.133    euphorie  euphorie.linuxorable.net
83.76.66.133    euphorie  admin.linuxorable.net
83.76.66.133    euphorie  assoc.linuxorable.net

and override/site.ini.append.php

SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]=linuxorable
AvailableSiteAccessList[]=admin
AvailableSiteAccessList[]=linuxorable_assoc
MatchOrder=host
HostMatchMapItems[]
HostMatchMapItems[]=www.linuxorable.net/ez_publish;linuxorable
HostMatchMapItems[]=assoc.linuxorable.net/ez_publish;linuxorable_assoc
HostMatchMapItems[]=admin.linuxorable.net;admin

Is there something wrong here ?

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Patrick Kaiser

Sunday 18 June 2006 3:47:06 am

hi,

I think your problem is more related to a wrong apache (VHOST) config:

Remove all modification in your /etc/hosts file.
Then make sure, that your domain including all subdomains is correctly pointing to your server (you could check this simply by pinging your subdomain and check if there is a response from the right ip).

Then check your apache config:
You should have all domain-names und subdomains in your vhost config (www is also a subdomain that must be configured!):

<VirtualHost 83.76.66.133>
    ...
    DocumentRoot [PATH_TO_YOUR_EZ_ROOT]
    ServerName www.linuxorable.net
    ServerAlias linuxorable.net admin.linuxorable.net assoc.linuxorable.net
    ...
</VirtualHost>

Than modify override/site.ini.append.php:

[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]=linuxorable
AvailableSiteAccessList[]=admin
AvailableSiteAccessList[]=linuxorable_assoc
MatchOrder=host
HostMatchMapItems[]=linuxorable.net;linuxorable
HostMatchMapItems[]=www.linuxorable.net;linuxorable
HostMatchMapItems[]=admin.linuxorable.net;admin
HostMatchMapItems[]=assoc.linuxorable.net;linuxorable_assoc

Make sure, that the respective configuration directories under settings/siteaccess/[linuxorable|admin|linuxorable_assoc] exist and atleast contain a site.ini.append.php file with custom siteaccess specific configuration options..

cheers, patrick


Best regards,

Patrick

Pascal France

Monday 19 June 2006 3:24:14 am

Hi Patrick,

Thanks for your answer.
But all my problem is that I can't configure the DNS of my registar. So, at present, I only can do tests with my hosts file.
But I'm going to set up my own DNS and follow your setting exemples.

Regards

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.