-
-
Save anonymous/c32b0d0ee91434d80f5c to your computer and use it in GitHub Desktop.
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
| worker_processes 1; | |
| user www-data www-data; | |
| pid /usr/local/nginx/logs/nginx.pid; | |
| error_log /usr/local/nginx/logs/error.log; | |
| events { | |
| worker_connections 1024; | |
| accept_mutex off; | |
| } | |
| http { | |
| include mime.types; | |
| default_type application/octet-stream; | |
| access_log /usr/local/nginx/logs/access.log combined; | |
| sendfile on; | |
| tcp_nopush on; | |
| tcp_nodelay off; | |
| gzip on; | |
| gzip_http_version 1.0; | |
| gzip_proxied any; | |
| gzip_min_length 500; | |
| gzip_disable "MSIE [1-6]\."; | |
| gzip_types text/xml text/css | |
| text/comma-separated-values | |
| text/javascript application/x-javascript | |
| application/atom+xml; | |
| server { | |
| #Catchall vhost | |
| listen 80; ## listen for ipv4 | |
| server_name _; | |
| root /srv/www/$host; | |
| index index.cfm; | |
| access_log /srv/logs/nginx/$host-access.log; | |
| # Do not log missing favicon.ico errors | |
| location = /favicon.ico { access_log off; log_not_found off; } | |
| # Do not serve any .hidden files | |
| location ~ /\. { access_log off; log_not_found off; deny all; } | |
| include /usr/local/nginx/conf/railo_connector.conf; | |
| # End of catch-all Server Configuration | |
| } | |
| include vhosts/*.conf; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment