Share » Forums » Install & configuration » Access denied

Access denied

Access denied

Tuesday 23 August 2011 9:43:42 am - 7 replies

Author Message

Ivo Lukac

Tuesday 23 August 2011 10:14:29 am

Open /urgi_admin/role/view/1 and check if you have the policy:

user login SiteAccess( morgoth )

If not add it.

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Hamdi Laadhari

Wednesday 24 August 2011 12:49:30 am

As stated above you have first to allow the anonymous user (through his role) to log into that siteacess

Watch your logs, and you'll see something related to "Insufficient policy"

Certified eZ Publish Entreprise 4.5
http://www.laadhari.fr

Veronique Jamilloux

Wednesday 24 August 2011 8:45:52 am

Thank you very much Ivo, I do your solution and the morgoth site access is ok now.

Two more questions :

  • With my new content tree, when I use urgi.versailles.inra.fr/Tools eZpublish rewrite it like urgi.versailles.inra.fr/Home-URGI/Tools. This the same for morgoth.versailles.inra.fr/index.php/Tools eZpublish  rewrite it like morgoth.versailles.inra.fr/index.php/Home-Morgoth/Tools.

How can can I hide the name of the home pages?

  • How can I hide the 'index.php' in the morgoth url? Morgoth is not the default site access?

Thanks again for your help.

VĂ©ronique

URGI - INRA
Webmaster
Route de Saint Cyr
78000 Versailles

Ivo Lukac

Wednesday 24 August 2011 9:01:38 am

Two more questions :

  • With my new content tree, when I use urgi.versailles.inra.fr/Tools eZpublish rewrite it like urgi.versailles.inra.fr/Home-URGI/Tools. This the same for morgoth.versailles.inra.fr/index.php/Tools eZpublish  rewrite it like morgoth.versailles.inra.fr/index.php/Home-Morgoth/Tools.

How can can I hide the name of the home pages?

  • How can I hide the 'index.php' in the morgoth url? Morgoth is not the default site access?

For hiding index.php you need to force virtual host setting, check it here:
http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Configuration-files/site.ini/SiteAccessSettings/ForceVirtualHost
But be careful, you will need to setup different rewrite rules

For hiding root node part of the url use this:
http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Configuration-files/site.ini/SiteAccessSettings/PathPrefix

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Veronique Jamilloux

Wednesday 24 August 2011 10:00:13 am

Thanks again for your help Ivo

Ok for the PathPrefix.

On apache server, my two sites are virtualhost and there are rewrite rules and I've in settings/override.site.ini.append.php RemoveSiteAccessIfDefaultAccess=enabled in the [SiteAccessSettings].

If I put ForceVirtualHost=true I must delete RemoveSiteAccessIfDefaultAccess ?

URGI - INRA
Webmaster
Route de Saint Cyr
78000 Versailles

Ivo Lukac

Wednesday 24 August 2011 10:10:29 am

Ok for the PathPrefix.

On apache server, my two sites are virtualhost and there are rewrite rules and I've in settings/override.site.ini.append.php RemoveSiteAccessIfDefaultAccess=enabled in the [SiteAccessSettings].

If I put ForceVirtualHost=true I must delete RemoveSiteAccessIfDefaultAccess ?

ForceVirtualHost=true removes /index.php/ but needs rewrites to properly work.

RemoveSiteAccessIfDefaultAccess has nothing to do with ForceVirtualHost, so you can leave it.

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Veronique Jamilloux

Thursday 25 August 2011 1:45:50 am

I do it and the urls are nice.

Thanks and have a nice day

URGI - INRA
Webmaster
Route de Saint Cyr
78000 Versailles

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

36 542 Users on board!

Forums menu