This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Developer » Can't access admin side with...
expandshrink

Can't access admin side with ForceVirtualHost=true

Can't access admin side with ForceVirtualHost=true

Wednesday 06 April 2011 3:46:37 pm - 3 replies

I am trying to setup eZ Publish 4.4 on a shared hosting plan with fastcgi. As per the recommendation from André R. I followed a lot of the advice from this posting: http://share.ez.no/forums/install...-under-fastcgi/%28language%29/eng-GB.

This works fine for my frontend. I use the url www.mysite.com and have successfully removed the index.php? element in the url.

However, now that I have switched ForceVirtualHost=true, I can't access the admin side. What I would like is to use a subdomain of www.admin.mysite.com. This is different from the link I mentioned earlier since that was setup to use www.mysite.com/cms (for the backend).

In short, what do I add to HostMatchMapItems under settings/override/site.ini.append.php? And do I forward the subdomain to www.mysite.com/cms or does ez publish take care of that?

Thanks

-erik

Modified on Wednesday 06 April 2011 5:44:05 pm by Erik Weinmaster

Wednesday 06 April 2011 6:03:00 pm

I just pinged a knowledgeable one on this, he might step-by !

Modified on Wednesday 06 April 2011 6:03:15 pm by Nicolas Pastorino

Wednesday 06 April 2011 9:08:50 pm

As mentioned before in some other thread, fastcgi was not supported properly before 4.5.

So best resource for earlier versions are searching for cgi in the forums.

Modified on Wednesday 06 April 2011 11:05:31 pm by André R

Friday 08 April 2011 4:16:09 pm

I thought I would follow up since I found a decent solution to running 4.4 with php fastcgi. First you need to run it as uri (MatchOrder=uri). After that all one needs are these rewrite rules in .htaccess:

RewriteEngine On
RewriteRule index_treemenu.php - [L]
RewriteRule content/treemenu/? /index_treemenu.php [L]
RewriteRule ^var/storage/.* - [L]
RewriteRule ^var/[^/]+/storage/.* - [L]
RewriteRule ^var/([^/]+/)?cache/(texttoimage|public)/.* - [L]
RewriteRule ^design/[^/]+/(stylesheets|images|javascript)/.* - [L]
RewriteRule ^share/icons/.* - [L]
RewriteRule ^extension/[^/]+/design/[^/]+/(stylesheets?|images?|javascript|flash|lib?)/.* - [L]
RewriteRule ^packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
RewriteRule ^packages/styles/.+/thumbnail/.* - [L]
RewriteRule ^favicon\.ico - [L]
RewriteRule ^robots\.txt - [L]
RewriteRule .* index.php

These rules will remove the index.php from the url. Since fastcgi will use index.php? in the url, once this is removed, everything seems to work.

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from