Created
June 14, 2013 14:47
-
-
Save barraponto/5782444 to your computer and use it in GitHub Desktop.
This file contains 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
user http; | |
worker_processes auto; | |
error_log /var/log/nginx/error.log notice; | |
events { | |
worker_connections 1024; | |
multi_accept on; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; | |
access_log /var/log/nginx/access.log; | |
sendfile on; | |
tcp_nopush on; | |
gzip on; | |
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript image/x-icon application/vnd.ms-fontobject font/opentype application/x-font-ttf; | |
client_max_body_size 2m; | |
upload_progress uploads 2m; | |
server { | |
listen 80; | |
server_name *.drp.lan; | |
root /home/barraponto/Web/$host; | |
index index.php; | |
location ~ \.php$ { | |
include fastcgi.conf; | |
fastcgi_pass unix:/run/php-fpm/php-fpm.sock; | |
} | |
} | |
server { | |
listen 80; | |
server_name *.st.lan; | |
root /home/barraponto/Web/$host; | |
index index.html index.htm; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment