Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
server {
listen 443 ssl;
root /path/to/your-app/public;
index index.html index.htm;
### SSL log files ###
access_log logs/;
error_log logs/;
### SSL cert files ###
ssl_certificate ssl/;
ssl_certificate_key ssl/;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_redirect off;
proxy_pass http://localhost:20559;
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
proxy_set_header X-Forwarded-Proto https;

This comment has been minimized.

Copy link

@ahmadseleem ahmadseleem commented May 21, 2014

SSL log files

access_log /usr/local/etc/nginx/logs/;
error_log /usr/local/etc/nginx/logs/;

because by default it will look to logs dire under here:

So, it seem I am gonna have to change the that every time I update nginx or what do you think would be a better dir then ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment