21 wiersze
475 B
Plaintext
21 wiersze
475 B
Plaintext
|
server {
|
||
|
root /var/www/html;
|
||
|
|
||
|
access_log /dev/stdout;
|
||
|
error_log /dev/stderr;
|
||
|
|
||
|
charset utf-8;
|
||
|
|
||
|
location / {
|
||
|
# try to serve file directly, fallback to index.php
|
||
|
try_files $uri /index.php$is_args$args;
|
||
|
}
|
||
|
|
||
|
location ~ ^/index.php(/|$) {
|
||
|
fastcgi_pass php_app:9000;
|
||
|
fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
||
|
include fastcgi_params;
|
||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||
|
}
|
||
|
}
|