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

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

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

Thursday 08 May 2003 1:05:26 pm - 7 replies

Modified on Thursday 08 May 2003 1:08:50 pm by John van der Boom

Author Message

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.

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

36 542 Users on board!

Forums menu