Share » Forums » Install & configuration » Virtualhost cannot access Admin site

Virtualhost cannot access Admin site

Virtualhost cannot access Admin site

Saturday 22 April 2006 5:10:37 am - 4 replies

Author Message

André R.

Saturday 22 April 2006 8:30:48 am

try

[SiteAccessSettings]
ForceVirtualHost=true
CheckValidity=false
AvailableSiteAccessList[]=mysite
AvailableSiteAccessList[]=admin
MatchOrder=host
HostMatchType=map
HostMatchMapItems[]=www.mydomain.com;mysite
HostMatchMapItems[]=www.admin.mydomain.com;admin

and

[SiteSettings]
DefaultAccess=mysite
SiteList[]=mysite

both in override.ini

And have you checked with your hosting provider that .htaccess is turned on ??

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Chris Lan

Saturday 22 April 2006 9:04:41 am

Hi André,

Thank you for your answer.

I found another way. I put

MatchOrder=host;uri

and I defined the directory in the site.ini.append.php as admin like this the system does ignore my previous cache that I can't clean up.

[FileSettings]
VarDir=var/admin

It might help someone because at the end it works without httpd.config modification.

Thanks again.
Chris

Chris Lan

Saturday 29 April 2006 2:06:22 am

Hi,

Ok I spoke too quickly. Because after a new cleaning of the cache, plain is back. I know few guys who could have told me that host;uri does not make sense. But I check everything (doc, forum...) and I certainly miss something:

What I would like to do: <b>remove index.php?/plain on virtual host environment but without access to apache configuration.</b>

Until now, I did:
1. Add the rewrite rule to .htaccess which works fine to remove index.php?
2. Then move from uri to host and as result plain removed.
3. The operation could have been perfect if I could have access to admin panel. In fact, I can't have access to the admin site anymore. I tried to use the hostmatch but it does not work because my apache server is not configure to the sub domain (I suppose).

I am stuck and frustrated. Somebody can save me?

Thanks. Chris

André R.

Sunday 30 April 2006 6:02:30 am

If you have settings like:

HostMatchMapItems[]=mydomain.com;mysite
HostMatchMapItems[]=www.mydomain.com;mysite
HostMatchMapItems[]=admin.mydomain.com;admin
HostMatchMapItems[]=www.admin.mydomain.com;admin

You will not be able to enter the admin site without proper dns setup,
menaing you'll have to set admin.mydomain.com to point to the ez folder.
If you are using windows 2000/xp, you can change your
windows/system32/drivers/etc/hosts file using notepad:

include the line:

127.0.0.1       admin.mydomain.com

Change the ip to the server you are using!
But you'll also have to get your provider to include admin.mydomain.com to point to your ez installation.

PS: The reason that you can access your mysite is probably this:

[SiteSettings]
DefaultAccess=mysite

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu