Last active
January 6, 2018 20:46
-
-
Save StevenJL/adddc6d8b7c08c7b5d084c83e3609e2b to your computer and use it in GitHub Desktop.
Basic Nginx Conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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