1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- user www-data;
- worker_processes auto;
- pid /run/nginx.pid;
- include /etc/nginx/modules-enabled/*.conf;
- events {
- worker_connections 768;
- # multi_accept on;
- }
- http {
- ##
- # Basic Settings
- ##
- sendfile on;
- tcp_nopush on;
- types_hash_max_size 2048;
- # server_tokens off;
- # server_names_hash_bucket_size 64;
- # server_name_in_redirect off;
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
- ##
- # Logging Settings
- ##
- access_log /dev/stdout;
- error_log /dev/stdout;
- ##
- # Gzip Settings
- ##
- gzip on;
- server {
- listen 80;
- root /static;
- server_name localhost;
- location ^/static {
- try_files $uri $uri/ =404;
- }
- }
- }
|