20 lines
480 B
Plaintext
20 lines
480 B
Plaintext
server {
|
|
listen 80;
|
|
root /var/www/shitcode.net/web/;
|
|
server_name shitcode.net;
|
|
|
|
index index.php;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php?$args;
|
|
}
|
|
|
|
# pass the PHP scripts to FastCGI server listening on php-71:9000 x
|
|
location ~ \.php$ {
|
|
fastcgi_pass php-71:9000;
|
|
fastcgi_index index.php;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
include fastcgi_params;
|
|
}
|
|
}
|