Browse Source

Basic Nginx Configuration

old-stable
Mitesh Shah 12 years ago
parent
commit
e5ce6143a0
  1. 20
      conf/nginx/basic.conf

20
conf/nginx/basic.conf

@ -0,0 +1,20 @@
server {
server_name example.com www.example.com;
access_log /var/log/nginx/example.com.access.log;
error_log /var/log/nginx/example.com.error.log;
root /var/www/example.com/htdocs;
index index.php index.htm index.html;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass unix:/var/run/php5-fpm.sock;
}
}
Loading…
Cancel
Save