„site.conf“ ändern
This commit is contained in:
parent
ab3eaf41f6
commit
70e09e2716
24
site.conf
24
site.conf
|
@ -1,23 +1,17 @@
|
||||||
server {
|
server {
|
||||||
listen 80 default;
|
index index.php index.html;
|
||||||
|
server_name php-docker.local;
|
||||||
access_log /var/log/nginx/application.access.log;
|
error_log /var/log/nginx/error.log;
|
||||||
|
access_log /var/log/nginx/access.log;
|
||||||
root /var/www/html;
|
root /var/www/html;
|
||||||
index index.php;
|
|
||||||
|
|
||||||
if (!-e $request_filename) {
|
|
||||||
rewrite ^.*$ /index.php last;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
fastcgi_pass php-fpm:9000;
|
try_files $uri =404;
|
||||||
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
|
fastcgi_pass php:9000;
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
||||||
fastcgi_param PHP_VALUE "error_log=/var/log/nginx/application_php_errors.log";
|
|
||||||
fastcgi_buffers 16 16k;
|
|
||||||
fastcgi_buffer_size 32k;
|
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue