-
Notifications
You must be signed in to change notification settings - Fork 15
nginx
Daniel Speichert edited this page Jun 27, 2014
·
3 revisions
server {
listen 80;
server_name devaac.example.com;
root /home/ubuntu/DevAAC/public_html;
index index.html index.php;
# Logging
access_log /var/log/nginx/devaac.access.log;
error_log /var/log/nginx/devaac.error.log notice;
# serve static files directly
location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt)$ {
access_log off;
expires max;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php5-fpm_ubuntu.sock;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
fastcgi_connect_timeout 3s; # default of 60s is just too long
fastcgi_read_timeout 10s; # default of 60s is just too long
}
try_files $uri $uri/ /index.php?$args;
}