Forums / Developer / Can't access admin side with ForceVirtualHost=true

Can't access admin side with ForceVirtualHost=true

Author Message

Erik Weinmaster

Wednesday 06 April 2011 6:46:37 am

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-configuration/possible-to-remove-path-to-ez-index.php-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

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.

eZ debug

Timing: Jan 18 2025 02:52:37
Script start
Timing: Jan 18 2025 02:52:37
Module start 'content'
Timing: Jan 18 2025 02:52:37
Module end 'content'
Timing: Jan 18 2025 02:52:37
Script end

Main resources:

Total runtime0.1359 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 588.9766180.8203
Module start 'content' 0.00560.0084 769.796997.9453
Module end 'content' 0.01400.1218 867.7422526.6094
Script end 0.1358  1,394.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00382.7972200.0002
Check MTime0.00161.1811200.0001
Mysql Total
Database connection0.00060.442310.0006
Mysqli_queries0.092968.33351410.0007
Looping result0.00120.89581390.0000
Template Total0.121489.310.1214
Template load0.00100.717410.0010
Template processing0.120488.591710.1204
Override
Cache load0.00070.534210.0007
Sytem overhead
Fetch class attribute can translate value0.00050.394410.0005
XML
Image XML parsing0.00020.170010.0002
General
dbfile0.00161.1427200.0001
String conversion0.00000.002130.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs