daux.io/docker/nginx_default.conf

27 lines
533 B
Plaintext
Raw Permalink Normal View History

server {
listen 80;
server_name daux.io;
index index.php;
charset utf-8;
root /var/www;
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php$1;
}
}
location ~ \.php {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass phpserver:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}