Share » Forums » Developer » Can't access admin side with...

Can't access admin side with ForceVirtualHost=true

Can't access admin side with ForceVirtualHost=true

Wednesday 06 April 2011 6:46:37 am - 3 replies

Modified on Wednesday 06 April 2011 8:44:05 am by Erik Weinmaster

Author Message

Nicolas Pastorino

Wednesday 06 April 2011 9:03:00 am

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

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

André R.

Wednesday 06 April 2011 12: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.

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

Erik Weinmaster

Friday 08 April 2011 7:16:09 am

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.

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

36 542 Users on board!

Forums menu