Forums / Install & configuration / Virtualhost cannot access Admin site

Virtualhost cannot access Admin site

Author Message

Chris Lan

Saturday 22 April 2006 5:10:37 am

Hi,

My site is installed on a virtual host but I can not modify the httpd.config on the apache server because I don't have a dedicated server and my provider cannot do it.

I have done the following changes to remove the index.php. My site works fine but I can not access to my admin site. I completly deleted the cache but nothing change.

<b>.htaccess</b>

RewriteEngine On
RewriteRule !\.(gif|jpe?g|png|css|js|html)|var(.+)storage.pdf(.+)\.pdf$ index.php

DirectoryIndex index.php

settings/override<b>site.ini.append.php</b>

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

settings/admin<b>site.ini.append.php</b>

[SiteSettings]
SiteName=admin
SiteURL=www.admin.mydomain.com
LoginPage=custom

I have created the sub domain to access the admin interface but I obtained a 500 Internal error.

I tried many things but I still can not access my admin site.

Hope someone can help me. Thanks.
Chris

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

eZ debug

Timing: Jan 18 2025 10:59:35
Script start
Timing: Jan 18 2025 10:59:35
Module start 'content'
Timing: Jan 18 2025 10:59:35
Module end 'content'
Timing: Jan 18 2025 10:59:36
Script end

Main resources:

Total runtime0.8792 sec
Peak memory usage4,096.0000 KB
Database Queries200

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0105 588.9688180.8203
Module start 'content' 0.01050.7344 769.7891594.2891
Module end 'content' 0.74490.1343 1,364.0781341.3750
Script end 0.8792  1,705.4531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.4719210.0002
Check MTime0.00150.1675210.0001
Mysql Total
Database connection0.00330.371910.0033
Mysqli_queries0.786089.39292000.0039
Looping result0.00230.26231980.0000
Template Total0.840395.620.4202
Template load0.00210.233820.0010
Template processing0.838295.335220.4191
Template load and register function0.00010.014710.0001
states
state_id_array0.00050.051410.0005
state_identifier_array0.00130.146420.0006
Override
Cache load0.00180.2027610.0000
Sytem overhead
Fetch class attribute can translate value0.00140.162330.0005
Fetch class attribute name0.00150.167270.0002
XML
Image XML parsing0.00120.142030.0004
class_abstraction
Instantiating content class attribute0.00000.0021100.0000
General
dbfile0.00370.4196340.0001
String conversion0.00000.000730.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
17content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
10content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 44
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs