I have found only one previous post in this regard and there was no resolution that I can see from the archive as this user was using iRedMail, which is not the case for me:
When I connect to SOGo via the NginX reverse Proxy I get a white screen with no formatting or CSS (Attached Screenshot). I have tried various configurations from online to configure the Virtual Host and this keeps being the case each time.
I would appreciate if anyone could tell me where I am going wrong, have configured on a seperate server behind Apache, however on this server Apache is not an option due to the way it is being deployed.
server {
listen 80 default;
server_name
mail.buff0k.co.za;
root /usr/lib/GNUstep/SOGo/WebServerResources/;
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_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 100m;
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;
}
}