1
0
Fork 0
mirror of https://github.com/Luzifer/docker-php5-nginx.git synced 2024-11-09 22:50:08 +00:00
docker-php5-nginx/files/nginx.conf

20 lines
449 B
Nginx Configuration File

server {
listen 80;
access_log /var/log/nginx/phpframework_app;
root /application/;
location / {
try_files $uri /index.php?$args;
}
location /index.php {
fastcgi_pass_header Authorization;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/includes/fastcgi_params.inc;
}
location ~ /\.ht {
deny all;
}
}