mirror of
https://github.com/Luzifer/docker-php5-nginx.git
synced 2024-11-09 22:50:08 +00:00
20 lines
449 B
Nginx Configuration File
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;
|
|
}
|
|
}
|