Skip to content

Instantly share code, notes, and snippets.

@StevenJL
Last active January 6, 2018 20:46
Show Gist options
  • Save StevenJL/adddc6d8b7c08c7b5d084c83e3609e2b to your computer and use it in GitHub Desktop.
Save StevenJL/adddc6d8b7c08c7b5d084c83e3609e2b to your computer and use it in GitHub Desktop.
Basic Nginx Conf
error_log /var/log/nginx/error.log warn;
events {
use epoll;
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
server {
listen 80;
server_name example.org www.example.org example.com;
location / {
proxy_pass http://localhost:8080;
include proxy_params;
}
location ~ ^(/images|/js|/css) {
root html;
expires 30d;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment