Welcome! Log In Create A New Profile

Advanced

Re: Site URL not completed. Bad redirection ?

Francis Daly
October 29, 2012 04:58PM
On Mon, Oct 29, 2012 at 09:57:54AM -0400, gerard breiner wrote:

Hi there,

> It works too but it seems there is a redirection that doesn't work. My url :
> https://sogo.mydomain give a page error 403 forbidden. I have to complete
> the url with /SOGo so that I get the login.

If you don't tell nginx about the redirection you want, you can't expect
it to work.

You have five locations defined:

> location ^~/SOGo {
> location /SOGo.woa/WebServerResources/ {
> location /SOGo/WebServerResources/ {
> location ^/SOGo/so/ControlPanel/Products/([^/]*)/Resources/(.*)$ {
> location ^/SOGo/so/ControlPanel/Products/[^/]*UI/Resources/.*\.(jpg|png|gif|css|js)$

The rules are at http://nginx.org/r/location

The last two above are unlikely to do what you expect.

The initial request is for "/". That doesn't match any of your locations,
and so will use the "default" server-level one.

Probably what you want is something like

location = / {
return 301 /SOGo/;
}

but you may prefer to use a full url, starting "http".

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Site URL not completed. Bad redirection ?

gerard breiner October 29, 2012 09:57AM

Re: Site URL not completed. Bad redirection ?

Francis Daly October 29, 2012 04:58PM

Re: Site URL not completed. Bad redirection ?

gerard breiner October 30, 2012 11:11AM

Re: Site URL not completed. Bad redirection ?

Jonathan Matthews October 30, 2012 01:16PM

Re: Site URL not completed. Bad redirection ?

Francis Daly October 30, 2012 03:38PM

Re: Site URL not completed. Bad redirection ?

gerard breiner October 31, 2012 07:02AM

Re: Site URL not completed. Bad redirection ?

Francis Daly October 31, 2012 07:50PM

Re: Site URL not completed. Bad redirection ?

gerard breiner November 02, 2012 05:50PM

Re: Site URL not completed. Bad redirection ?

Francis Daly November 03, 2012 06:24AM

Re: Site URL not completed. Bad redirection ?

Francis Daly November 03, 2012 06:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 306
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready