Thanks Andy. All I did, I think, was to change the hostname and the location of the SSL certificates. (I've replaced the server name with X's below, but that was accurately entered without typos in the file I was trying to use).

-----

server {

    listen 80 default;
    server_name XXX.XXX.com;
    ## redirect http to https ##
    rewrite ^ https://$server_name$request_uri? permanent;
}
server {

    listen 443;
    server_name XXX.XXX.com;
    root /usr/lib/GNUstep/SOGo/WebServerResources/;
    ssl on;
    ssl_certificate /etc/nginx/certs/XXX.XXX.com.crt;
    ssl_certificate_key /etc/nginx/certs/XXX.XXX.com.key;
    location = /
    {
        rewrite ^ https://$server_name/SOGo;
        allow all;
    }
    # For IOS 7
    location = /principals/
    {
        rewrite ^ https://$server_name/SOGo/dav;
        allow all;
    }
    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 $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;
    }
}

-----

On 02/13/2014 07:09 PM, Andy Tuinman wrote:

Can you post your config file instead of the default? You have to make a few adjustments in the file. So if you post your file i can look at it.

Op 13 feb. 2014 19:45 schreef <[email protected] <mailto:[email protected]>>:

    Hi. I'm trying to get SOGo working with my nginx installation, but
    I'm a bit
    of a novice with both nginx and SOGo.

    I'm using the nginx config file that's posted here:

    http://wiki.sogo.nu/nginxSettings

    However, I'm getting a 404 Not Found error from nginx when I try
    to access /
    SOGo.

    If anyone knows of an obvious explanation, I'd be grateful to hear it.

    (The server is running Debian 7 with MySQL.)

    Rob
    --
    [email protected] <mailto:[email protected]>
    https://inverse.ca/sogo/lists


--
[email protected]
https://inverse.ca/sogo/lists

Reply via email to