View Issue Details

IDProjectCategoryView StatusLast Update
0005667SOGoWeb Mailpublic2023-01-03 15:44
Reporterjdbravo Assigned To 
Status newResolutionopen 
Product Version5.8.0 
Summary0005667: Wrong WebServerResources URL

My SOGo 5.8.0 is generating a wrong URL for Main.js:
<script type=“text/javascript” src=“/SOGo?ReturnUrl=%2Fwmidentity%2Fconnect%2Fauthorize%2Fcallback%3Fresponse_mode%3Dform_post%26response_type%3Dcode%2520id_token%26redirect_uri%3Dhttps%253A%252F%252Fwebmail.woa/WebServerResources/js/Main.js?lm=1672013019"></script>

And that URL returns a 404 error. And the page goes blank.

The problem can be solved restarting SOGo but I'm wondering why is it happening?

It's also happening with the logo:
<img src="/SOGo?ReturnUrl=%2Fwmidentity%2Fconnect%2Fauthorize%2Fcallback%3Fresponse_mode%3Dform_post%26response_type%3Dcode%2520id_token%26redirect_uri%3Dhttps%253A%252F%252Fwebmail.woa/WebServerResources/img/sogo-full.svg?lm=1672013019" class="md-margin" alt="*" />

Other resources are being loaded fine!

After restarting SOGo, it loads the js fine, as follow:
<script data-ch="3" type="text/javascript" src="/SOGo.woa/WebServerResources/js/Main.js?lm=1672013019"></script>

I'm loading SOGo using a nginx reverse proxy and accessing it with the URL:

This is how Im setting the nginx reverse proxy:

location ^~ /SOGo {


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-port $server_port;
proxy_set_header x-webobjects-server-name $host;
proxy_set_header x-webobjects-server-url  https://$host;

proxy_set_header x-webobjects-server-protocol HTTP/1.0;

proxy_busy_buffers_size   64k;
proxy_buffers             8 64k;
proxy_buffer_size         64k;


In other server with the same SOGo version, I experienced the same problem but this one has the URL SOGo?_task=mail&_action=refresh.woa/WebServerResources/css/styles.css?lm=1672013019

that "_task=mail&_action=refresh" string is used by Roundcube (also running in the same server).

This problem is happening randomly, a SOGo restart will fix it but it will come back later.

Thank you!

Steps To Reproduce

Just accessing the SOGo Web using NGINX reverse proxy

Additional Information

I found two reported problems very similar:

TagsNo tags attached.


duplicate of 0005332 new Problem with displaying SOGo in browser (with tested temporary solution ) 




2022-12-31 04:45




2022-12-31 16:33

reporter   ~0016516

This was my temporary workaround:

location ^~ /SOGo {
if ( $query_string ~ "^(.).woa/WebServerResources/(.)\?lm=[1-9]+$" ){
set $file $2;
rewrite ^(.*)$ /SOGo.woa/WebServerResources/$file? last;

But I'm wondering, how is SOGo generating those URLs ? I mean the array additionalJSFiles in UIxPageFrame.wox ? because that array is including the wrong URLs, is it using any external source to generate those?

Issue History

Date Modified Username Field Change
2022-12-31 04:45 jdbravo New Issue
2022-12-31 04:45 jdbravo File Added: Screen Shot 2022-12-30 at 11.43.22 PM.png
2022-12-31 16:33 jdbravo Note Added: 0016516
2023-01-03 15:44 Christian Mack Relationship added duplicate of 0005332