Forums / Install & configuration / Access to http://www.myhost.com NOT http://www.myhost.com/ezpublish

Access to http://www.myhost.com NOT http://www.myhost.com/ezpublish

Author Message

John van der Boom

Thursday 08 May 2003 1:05:26 pm

Hello,

I just finished installing ez system on a hosted site.
(Hosting provider with shell access, no httpd.conf access)

I installed ez-system in $public_root/ezpublish/, cause this is the way they do it on the manual. Here they installed it in a subdirectory of the document_root.

But I want my visitors to see the main page (of ezpublish/site) when they go to http://www.myhost.com and not http://www.myhost.com/epublish

Can I accomplish this by setting the site access (site.ini, site.ini.appen etc) correctly?
And if the answer is yes, how can I accomplish this? Do I have to do it with Host or URL map?
Can anyone that knows how to do this give me a good example as I find the example on the installation manual and on this forum not clear enough for me.

Or should I just install it directly into the document_root. I guess that if I do this my other folder/subirectories won't work due to the RewriteRules in .htaccess.

Hope you can help me.

Scot Wilcoxon

Thursday 08 May 2003 2:31:53 pm

If you install directly in document_root, yet you are worried about the RewriteRules -- well, if you're in document_root and "index.php" is in the URLs then you don't need a RewriteRule. If you have RewriteRules for eZp3 to hide "index.php", you can add RewriteRules before that to trap access to those "other folder/subdirectories"; see the icons example in eZp3's doc/INSTALL.

I think in site.ini.override.php you can use Host access, with "www.example.com" for the "user" access. But then you need a way for admin... maybe "example.com" for admin, unless your DNS allows things like admin.example.com.

URL access should work if "index.php" is part of the URL. eZp3 looks for "index.php" to find the directory.

Keep in mind that httpd.conf might be searching for index.html, index.htm, index.php in that order, so if your RewriteRules do not specify a filename the wrong file might get started.

If the problem only is wanting eZp3 to be the default page, but a URL with "ezpublish/index.php" is OK, you could use a redirect from index.html to ezpublish/index.php. You've seen pages with "click here if site does not start in 5 seconds", as manual backup for a javascript redirect. You might be able to make your Apache do redirect through .htaccess.

(I have waded through relevant code in eZp3 and am pretty sure that is how it works. I can't get fetch() to work, but that is a problem at a different level.)

John van der Boom

Thursday 08 May 2003 7:35:22 pm

But one thing is still not clear: can I use the host access site configuration instead of the uri one.

My hosting provider support subdomains, but they are per default redirected to http://www.mysite.com/subdomain

I have I think in terms of ezpublish a non-Virtual Host setup.

Scot Wilcoxon

Thursday 08 May 2003 8:03:55 pm

I think HostMatchMapItems will not work with http://www.example.com/ezpublish. You might try HostMatchType=regexp with HostMatchRegexp=www\.example\.com\/(.+) to try to detect www.example.com/user or www.example.com/admin. I don't know how well regexp is working.

John van der Boom

Thursday 08 May 2003 10:25:15 pm

Is this possible with non-Virtual Hosting ??

Claudius Frank

Friday 09 May 2003 2:33:34 am

Hi all,

I am trying to install ezpublish302 in an subfolder named "ez", on an Linux, nVH.
During the installation I didn't have any problem, but after the installation I was not able to log in or do anything else, because ma URL is doubled.

My URL is:

www.liber.de/ez/index.php/admin

Trying to log in or do something else I received the following URL:

www.liber.de/ez/ez/..... ( instead of "ez" I received in the URL "ez/ez" )

Have anybody an idea why this succeeds and how could I resolve it?

Any help I would appreciate.

Regards
Claudius

John van der Boom

Friday 09 May 2003 3:36:49 am

I have been able to put the
MatchOrder=host
HostMatchType=map

to work..
Debugging is showing me right now:
======================================================
Debug: access.php May 09 2003 06:37:26
Matching host map with host 'www.mysite.com' and match 'www'

Debug: access.php May 09 2003 06:37:26
Updated settings to use siteaccess 'www'
=====================================================

But still admin.mysite.com isn't working. I have some subdomains on my hosting provider that let me make some subdomains that redirect to http://www.mysite.com/subdomain. Is it possible to make this work with this?

Scot Wilcoxon

Monday 12 May 2003 11:47:33 pm

Reminder: example.com and example.org exist for use in examples.

Maybe myhost.com and mysite.com like this advertising, but this might make searches more difficult for potential customers who need to find myhost.com or mysite.com. Or potential eZpublish customers might be finding myhost.com instead of ez.no.

eZ debug

Timing: Jan 18 2025 04:13:06
Script start
Timing: Jan 18 2025 04:13:06
Module start 'content'
Timing: Jan 18 2025 04:13:07
Module end 'content'
Timing: Jan 18 2025 04:13:07
Script end

Main resources:

Total runtime1.0541 sec
Peak memory usage4,096.0000 KB
Database Queries211

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0090 588.0859180.7891
Module start 'content' 0.00900.9079 768.8750572.8047
Module end 'content' 0.91690.1371 1,341.6797341.7578
Script end 1.0540  1,683.4375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.4258210.0002
Check MTime0.00160.1500210.0001
Mysql Total
Database connection0.00060.056910.0006
Mysqli_queries0.969091.92782110.0046
Looping result0.00230.22282090.0000
Template Total1.003995.220.5019
Template load0.00230.214420.0011
Template processing1.001695.025120.5008
Template load and register function0.00060.053910.0006
states
state_id_array0.00180.166210.0018
state_identifier_array0.00100.094720.0005
Override
Cache load0.00190.1803570.0000
Sytem overhead
Fetch class attribute can translate value0.00160.149540.0004
Fetch class attribute name0.00240.223080.0003
XML
Image XML parsing0.00070.070340.0002
class_abstraction
Instantiating content class attribute0.00000.002880.0000
General
dbfile0.00170.1625210.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
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/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: 29
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs