You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
390 B
19 lines
390 B
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;
|
|
}
|
|
}
|
|
|