Re: 502 bad gateway

2015-12-10 Thread Christ-Jan Wijtmans
Hello Maxim, Thank you for the response. I was assuming the error_log in the block was properly set up but apparently it was not. I finally got an error message "2015/12/10 18:02:13 [error] 30341#0: *10 recv() failed (104: Connection reset by peer) while reading response header from upstream". Pro

502 bad gateway

2015-12-09 Thread Christ-Jan Wijtmans
Hello, I have a magento website working fine for months now. However i recently installed a PDF plugin to send invoices with emails. The PDF url is giving a 502 bad gateway "{admin}/sales_invoice/view/invoice_id/717/key/5650a40d93929f5db4383db2a169b08a/". I have checked around on the internet and

Re: nginx systemd reload service command skips configtest

2015-09-27 Thread Christ-Jan Wijtmans
i can confirm systemd will stop nginx. Live long and prosper, Christ-Jan Wijtmans https://github.com/cjwijtmans http://facebook.com/cj.wijtmans http://twitter.com/cjwijtmans On Sun, Sep 27, 2015 at 5:20 PM, nanaya wrote: > >> On Sat, Sep 26, 2015 at 11:03 PM, Per Hansson >>

Re: Preload Files Module for Nginx

2015-09-27 Thread Christ-Jan Wijtmans
Doesnt linux cache files in RAM already? Live long and prosper, Christ-Jan Wijtmans https://github.com/cjwijtmans http://facebook.com/cj.wijtmans http://twitter.com/cjwijtmans On Thu, Sep 24, 2015 at 3:36 PM, vbresults wrote: > Typo; for preload_files_context_local I meant: > > Defa

Re: nginx systemd reload service command skips configtest

2015-09-27 Thread Christ-Jan Wijtmans
I support this thought. Live long and prosper, Christ-Jan Wijtmans https://github.com/cjwijtmans http://facebook.com/cj.wijtmans http://twitter.com/cjwijtmans On Sat, Sep 26, 2015 at 11:03 PM, Per Hansson wrote: > Hi, the "nginx.service" file shipped with systemd rpm'

Re: nginx nested location and different basic authentication file

2015-09-27 Thread Christ-Jan Wijtmans
Not an nginx expert but i think you can use a map http://nginx.org/en/docs/http/ngx_http_map_module.html You dont even need an if. Live long and prosper, Christ-Jan Wijtmans https://github.com/cjwijtmans http://facebook.com/cj.wijtmans http://twitter.com/cjwijtmans On Sun, Sep 27, 2015 at 10

Dash in request url messes up regex?

2015-06-26 Thread Christ-Jan Wijtmans
; } location / { try_files $uri $uri/ =404; expires 28d; } Live long and prosper, Christ-Jan Wijtmans https://github.com/cjwijtmans http://facebook.com/cj.wijtmans http://twitter.com/cjwijtmans

Re: do not fail when ssl cert not present.

2015-06-18 Thread Christ-Jan Wijtmans
> If you want nginx to only load existing certificates, you'll have > to teach it to do so by only using appropriate directives when > certificates and keys are actually available. The "include" > directive may help if you want to automate this, see > http://nginx.org/r/include. I dont see how in

do not fail when ssl cert not present.

2015-06-18 Thread Christ-Jan Wijtmans
I tried to not fail the nginx server if ssl cert is not available. However the directive is not even allowed inside a statement. if (-f /var/www/x/etc/ssl.crt) { ssl_certificate /var/www/x/etc/ssl.crt; ssl_certificate_key /var/www/x/etc/ssl.key;