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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.