Re: [SOGo] nginx proxy manager & SOGo

2023-04-29 Thread Stefan Klatt

Hallo Brandon,

Am 25.04.2023 um 05:30 schrieb Brandon Verkamp (jadelclem...@gmail.com):
Not that exact situation, but I do have SOGo set up behind a nginx 
proxy (vanilla nginx i.e. not nginx proxy manager) running on a VM. If 
you think that my configs might be useful I'd be happy to share.

Thank you!

Vanilla nginx reverse proxy is no problem, this works.
Nginx proxy manager is different. At the moment I try to get it working.

Best Regards

Stefan


--
*CaC, Computer and Communication*
Inhaber Stefan Klatt
End-2-End Senior Security Consultant
CISSP / CEH / CISM / BSI IT-Grundschutz Praktiker / ISO27001 Senior Lead 
Implementer /

TOGAF9 / VdS-anerkannter Berater für Cyber-Security
Badges: https://www.youracclaim.com/users/stefan-klatt
Triftstrasse 9
60528 Frankfurt
Germany
USt-IdNr.: DE260461592

Tel.: +49-(0)172-6807809
Tel.: +49-(0)69-67808-900
Fax: +49-(0)69-67808-837
Email: stefan.kl...@cac-netzwerk.de
Profil: http://www.cac-netzwerk.de/profil

smime.p7s
Description: S/MIME Cryptographic Signature


[SOGo] nginx proxy manager & SOGo

2023-04-25 Thread Brandon Verkamp
Not that exact situation, but I do have SOGo set up behind a nginx proxy 
(vanilla nginx i.e. not nginx proxy manager) running on a VM. If you think that 
my configs might be useful I'd be happy to share.


[SOGo] nginx proxy manager & SOGo

2023-04-24 Thread Stefan Klatt

Hello,

has anybody experience with SOGo behind an nginx proxy manager on a 
dedicated docker system on another machine?


Regards

Stefan Klatt
--
*CaC, Computer and Communication*
Inhaber Stefan Klatt
End-2-End Senior Security Consultant
CISSP / CEH / CISM / BSI IT-Grundschutz Praktiker / ISO27001 Senior Lead 
Implementer /

TOGAF9 / VdS-anerkannter Berater für Cyber-Security
Badges: https://www.youracclaim.com/users/stefan-klatt
Triftstrasse 9
60528 Frankfurt
Germany
USt-IdNr.: DE260461592

Tel.: +49-(0)172-6807809
Tel.: +49-(0)69-67808-900
Fax: +49-(0)69-67808-837
Email: stefan.kl...@cac-netzwerk.de
Profil: http://www.cac-netzwerk.de/profil

smime.p7s
Description: S/MIME Cryptographic Signature


Re: [SOGo] Nginx Configuration for CardDav?

2017-05-01 Thread Marcus MERIGHI
users@sogo.nu (Ron Scott-Adams), 2017.04.30 (Sun) 11:08 (CEST):
> I???ve had great success getting everything working in SOGo 3.2.6
> except for CardDav with macOS and iOS clients. Does anyone have an
> Nginx equivalent to this Apache example in the docs:
> https://sogo.nu/files/docs/SOGoInstallationGuide.html#_apple_addressbook
> 

I follow OpenBSDs ports/packages README and never had trouble with such
clients. README found e.g. here:

https://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/www/sogo/pkg/README?rev=1.20=text/x-cvsweb-markup

Marcus

> !DSPAM:59062779215462134210383!
-- 
users@sogo.nu
https://inverse.ca/sogo/lists


[SOGo] Nginx Configuration for CardDav?

2017-04-30 Thread Ron Scott-Adams
I’ve had great success getting everything working in SOGo 3.2.6 except for 
CardDav with macOS and iOS clients. Does anyone have an Nginx equivalent to 
this Apache example in the docs: 
https://sogo.nu/files/docs/SOGoInstallationGuide.html#_apple_addressbook 


Thanks in advance!
-- 
users@sogo.nu
https://inverse.ca/sogo/lists

[SOGo] Nginx timeout setting

2015-08-16 Thread Zhang Huangbin
Dear developers,

I had one SOGo timeout error with Nginx, here's the nginx error log:

2015/08/16 05:10:03 [error] 22144#0: *59 upstream timed out (110: Connection 
timed out) while reading response header from upstream, client: 83.215.226.25, 
server: _, request: POST 
/Microsoft-Server-ActiveSync?jRIJBBBOaW5lNzYwRjk2QzQ3RUREBAAHQW5kcm9pZAcBAA==
 HTTP/1.1, upstream: 
http://127.0.0.1:2/SOGo/Microsoft-Server-ActiveSync?jRIJBBBOaW5lNzYwRjk2QzQ3RUREBAAHQW5kcm9pZAcBAA==;,
 host: xxx

And SOGo log:

[WARN] 0x0x7f4f7ad00090[WOWatchDogChild] pid 19036 has been hanging in the 
same request for 1 minutes
[ERROR] 0x0x7f4f7b1110e0[WOHttpTransaction] client disconnected during 
delivery of response for WORequest[0x0x7f4f7b059030]: method=POST 
uri=/SOGo/Microsoft-Server-ActiveSync?Cmd=PingDeviceType=BlackBerryUser=my_user%40my_domainDeviceId=XX
 app=SOGo rqKey=Microsoft-Server-ActiveSync rqPath=(null) (len=13): the socket 
was shutdown

May i know what setting (and suggested value) i should set/change in Nginx and 
SOGo?

Here's my (part of) SOGo and Nginx config files: http://pastebin.com/Ji8WZmnY

Thanks for helping.


Zhang Huangbin, founder of iRedMail project: http://www.iredmail.org/
Time zone: GMT+8 (China/Beijing).

-- 
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] nginx + activesync

2015-06-04 Thread Christian M. Jensen

Hi Simon

have you tried
adding this to the config,

server {
.
proxy_http_version 1.1;
proxy_set_header Connection ;
.
}

also i'm not sure, but i dont think ssl stapling works without 
'ssl_trusted_certificate', maby i'm wrong


Regards
Christian Jensen

On 04-06-2015 18:23, Simon Dieterle wrote:

Hi Christian,

i used the all the nginx.confs containting ActiveSync i found. But 
right now this one is the one i use to test.


http://pastebin.com/BtwFrqvh

As i'm not interested in having a webinterface i don't mind the other 
rules being wrong.


I don't understand why i get a response from SOGo but it does not 
contain the AS version.


I also tried a sogo docker container which gave my the same behaviour.

Simon

On 06/04/2015 04:29 PM, Christian M. Jensen wrote:

hi.

what is your current nginx config?

i had to add 'proxy_set_header Connection ;' to my config in order to
get it running

Regards
Christian Jensen

On 03-06-2015 18:07, smnd...@openmailbox.org wrote:

Hi,

i compiled sogo 2.3.0 and everything is working as expected, except
active
sync.

I used the following rule in nginx

location ^~ /Microsoft-Server-ActiveSync {
 proxy_pass
http://127.0.0.1:2/SOGo/Microsoft-Server-ActiveSync
 proxy_redirect
http://127.0.0.1:2/Microsoft-Server-ActiveSync /;
 }

I tried Microsofts Connectivity Tool and that's the result:

Testing HTTP Authentication Methods for URL
https://torment.simondieterle.net/Microsoft-Server-ActiveSync/.
  The HTTP authentication test failed.
Additional Details

A 401 error was received from the server, but no authentication
methods are
supported.
HTTP Response Headers:
Connection: keep-alive
Keep-Alive: timeout=20
Sogo-Request-Duration: 0.000941
Content-Length: 0
Content-Type: text/plain
Date: Wed, 03 Jun 2015 15:35:56 GMT
Server: nginx/1.7.6
WWW-Authenticate: basic realm=SOGo
Elapsed Time: 381 ms.

I also tried it from a WP8.1 Phone. It gives me an error about a wrong
server
versionen. I fired up wireshark on lo port 2000 and that's the output.

OPTIONS /SOGo/Microsoft-Server-ActiveSync?
User=simonDeviceId=deviceidDeviceType=WP8 HTTP/1.0
Host: 127.0.0.1:2
Connection: close
Cache-Control: no-cache
Pragma: no-cache
Authorization: Basic b64stuff==
User-Agent: MSFT-WP/8.10.14219
MS-ASProtocolVersion: 2.5

HTTP/1.1 200 OK
Sogo-Request-Duration: 0.057482
Content-Type: text/plain
Allow: GET, HEAD, POST, OPTIONS, MKCOL, MKCALENDAR, DELETE, PUT, LOCK,
UNLOCK,
COPY, MOVE, REPORT, PROPFIND, SEARCH
Content-Length: 0
DAV: 1, 2

I assume the problem is that there are no MS-XXX headers in the 
response,

which throws of the WP client.

I don't know where the problem could be, the proxying is working (i
assume)
because there is a Sogo- header in the response.

Can anyone point me anywhere? I tried 5 different nginx configs, 
nothing

works.








smime.p7s
Description: S/MIME Cryptographic Signature


Re: [SOGo] nginx + activesync

2015-06-04 Thread Simon Dieterle

Hi Christian,

i used the all the nginx.confs containting ActiveSync i found. But right 
now this one is the one i use to test.


http://pastebin.com/BtwFrqvh

As i'm not interested in having a webinterface i don't mind the other 
rules being wrong.


I don't understand why i get a response from SOGo but it does not 
contain the AS version.


I also tried a sogo docker container which gave my the same behaviour.

Simon

On 06/04/2015 04:29 PM, Christian M. Jensen wrote:

hi.

what is your current nginx config?

i had to add 'proxy_set_header Connection ;' to my config in order to
get it running

Regards
Christian Jensen

On 03-06-2015 18:07, smnd...@openmailbox.org wrote:

Hi,

i compiled sogo 2.3.0 and everything is working as expected, except
active
sync.

I used the following rule in nginx

location ^~ /Microsoft-Server-ActiveSync {
 proxy_pass
http://127.0.0.1:2/SOGo/Microsoft-Server-ActiveSync
 proxy_redirect
http://127.0.0.1:2/Microsoft-Server-ActiveSync /;
 }

I tried Microsofts Connectivity Tool and that's the result:

Testing HTTP Authentication Methods for URL
https://torment.simondieterle.net/Microsoft-Server-ActiveSync/.
  The HTTP authentication test failed.
Additional Details

A 401 error was received from the server, but no authentication
methods are
supported.
HTTP Response Headers:
Connection: keep-alive
Keep-Alive: timeout=20
Sogo-Request-Duration: 0.000941
Content-Length: 0
Content-Type: text/plain
Date: Wed, 03 Jun 2015 15:35:56 GMT
Server: nginx/1.7.6
WWW-Authenticate: basic realm=SOGo
Elapsed Time: 381 ms.

I also tried it from a WP8.1 Phone. It gives me an error about a wrong
server
versionen. I fired up wireshark on lo port 2000 and that's the output.

OPTIONS /SOGo/Microsoft-Server-ActiveSync?
User=simonDeviceId=deviceidDeviceType=WP8 HTTP/1.0
Host: 127.0.0.1:2
Connection: close
Cache-Control: no-cache
Pragma: no-cache
Authorization: Basic b64stuff==
User-Agent: MSFT-WP/8.10.14219
MS-ASProtocolVersion: 2.5

HTTP/1.1 200 OK
Sogo-Request-Duration: 0.057482
Content-Type: text/plain
Allow: GET, HEAD, POST, OPTIONS, MKCOL, MKCALENDAR, DELETE, PUT, LOCK,
UNLOCK,
COPY, MOVE, REPORT, PROPFIND, SEARCH
Content-Length: 0
DAV: 1, 2

I assume the problem is that there are no MS-XXX headers in the response,
which throws of the WP client.

I don't know where the problem could be, the proxying is working (i
assume)
because there is a Sogo- header in the response.

Can anyone point me anywhere? I tried 5 different nginx configs, nothing
works.




--
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] nginx + activesync

2015-06-04 Thread Christian M. Jensen

hi.

what is your current nginx config?

i had to add 'proxy_set_header Connection ;' to my config in order to 
get it running


Regards
Christian Jensen

On 03-06-2015 18:07, smnd...@openmailbox.org wrote:

Hi,

i compiled sogo 2.3.0 and everything is working as expected, except active
sync.

I used the following rule in nginx

location ^~ /Microsoft-Server-ActiveSync {
 proxy_pass
http://127.0.0.1:2/SOGo/Microsoft-Server-ActiveSync
 proxy_redirect
http://127.0.0.1:2/Microsoft-Server-ActiveSync /;
 }

I tried Microsofts Connectivity Tool and that's the result:

Testing HTTP Authentication Methods for URL
https://torment.simondieterle.net/Microsoft-Server-ActiveSync/.
The HTTP authentication test failed.
Additional Details

A 401 error was received from the server, but no authentication methods are
supported.
HTTP Response Headers:
Connection: keep-alive
Keep-Alive: timeout=20
Sogo-Request-Duration: 0.000941
Content-Length: 0
Content-Type: text/plain
Date: Wed, 03 Jun 2015 15:35:56 GMT
Server: nginx/1.7.6
WWW-Authenticate: basic realm=SOGo
Elapsed Time: 381 ms.

I also tried it from a WP8.1 Phone. It gives me an error about a wrong server
versionen. I fired up wireshark on lo port 2000 and that's the output.

OPTIONS /SOGo/Microsoft-Server-ActiveSync?
User=simonDeviceId=deviceidDeviceType=WP8 HTTP/1.0
Host: 127.0.0.1:2
Connection: close
Cache-Control: no-cache
Pragma: no-cache
Authorization: Basic b64stuff==
User-Agent: MSFT-WP/8.10.14219
MS-ASProtocolVersion: 2.5

HTTP/1.1 200 OK
Sogo-Request-Duration: 0.057482
Content-Type: text/plain
Allow: GET, HEAD, POST, OPTIONS, MKCOL, MKCALENDAR, DELETE, PUT, LOCK, UNLOCK,
COPY, MOVE, REPORT, PROPFIND, SEARCH
Content-Length: 0
DAV: 1, 2

I assume the problem is that there are no MS-XXX headers in the response,
which throws of the WP client.

I don't know where the problem could be, the proxying is working (i assume)
because there is a Sogo- header in the response.

Can anyone point me anywhere? I tried 5 different nginx configs, nothing
works.





smime.p7s
Description: S/MIME Cryptographic Signature


Re: [SOGo] nginx + activesync

2015-06-04 Thread Simon Dieterle

Hi Christian,

i tried it, but it doesn't change anything.

I don't have a running installation to test, but i assume the following 
curl command does nearly the same as my phone trying to connect. It 
would be interesting how the response is on a working sogo.


It doesn't look like nginx is the problem. Could it be a problem with 
sql auth instead of ldap?


curl -X OPTIONS -H MS-ASProtocolVersion: 2.5 -u simon:pass 
http://localhost:2/SOGo/Microsoft-Server-ActiveSync?User=simonDeviceId=idDeviceType=WP8; 
-i


HTTP/1.1 200 OK
Sogo-Request-Duration: 0.059894
Content-Type: text/plain
Allow: GET, HEAD, POST, OPTIONS, MKCOL, MKCALENDAR, DELETE, PUT, LOCK, 
UNLOCK, COPY, MOVE, REPORT, PROPFIND, SEARCH

Content-Length: 0
DAV: 1, 2

Simon



On 06/04/2015 08:20 PM, Christian M. Jensen wrote:

Hi Simon

have you tried
adding this to the config,

server {
 .
 proxy_http_version 1.1;
 proxy_set_header Connection ;
 .
}

also i'm not sure, but i dont think ssl stapling works without
'ssl_trusted_certificate', maby i'm wrong

Regards
Christian Jensen

On 04-06-2015 18:23, Simon Dieterle wrote:

Hi Christian,

i used the all the nginx.confs containting ActiveSync i found. But
right now this one is the one i use to test.

http://pastebin.com/BtwFrqvh

As i'm not interested in having a webinterface i don't mind the other
rules being wrong.

I don't understand why i get a response from SOGo but it does not
contain the AS version.

I also tried a sogo docker container which gave my the same behaviour.

Simon

On 06/04/2015 04:29 PM, Christian M. Jensen wrote:

hi.

what is your current nginx config?

i had to add 'proxy_set_header Connection ;' to my config in order to
get it running

Regards
Christian Jensen

On 03-06-2015 18:07, smnd...@openmailbox.org wrote:

Hi,

i compiled sogo 2.3.0 and everything is working as expected, except
active
sync.

I used the following rule in nginx

location ^~ /Microsoft-Server-ActiveSync {
 proxy_pass
http://127.0.0.1:2/SOGo/Microsoft-Server-ActiveSync
 proxy_redirect
http://127.0.0.1:2/Microsoft-Server-ActiveSync /;
 }

I tried Microsofts Connectivity Tool and that's the result:

Testing HTTP Authentication Methods for URL
https://torment.simondieterle.net/Microsoft-Server-ActiveSync/.
  The HTTP authentication test failed.
Additional Details

A 401 error was received from the server, but no authentication
methods are
supported.
HTTP Response Headers:
Connection: keep-alive
Keep-Alive: timeout=20
Sogo-Request-Duration: 0.000941
Content-Length: 0
Content-Type: text/plain
Date: Wed, 03 Jun 2015 15:35:56 GMT
Server: nginx/1.7.6
WWW-Authenticate: basic realm=SOGo
Elapsed Time: 381 ms.

I also tried it from a WP8.1 Phone. It gives me an error about a wrong
server
versionen. I fired up wireshark on lo port 2000 and that's the output.

OPTIONS /SOGo/Microsoft-Server-ActiveSync?
User=simonDeviceId=deviceidDeviceType=WP8 HTTP/1.0
Host: 127.0.0.1:2
Connection: close
Cache-Control: no-cache
Pragma: no-cache
Authorization: Basic b64stuff==
User-Agent: MSFT-WP/8.10.14219
MS-ASProtocolVersion: 2.5

HTTP/1.1 200 OK
Sogo-Request-Duration: 0.057482
Content-Type: text/plain
Allow: GET, HEAD, POST, OPTIONS, MKCOL, MKCALENDAR, DELETE, PUT, LOCK,
UNLOCK,
COPY, MOVE, REPORT, PROPFIND, SEARCH
Content-Length: 0
DAV: 1, 2

I assume the problem is that there are no MS-XXX headers in the
response,
which throws of the WP client.

I don't know where the problem could be, the proxying is working (i
assume)
because there is a Sogo- header in the response.

Can anyone point me anywhere? I tried 5 different nginx configs,
nothing
works.







--
users@sogo.nu
https://inverse.ca/sogo/lists


[SOGo] nginx + activesync

2015-06-03 Thread smndtrl
Hi,

i compiled sogo 2.3.0 and everything is working as expected, except active
sync.

I used the following rule in nginx

location ^~ /Microsoft-Server-ActiveSync {
proxy_pass
http://127.0.0.1:2/SOGo/Microsoft-Server-ActiveSync
proxy_redirect
http://127.0.0.1:2/Microsoft-Server-ActiveSync /;
}

I tried Microsofts Connectivity Tool and that's the result:

Testing HTTP Authentication Methods for URL
https://torment.simondieterle.net/Microsoft-Server-ActiveSync/.
The HTTP authentication test failed.
Additional Details

A 401 error was received from the server, but no authentication methods are
supported.
HTTP Response Headers:
Connection: keep-alive
Keep-Alive: timeout=20
Sogo-Request-Duration: 0.000941
Content-Length: 0
Content-Type: text/plain
Date: Wed, 03 Jun 2015 15:35:56 GMT
Server: nginx/1.7.6
WWW-Authenticate: basic realm=SOGo
Elapsed Time: 381 ms.

I also tried it from a WP8.1 Phone. It gives me an error about a wrong server
versionen. I fired up wireshark on lo port 2000 and that's the output.

OPTIONS /SOGo/Microsoft-Server-ActiveSync?
User=simonDeviceId=deviceidDeviceType=WP8 HTTP/1.0
Host: 127.0.0.1:2
Connection: close
Cache-Control: no-cache
Pragma: no-cache
Authorization: Basic b64stuff==
User-Agent: MSFT-WP/8.10.14219
MS-ASProtocolVersion: 2.5

HTTP/1.1 200 OK
Sogo-Request-Duration: 0.057482
Content-Type: text/plain
Allow: GET, HEAD, POST, OPTIONS, MKCOL, MKCALENDAR, DELETE, PUT, LOCK, UNLOCK,
COPY, MOVE, REPORT, PROPFIND, SEARCH
Content-Length: 0
DAV: 1, 2

I assume the problem is that there are no MS-XXX headers in the response,
which throws of the WP client.

I don't know where the problem could be, the proxying is working (i assume)
because there is a Sogo- header in the response.

Can anyone point me anywhere? I tried 5 different nginx configs, nothing
works.
-- 
users@sogo.nu
https://inverse.ca/sogo/lists


[SOGo] Nginx with SOGo 2.2.5 Upstream prematurely closed connection when Checking Contacts

2014-07-13 Thread Ron Scott-Adams
In my Nginx error.log, I frequently see:
[error] 24793#0: *23012 upstream prematurely closed connection while reading 
response header from upstream, client: 1.2.3.4, server: example.org, request: 
PROPFIND /SOGo/dav/username/Contacts/ HTTP/1.1, upstream: 
http://127.0.0.1:2/SOGo/dav//username/Contacts/;, host: “example.org:8843”

Why?-- 
users@sogo.nu
https://inverse.ca/sogo/lists

[SOGo] Nginx config with SOGo Microsoft-Server-ActiveSync support

2014-04-08 Thread Djordje Crni
Can someone update Wiki page Config for Nginx and Sogo with working
ActiveSync part?

Nginx Wiki page has a lot of info about ActiveSync gateway settings.
http://wiki.nginx.org/SSL-Offloader#Active-Sync_Gateway
-- 
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] Nginx config with SOGo Microsoft-Server-ActiveSync support

2014-04-08 Thread ABBAS Alain

I will do to morrow
regards



Le Mardi 8 Avril 2014 08:24 CEST, Djordje Crni djordjije.c...@gmail.com a 
écrit:
 Can someone update Wiki page Config for Nginx and Sogo with working 
ActiveSync part?

Nginx Wiki page has a lot of info about ActiveSync gateway settings.
http://wiki.nginx.org/SSL-Offloader#Active-Sync_Gateway
--
Alain Abbas
11 rue Robert Schumann
54500 Vandoeuvre
Tel : +333 83 18 02 70
skype: alain.abbas-- 
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] nginx

2014-02-16 Thread Rob Kemp

On 02/14/2014 09:02 PM, mayak wrote:

On 02/14/2014 07:30 PM, Rob Kemp wrote:

I wonder if someone can help me sort out the configuration problem I'm
having. I had phpMyAdmin and postfix.admin running on my server, under
nginx. Then I installed SOGo, and had the problem I described before
where trying to open the SOGo web interface resulted in a 404 error.

This turns out to have been because the setup I was using was sending
all requests for SSL sites to a directory under /home, whereas of
course SOGo lives elsewhere. Disabling the non-SOGo config file solved
that problem.

However, now I'm not able to work out how to get SOGo AND the other
two services to work at the same time. With the SOGo/nginx config file
I've been using, anything landing on sogo.server.com is redirected to
sogo.server.com/SOGo, and I haven't a clue how to enable
sogo.server.com/phpmyadmin. Several hours poring over nginx
documentation hasn't helped much either, as I'm a bit thick about that
sort of thing. So I was hoping someone who might have a similar setup
could give me a pointer (or post a config file) that shows how SOGo
can coexist with phpMyAdmin or something similar.

Thanks

Rob

Hi Rob,

If I have understood you correctly, you probably want use to use virtual
hosts:

a.domain.com
b.domain.com
c.domain.com

Each of these would have a `container` describing SSL certs, home
directory, etc ...

Cheers

M


That's right, and with a, b, and c being the same domain. I've tried to 
set it up that way, but on restarting nginx the non-SOGo virtual hosts 
throw up a warning that they are duplicates and are being ignored. I'll 
go back to the nginx documentation.


Thanks

Rob
--
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] nginx

2014-02-16 Thread mayak
On 02/15/2014 09:16 AM, Rob Kemp wrote:
 On 02/14/2014 09:02 PM, mayak wrote:
 On 02/14/2014 07:30 PM, Rob Kemp wrote:
 snipHi Rob,

 If I have understood you correctly, you probably want use to use virtual
 hosts:

 a.domain.com
 b.domain.com
 c.domain.com

 Each of these would have a `container` describing SSL certs, home
 directory, etc ...

 Cheers

 M

 That's right, and with a, b, and c being the same domain. I've tried
 to set it up that way, but on restarting nginx the non-SOGo virtual
 hosts throw up a warning that they are duplicates and are being
 ignored. I'll go back to the nginx documentation.

 Thanks

 Rob
Hi Rob,

a) verify DNS -- that you have these named resolving correctly
b) each nginx container should look something like this (i keep these in
separate .conf files) -- make sure `server_name` is unique across your
config files -- make sure confs are readable by nginx user:

server {
listen 443;
server_name sogo.domain.com;
access_log  /var/log/nginx/sogo-access.log;
error_log /var/log/nginx/sogo-error.log;

location ^~ /SOGo {
}
}

server {
listen 443;
server_name redmine.domain.com;
access_log  /var/log/nginx/redmine-access.log;
error_log /var/log/nginx/redmine-error.log;

location / {
}
}

server {
listen 443;
server_name another.domain.com;
access_log  /var/log/nginx/another-access.log;
error_log /var/log/nginx/another-error.log;

location / {
}
}

c) post the error message here in the forum

thanks

m



-- 
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] nginx

2014-02-14 Thread Rob Kemp
I wonder if someone can help me sort out the configuration problem I'm 
having. I had phpMyAdmin and postfix.admin running on my server, under 
nginx. Then I installed SOGo, and had the problem I described before 
where trying to open the SOGo web interface resulted in a 404 error.


This turns out to have been because the setup I was using was sending 
all requests for SSL sites to a directory under /home, whereas of course 
SOGo lives elsewhere. Disabling the non-SOGo config file solved that 
problem.


However, now I'm not able to work out how to get SOGo AND the other two 
services to work at the same time. With the SOGo/nginx config file I've 
been using, anything landing on sogo.server.com is redirected to 
sogo.server.com/SOGo, and I haven't a clue how to enable 
sogo.server.com/phpmyadmin. Several hours poring over nginx 
documentation hasn't helped much either, as I'm a bit thick about that 
sort of thing. So I was hoping someone who might have a similar setup 
could give me a pointer (or post a config file) that shows how SOGo can 
coexist with phpMyAdmin or something similar.


Thanks

Rob
--
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] nginx

2014-02-14 Thread mayak

On 02/14/2014 07:30 PM, Rob Kemp wrote:
 I wonder if someone can help me sort out the configuration problem I'm
 having. I had phpMyAdmin and postfix.admin running on my server, under
 nginx. Then I installed SOGo, and had the problem I described before
 where trying to open the SOGo web interface resulted in a 404 error.

 This turns out to have been because the setup I was using was sending
 all requests for SSL sites to a directory under /home, whereas of
 course SOGo lives elsewhere. Disabling the non-SOGo config file solved
 that problem.

 However, now I'm not able to work out how to get SOGo AND the other
 two services to work at the same time. With the SOGo/nginx config file
 I've been using, anything landing on sogo.server.com is redirected to
 sogo.server.com/SOGo, and I haven't a clue how to enable
 sogo.server.com/phpmyadmin. Several hours poring over nginx
 documentation hasn't helped much either, as I'm a bit thick about that
 sort of thing. So I was hoping someone who might have a similar setup
 could give me a pointer (or post a config file) that shows how SOGo
 can coexist with phpMyAdmin or something similar.

 Thanks

 Rob
Hi Rob,

If I have understood you correctly, you probably want use to use virtual
hosts:

a.domain.com
b.domain.com
c.domain.com

Each of these would have a `container` describing SSL certs, home
directory, etc ...

Cheers

M
-- 
users@sogo.nu
https://inverse.ca/sogo/lists


[SOGo] nginx

2014-02-13 Thread rpkemp
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
-- 
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] nginx

2014-02-13 Thread Andy Tuinman
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 rpk...@copwick.net:

 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
 --
 users@sogo.nu
 https://inverse.ca/sogo/lists

-- 
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] nginx

2014-02-13 Thread mayak
On 02/13/2014 08:09 PM, Andy Tuinman 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.

snip

here's mine:

url is: ghttps://sogo.domain.com

server {
listen 443;
server_name sogo.domain.com;
rewrite ^/$ https://sogo.domain.com/SOGo;
access_log  /var/log/nginx/sogo-access.log;
error_log /var/log/nginx/sogo-error.log;


location ^~ /SOGo {
  proxy_passhttp://127.0.0.1:2/SOGo;
  proxy_redirecthttp://127.0.0.1:2/SOGo/;

  proxy_set_headerX-Real-IP$remote_addr;
  proxy_set_headerX-Forwarded-For   
$proxy_add_x_forwarded_for;
  proxy_set_headerHostsogo.domain.com;
  proxy_set_headerx-webobjects-server-protocolHTTP/1.0;
  proxy_set_headerx-webobjects-remote-hostsogo.domain.com;
  proxy_set_headerx-webobjects-server-namesogo.domain.com;
  proxy_set_headerx-webobjects-server-url   
https://sogo.domain.com;
  proxy_connect_timeout90;
  proxy_send_timeout90;
  proxy_read_timeout90;
  proxy_buffer_size4k;
  proxy_buffers16 64k;
  proxy_busy_buffers_size64k;
  proxy_temp_file_write_size64k;

  client_max_body_size50m;
  client_body_buffer_size128k;
  break;
}

location ^~ /Microsoft-Server-ActiveSync {
proxy_pass http://127.0.0.1:2/SOGo/Microsoft-Server-ActiveSync;
proxy_redirect 
http://127.0.0.1:2/Microsoft-Server-ActiveSync /;
}

location ^~ /SOGo/Microsoft-Server-ActiveSync {
proxy_pass http://127.0.0.1:2/SOGo/Microsoft-Server-ActiveSync;
proxy_redirect 
http://127.0.0.1:2/SOGo/Microsoft-Server-ActiveSync /;
}

location /.woa/WebServerResources/ {
  alias /usr/lib64/GNUstep/SOGo/WebServerResources/;
}

location /SOGo.woa/WebServerResources/ {
  alias/usr/lib64/GNUstep/SOGo/WebServerResources/;
}

location /SOGo/WebServerResources/ {
  alias/usr/lib64/GNUstep/SOGo/WebServerResources/;
}

location ^/SOGo/so/ControlPanel/Products/([^/]*)/Resources/(.*)$ {
  alias/usr/lib64/GNUstep/SOGo/$1.SOGo/Resources/$2;
}
}

-- 
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] nginx

2014-02-13 Thread J.
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:2;
    proxy_redirect http://127.0.0.1:2 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 andytuinm...@gmail.com 
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  rpk...@copwick.net:

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
--
users@sogo.nu
https://inverse.ca/sogo/lists
-- 
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] nginx

2014-02-13 Thread Rob Kemp
Thanks Andy. All I did, I think, was to change the hostname and the 
location of the SSL certificates. (I've replaced the server name with 
X's below, but that was accurately entered without typos in the file I 
was trying to use).


-

server {

listen 80 default;
server_name XXX.XXX.com;
## redirect http to https ##
rewrite ^ https://$server_name$request_uri? permanent;
}
server {

listen 443;
server_name XXX.XXX.com;
root /usr/lib/GNUstep/SOGo/WebServerResources/;
ssl on;
ssl_certificate /etc/nginx/certs/XXX.XXX.com.crt;
ssl_certificate_key /etc/nginx/certs/XXX.XXX.com.key;
location = /
{
rewrite ^ https://$server_name/SOGo;
allow all;
}
# For IOS 7
location = /principals/
{
rewrite ^ https://$server_name/SOGo/dav;
allow all;
}
location ^~/SOGo {
proxy_pass http://127.0.0.1:2;
proxy_redirect http://127.0.0.1:2 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 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;
}
}

-

On 02/13/2014 07:09 PM, Andy Tuinman 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 rpk...@copwick.net 
mailto:rpk...@copwick.net:


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
--
users@sogo.nu mailto:users@sogo.nu
https://inverse.ca/sogo/lists



--
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] nginx

2014-02-13 Thread Rob Kemp
Thanks, it turned out that while following some instructions of the 
internet (silly, I know!) I had put in place some configuration file 
that was redirecting all SSL connections somewhere different. So I have 
sorted it out now. I'll have a look at your configurations though - many 
thanks.


Rob

On 02/13/2014 08:36 PM, mayak wrote:

On 02/13/2014 08:09 PM, Andy Tuinman 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.


snip

here's mine:

url is: ghttps://sogo.domain.com

server {
 listen 443;
 server_name sogo.domain.com;
 rewrite ^/$ https://sogo.domain.com/SOGo;
 access_log  /var/log/nginx/sogo-access.log;
 error_log /var/log/nginx/sogo-error.log;


 location ^~ /SOGo {
   proxy_passhttp://127.0.0.1:2/SOGo;
   proxy_redirecthttp://127.0.0.1:2/SOGo/;

   proxy_set_headerX-Real-IP$remote_addr;
   proxy_set_headerX-Forwarded-For
$proxy_add_x_forwarded_for;
   proxy_set_headerHostsogo.domain.com;
   proxy_set_headerx-webobjects-server-protocolHTTP/1.0;
   proxy_set_headerx-webobjects-remote-hostsogo.domain.com;
   proxy_set_headerx-webobjects-server-namesogo.domain.com;
   proxy_set_headerx-webobjects-server-url
https://sogo.domain.com;
   proxy_connect_timeout90;
   proxy_send_timeout90;
   proxy_read_timeout90;
   proxy_buffer_size4k;
   proxy_buffers16 64k;
   proxy_busy_buffers_size64k;
   proxy_temp_file_write_size64k;

   client_max_body_size50m;
   client_body_buffer_size128k;
   break;
 }

 location ^~ /Microsoft-Server-ActiveSync {
 proxy_pass http://127.0.0.1:2/SOGo/Microsoft-Server-ActiveSync;
 proxy_redirect
http://127.0.0.1:2/Microsoft-Server-ActiveSync /;
 }

 location ^~ /SOGo/Microsoft-Server-ActiveSync {
 proxy_pass http://127.0.0.1:2/SOGo/Microsoft-Server-ActiveSync;
 proxy_redirect
http://127.0.0.1:2/SOGo/Microsoft-Server-ActiveSync /;
 }

 location /.woa/WebServerResources/ {
   alias /usr/lib64/GNUstep/SOGo/WebServerResources/;
 }

 location /SOGo.woa/WebServerResources/ {
   alias/usr/lib64/GNUstep/SOGo/WebServerResources/;
 }

 location /SOGo/WebServerResources/ {
   alias/usr/lib64/GNUstep/SOGo/WebServerResources/;
 }

 location ^/SOGo/so/ControlPanel/Products/([^/]*)/Resources/(.*)$ {
   alias/usr/lib64/GNUstep/SOGo/$1.SOGo/Resources/$2;
 }
}



--
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] nginx with SOGo

2013-09-02 Thread Mayak
On Sun, 2013-09-01 at 13:34 -0700, J. wrote:
 I see a couple of links online, but nothing in the FAQ. I'm running a
 server with Ubuntu 12.04LTS and using nginx to serve a few domains'
 sites. I'd like to add SOGo without also installing Apache. Is this
 reasonably convenient for a low-mid-level IT guy, or would it be
 better to just use Apache? Honestly, my head is already spinning a bit
 after reading all the LDAP docs, so I might already be in over my
 head, but thought I'd ask here. Thanks.
 
 
 

hi,

this is working for me

server {
listen   443;
server_name  sogo.domain.com
rewrite ^/$ https://sogo.domain.com/SOGo;
access_log  /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;


ssl  on;
ssl_certificate  /etc/x509/service.apache/domain.com.pem;
ssl_certificate_key  /etc/x509/service.apache/domain.com.key;

ssl_session_timeout  5m;

ssl_protocols  SSLv2 SSLv3;
ssl_ciphers  ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:
+EXP;
ssl_prefer_server_ciphers   on;

location ^~ /SOGo {
  proxy_passhttp://127.0.0.1:2/SOGo;
  proxy_redirecthttp://127.0.0.1:2/SOGo/;

  proxy_set_header  X-Real-IP   $remote_addr;
  proxy_set_header  X-Forwarded-For 
$proxy_add_x_forwarded_for;
  proxy_set_header  Host
sogo.airchina.ru;
  proxy_set_header  x-webobjects-server-protocolHTTP/1.0;
  proxy_set_header  x-webobjects-remote-hostsogo.airchina.r;
  proxy_set_header  x-webobjects-server-namesogo.domain.com;
  proxy_set_header  x-webobjects-server-url
https://sogo.domain.com;
  proxy_connect_timeout 90;
  proxy_send_timeout90;
  proxy_read_timeout90;
  proxy_buffer_size 4k;
  proxy_buffers 4 32k;
  proxy_busy_buffers_size   64k;
  proxy_temp_file_write_size64k;

  client_max_body_size  50m;
  client_body_buffer_size   128k;
  break;
}

location /.woa/WebServerResources/ {
  alias /usr/lib64/GNUstep/SOGo/WebServerResources/;
}

location /SOGo.woa/WebServerResources/ {
  alias /usr/lib64/GNUstep/SOGo/WebServerResources/;
}

location /SOGo/WebServerResources/ {
  alias /usr/lib64/GNUstep/SOGo/WebServerResources/;
}

location ^/SOGo/so/ControlPanel/Products/([^/]*)/Resources/(.*)$ {
  alias /usr/lib64/GNUstep/SOGo/$1.SOGo/Resources/$2;
}
}

-- 
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] nginx with SOGo

2013-09-02 Thread Federico Alberto Sayd

On 01/09/13 17:54, Mayak wrote:

On Sun, 2013-09-01 at 13:34 -0700, J. wrote:
I see a couple of links online, but nothing in the FAQ. I'm running a 
server with Ubuntu 12.04LTS and using nginx to serve a few domains' 
sites. I'd like to add SOGo without also installing Apache. Is this 
reasonably convenient for a low-mid-level IT guy, or would it be 
better to just use Apache? Honestly, my head is already spinning a 
bit after reading all the LDAP docs, so I might already be in over my 
head, but thought I'd ask here. Thanks. 





hi,

this is working for me

server {
listen   443;
server_name  sogo.domain.com
rewrite ^/$ https://sogo.domain.com/SOGo;
access_log  /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;


ssl  on;
ssl_certificate  /etc/x509/service.apache/domain.com.pem;
ssl_certificate_key  /etc/x509/service.apache/domain.com.key;

ssl_session_timeout  5m;

ssl_protocols  SSLv2 SSLv3;
ssl_ciphers  
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;

ssl_prefer_server_ciphers   on;

location ^~ /SOGo {
  proxy_pass http://127.0.0.1:2/SOGo;
  proxy_redirect http://127.0.0.1:2/SOGo/;

  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header Host sogo.airchina.ru;
  proxy_set_header x-webobjects-server-protocol HTTP/1.0;
  proxy_set_header x-webobjects-remote-host sogo.airchina.r;
  proxy_set_header x-webobjects-server-name sogo.domain.com;
  proxy_set_header x-webobjects-server-url 
https://sogo.domain.com;

  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 /.woa/WebServerResources/ {
  alias /usr/lib64/GNUstep/SOGo/WebServerResources/;
}

location /SOGo.woa/WebServerResources/ {
  alias /usr/lib64/GNUstep/SOGo/WebServerResources/;
}

location /SOGo/WebServerResources/ {
  alias /usr/lib64/GNUstep/SOGo/WebServerResources/;
}

location ^/SOGo/so/ControlPanel/Products/([^/]*)/Resources/(.*)$ {
  alias /usr/lib64/GNUstep/SOGo/$1.SOGo/Resources/$2;
}
}

I have found that to configure Nginx is more intuitive than Apache. 
Nginx's syntax configuration is more like C programing syntax.


Server directive is like apache's virtualhost, you configure ssl per 
server, also location and proxy_pass are very similar to Apache 
directives.


Use the above suggested configuration. Only change your url site.

don't be afraid of Nginx

Regards

Federico
--
users@sogo.nu
https://inverse.ca/sogo/lists

[SOGo] nginx with SOGo

2013-09-01 Thread J.
I see a couple of links online, but nothing in the FAQ. I'm running a server 
with Ubuntu 12.04LTS and using nginx to serve a few domains' sites. I'd like to 
add SOGo without also installing Apache. Is this reasonably convenient for a 
low-mid-level IT guy, or would it be better to just use Apache? Honestly, my 
head is already spinning a bit after reading all the LDAP docs, so I might 
already be in over my head, but thought I'd ask here. Thanks.-- 
users@sogo.nu
https://inverse.ca/sogo/lists

[SOGo] nginx configuration example

2012-04-26 Thread Patrick Ben Koetter
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ünchenPartnerschaftsregister PR 563

-- 
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] nginx as a reverse proxy and SOGo

2010-09-14 Thread Timothée Foucart

Hi artie
Well, i've got such a problem. there's few examples about nginx conf + Sogo
I use this one for the moment  but the first rewrite rules could be 
incorrect

any suggestion ?


/
location ^~ /SOGo/ {
   rewrite ^(/SOGo)/$ $1;
   proxy_pass  http://127.0.0.1:2;
   proxy_set_headerX-Real-IP $remote_addr;
   proxy_set_headerX-Forwarded-For   
$proxy_add_x_forwarded_for;

   proxy_set_headerHost  $host;
   proxy_set_headerx-webobjects-remote-host  127.0.0.1;
   proxy_set_headerx-webobjects-server-protocol  HTTP/1.0;
   proxy_set_headerx-webobjects-server-name  
$server_name;
   proxy_set_headerx-webobjects-server-port  
$server_port;
   proxy_set_headerx-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_size50m;
   client_body_buffer_size 128k;
 break;
}
/
location /SOGo.woa/WebServerResources/ {
 alias  /usr/GNUstep/System/Library/SOGo/WebServerResources/;
}
location /SOGo/WebServerResources/ {
 alias  /usr/GNUstep/System/Library/SOGo/WebServerResources/;
}
location ^/SOGo/so/ControlPanel/Products/([^/]*)/Resources/(.*)$ {
 alias  /usr/GNUstep/System/Library/SOGo/$1.SOGo/Resources/$2;
}

ar...@itnexus.co.uk a écrit :

Hi All,

I have successfully installed SOGo and it works fine when accessed directly
from the machine where it is installed.  I have now set up another server which
which will run nginx as a reverse proxy for traffic coming from outside.  My
problem is that although nginx is working fine serving web pages from the
server where SOGo is installed, I cannot get it show any pages for SOGo... not
even the logon page.  Can any please guide me with the nginx config required to
get SOGo working through the reverse proxy?

TIA

Artie
  


-- 
users@sogo.nu
https://inverse.ca/sogo/lists

[SOGo] nginx as a reverse proxy and SOGo

2010-08-28 Thread artie
Hi All,

I have successfully installed SOGo and it works fine when accessed directly
from the machine where it is installed.  I have now set up another server which
which will run nginx as a reverse proxy for traffic coming from outside.  My
problem is that although nginx is working fine serving web pages from the
server where SOGo is installed, I cannot get it show any pages for SOGo... not
even the logon page.  Can any please guide me with the nginx config required to
get SOGo working through the reverse proxy?

TIA

Artie
-- 
users@sogo.nu
https://inverse.ca/sogo/lists