Hallo Patrick,
maybe something like this?
location ^~ /SOGo {
proxy_pass http://127.0.0.1:20000;
#proxy_redirect http://127.0.0.1:20000/SOGo/ /SOGo;
# 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/GNUstep/System/Library/SOGo/WebServerResources/;
alias /usr/lib/GNUstep/SOGo/WebServerResources/;
}
location /SOGo/WebServerResources/ {
# alias /usr/GNUstep/System/Library/SOGo/WebServerResources/;
alias /usr/lib/GNUstep/SOGo/WebServerResources/;
}
location ^/SOGo/so/ControlPanel/Products/([^/]*)/Resources/(.*)$ {
# alias /usr/GNUstep/System/Library/SOGo/$1.SOGo/Resources/$2;
alias /usr/lib/GNUstep/SOGo/$1.SOGo/Resources/$2;
}
#location
^/SOGo/so/ControlPanel/Products/[^/]*UI/Resources/.*\.(jpg|png|gif|css|js)$ {
# alias /usr/GNUstep/System/Library/SOGo/$1.SOGo/Resources/$2;
# alias /usr/lib/GNUstep/SOGo/$1.SOGo/Resources/$2;
#}
Grüsse aus Zürich
Steve
-------- Original-Nachricht --------
> Datum: Thu, 26 Apr 2012 14:19:57 +0200
> Von: Patrick Ben Koetter <[email protected]>
> An: SOGo users <[email protected]>
> Betreff: [SOGo] nginx configuration example
> I would like to use nginx instead of Apache a reverse proxy for SOGo.
> Would anyone running this setup mind to share a working config?
>
> thx
>
> p@rick
>
>
>
> --
> state of mind ()
> Digitale Kommunikation
>
> http://www.state-of-mind.de
>
> Franziskanerstraße 15 Telefon +49 89 3090 4664
> 81669 München Telefax +49 89 3090 4666
>
> Amtsgericht München Partnerschaftsregister PR 563
>
> --
> [email protected]
> https://inverse.ca/sogo/lists
--
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!
Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a
--
[email protected]
https://inverse.ca/sogo/lists