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.
 
 
 

24 lines
697 B

server{
server_name example.com;
listen 80;
access_log /var/www/example.com/logs/access.log ;
error_log /var/www/example.com/logs/error.log;
root /var/www/example.com/htdocs;
index index.php index.html index.htm;
## PHP with FATSCGI
location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
#root dir
location / {
autoindex on;
try_files $uri $uri/ /index.php?q=$uri&$args;
}
}