Welcome! Log In Create A New Profile

Advanced

Site URL not completed. Bad redirection ?

October 29, 2012 09:57AM
Hello,

I'm trying to replace apache2 by nginx. So far my platform debian squeeze + Apache2 + sogo 2.0.2 works very fine.
However I decided to replace apache2 by nginx 1.2.4-1.
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.
Here is the error.log of nginx :
directory index of "/usr/lib/GNUstep/SOGo/WebServerResources/" is forbidden, client: 90.2.225.249, server: sogo.mydomain, request: "GET / HTTP/1.1", host: "sogo.mydomain"

Here is my sogo.conf :

---------------------------------
server {
listen 443;
server_name sogo.ias.u-psud.fr;
root /usr/lib/GNUstep/SOGo/WebServerResources/;
ssl on;
ssl_certificate /etc/nginx/ssl.fac/wildcard.ias.u-psud.fr.crt;
ssl_certificate_key /etc/nginx/ssl.fac/wildcard.ias.u-psud.fr.key;

location ^~/SOGo {
proxy_pass http://127.0.0.1:20000;
proxy_redirect http://127.0.0.1:20000 default;
# forward user's IP address
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_set_header x-webobjects-server-protocol HTTP/1.0;
proxy_set_header x-webobjects-remote-host 127.0.0.1;
proxy_set_header x-webobjects-server-name $server_name;
#proxy_set_header x-webobjects-server-url https://sogo.ias.u-psud.fr;
proxy_set_header x-webobjects-server-url $scheme://$host;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
client_max_body_size 50m;
client_body_buffer_size 128k;
break;
}

location /SOGo.woa/WebServerResources/ {
alias /usr/lib/GNUstep/SOGo/WebServerResources/;
allow all;
}

location /SOGo/WebServerResources/ {
alias /usr/lib/GNUstep/SOGo/WebServerResources/;
allow all;
}

location ^/SOGo/so/ControlPanel/Products/([^/]*)/Resources/(.*)$ {
alias /usr/lib/GNUstep/SOGo/$1.SOGo/Resources/$2;
}

location
^/SOGo/so/ControlPanel/Products/[^/]*UI/Resources/.*\.(jpg|png|gif|css|js)$ {
alias /usr/lib/GNUstep/SOGo/$1.SOGo/Resources/$2;
}
}

------------------------------

I would be very pleased to get some advices.

Best regards.

Gerard Breiner
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: 177
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready