eZ Community » Forums » Install & configuration » ERROR (Redirection requested on...
expandshrink

ERROR (Redirection requested on non-authorized host)

ERROR (Redirection requested on non-authorized host)

Tuesday 24 September 2013 11:36:26 am - 6 replies

Hello Everyone;

I upgraded my ezpublish 4.6 website to 5.1 and i change also the server where i had installed my site.

In the new configuration when i accessed to my website it needed the siteaccess name , so in my override site.ini i added: RemoveSiteAccessIfDefaultAccess=enabled

Now when i change the languages i got an error:

I have: www.mysite.com/switchlanguage/to/mysiteaccess-eng

Redirection requested on non-authorized host

But if i add the siteaccess name manually (www.mysite.com/siteaccess-fre/switchlanguage/to/mysiteaccess-eng) it switches the languages without any problem.

Before in 4.6 settings i didnt have any problem with this part.

has anyone got an idea how can i solve this problem please?

Thursday 26 September 2013 5:18:44 pm

Hi

Related to this recent security commit. Take a look at doc/bc/5.1/changes-5.1.txt

Friday 27 September 2013 3:57:54 pm

Hi Jérôme,

Thanks so much for your answer, 

In my override setting i added 

AllowedRedirectHosts[]

AllowedRedirectHosts[]=www3.mysite.com

AllowedRedirectHosts[]=www3.mysite.com/eng

AllowedRedirectHosts[]=www3.mysite.com/mysiteaccess

But the result is the same:

when i click on eng button i have :

http://www3.mysite.com/switchlanguage/to/eng

&nd still 403 error,

I would really really appriciate if you could help please.

In addition, only in some pages i dont have my images at all, i suppose it comes from the same problem.

Modified on Friday 27 September 2013 5:38:21 pm by pa bl

Friday 27 September 2013 5:37:05 pm

I think the problem comes from the 'www3'.

I just changed it to www.mysite.com

Now when i click on the language buttons,

first, it goes from: www3.mysite.com to www.mysite.com (which is on one other server) 

Isnt it possible to use both of them with this new configuartion?

And will it work correctely if i import my site to this server?

Thanks very much.

Monday 30 September 2013 9:22:04 am

Your configuration should take it into account, cache issue ?

Monday 30 September 2013 10:04:05 am

Thanks for ur answer Jérôme, well i deleted all the cash, using:

 php bin/php/ezcache.php --clear-all --purge  --allow-root-user

but the langage buttons dont change the site-access and they stay to the page where it is.

ONLY ON WWW3.MYSITE.COM

then in www3.mysite.com/siteaccess and www3.mysite.com/eng it works correctely!!

 

[SiteSettings]

DefaultAccess=mysiteaccess

SiteList[]=mysiteaccess

SiteList[]=eng

SiteList[]=mysiteaccess_admin

RootNodeDepth=1

LoginPage=embedded

SiteURL=www3.mysite.com

AllowedRedirectHosts[]

AllowedRedirectHosts[]=www3.mysite.com

 

Modified on Monday 30 September 2013 5:23:48 pm by pa bl

Monday 30 September 2013 11:21:30 am

In my error.log i have two error about it: 

 

[ Sep 30 2013 11:06:44 ] [10.0.0.133] eZImageManager::createImageAlias:

Failed converting var/ezwebin_site/storage/images/media/images-blog-post/dossier/24278-1-fre-FR/fichier.jpg to alias 'blogShow' in directory 'var/ezwebin_site/storage/images/media/images-blog-post/dossier/24278-1-fre-FR'

 

 

 

[ Sep 30 2013 11:07:22 ] [192.168.0.253] index:

Undefined module: undefined

[ Sep 30 2013 11:07:22 ] [192.168.0.253] error/view.php:

Error ocurred using URI: /undefined

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from