This works for me:
## this one is for the SOGo web client
server {
listen 192.168.0.35:443;
server_name mail.example.com;
root /home/www/mail.example.com;
ssl on;
ssl_certificate /etc/ssl/postfix/server.crt;
ssl_certificate_key /etc/ssl/postfix/server.key;
location = /
{
rewrite ^ https://$server_name/SOGo;
allow all;
}
location ~ \.php$ {
# # With php5-fpm:
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
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-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;
}
location /plugins
{
autoindex on;
}
}
On Thursday, February 13, 2014 11:11 AM, Andy Tuinman <[email protected]>
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]>:
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]
>https://inverse.ca/sogo/lists
>--
[email protected]
https://inverse.ca/sogo/lists