Re: How to log internal location evaluation

2017-01-20 Thread Nikolaos Milas
On 20/1/2017 11:41 μμ, Peter Booth wrote: But this link suggests otherwise:http://nginx.org/en/docs/debugging_log.html Wow! Didn't know about that! Indeed, my installation includes nginx-debug!! I've tried it and it works fine! My digging (in debugging) starts now Wish me a good underst

Re: How to log internal location evaluation

2017-01-20 Thread Peter Booth
I've always had to configure and build debug versions myself - and usually I want them to coexist in parallel with an existing production nginx install. But this link suggests otherwise: http://nginx.org/en/docs/debugging_log.html You'll be overwhelmed by the volume of output. It gave me a real

Can Nginx route SMTP based on login credentials?

2017-01-20 Thread spockdude
I have several users using the same mail host (smtp.example.com) to send outbound email using authentication. I would like to split it up into several outbound servers and assign specific users to specific mail servers without having to change the mail host information in each user's email client.

Re: How to log internal location evaluation

2017-01-20 Thread Nikolaos Milas
On 20/1/2017 11:16 πμ, Nikolaos Milas wrote: As I am on CentOS 6 and I am using the nginx repo, I have installed: nginx-1.10.2-1.el6.ngx.x86_64 nginx-debuginfo-1.10.2-1.el6.ngx.x86_64 I guess I should be OK with these? It seems I am not. :-( I tried "nginx -V" and I didn't see the re

Re: Questions about root and alias directives

2017-01-20 Thread Valentin V. Bartenev
On Friday 20 January 2017 12:15:30 Nikolaos Milas wrote: > Hello, > > I need a config which includes multiple different physical paths. > > So I have: > > server { > > listen [::]:80; > ... > root /var/webs/wwwmain/www/; > > index index.php index.html

Re: Real IP in header for SMTP Nginx Mail Proxy

2017-01-20 Thread coolmike
Hi Thanks a lot for your answer. This sounds great, but when I enable it, I just get the following at my exim mailserver log: 2017-01-20 13:42:00 SMTP connection from [46.xx.xx.xx]:54087 (TCP/IP connection count = 1) 2017-01-20 13:42:00 SMTP connection from (mailproxy..com) [46.xxx.xx.xx]:540

Re: Real IP in header for SMTP Nginx Mail Proxy

2017-01-20 Thread Maxim Dounin
Hello! On Fri, Jan 20, 2017 at 08:09:35AM +0100, Michael Brunner wrote: > > Hi > > I used the instruction below to build a mail proxy server with nginx: > > https://www.nginx.com/resources/admin-guide/mail-proxy/ > > I configured it for IMAP, POP3 and SMTP. > > It's working quite well but I

Questions about root and alias directives

2017-01-20 Thread Nikolaos Milas
Hello, I need a config which includes multiple different physical paths. So I have: server { listen [::]:80; ... root /var/webs/wwwmain/www/; index index.php index.html index.htm; ... location / { try_files $uri $uri/ /index.p

Re: How to log internal location evaluation

2017-01-20 Thread Nikolaos Milas
On 19/1/2017 10:27 μμ, Peter Booth wrote: You can get all that and a lot, lot more if you build a debug enabled version of nginx Thank you Peter, As I am on CentOS 6 and I am using the nginx repo, I have installed: nginx-1.10.2-1.el6.ngx.x86_64 nginx-debuginfo-1.10.2-1.el6.ngx.x86_64