Hello Config
…...
proxy_http_version 1.1;
location = / {
rewrite ^ http://$server_name/SOGo;
allow all;
}
# For IOS 7
location = /principals/ {
rewrite ^ http://$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_set_header x-webobjects-server-port $server_port;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 630;
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 ^~/Microsoft-Server-ActiveSync {
proxy_pass
http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync;
proxy_redirect
http://127.0.0.1:20000/Microsoft-Server-ActiveSync /;
}
location ^~/ActiveSync {
proxy_pass
http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync;
proxy_redirect
http://127.0.0.1:20000/Microsoft-Server-ActiveSync /;
}
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;
}
}
> Le 22 févr. 2015 à 18:43, Infoomatic <[email protected]> a écrit :
>
> hi,
> I wanted to use nginx with sogo and apply the fail2ban rules. Basically,
> everything is working fine with nginx, but:
> with the suggested nginx config (including "proxy_set_header X-Real-IP
> $remote_addr;" from the sogo wiki) and nginx version 1.6.2, the
> logfile only creates entries like:
> SOGoRootPage Login from '127.0.0.1' for user 'afd' might not have worked -
> password policy: 65535 grace: -1 expire: -1 bound: 0
>
> The same host, with the suggested apache2 configuration gives me:
> SOGoRootPage Login from 'XXX.XX.XX.XXX' for user 'aasd' might not have worked
> - password policy: 65535 grace: -1 expire: -1 bound: 0
>
> with my real IP and thus fail2ban working.
>
> Is there a workaround or some variables to change in source and recompile to
> have this working? Or better: a configuration option I did not see?
>
> regards,
> infoomatic
>
> --
> [email protected]
> https://inverse.ca/sogo/lists
>
>
> __________ Information from ESET Mail Security, version of virus signature
> database 11215 (20150222) __________
>
> The message was checked by ESET Mail Security.
> http://www.eset.com
>
>
smime.p7s
Description: S/MIME cryptographic signature
