Skip to content

Commit 3625ad8

Browse files
committed
fix default.conf
1 parent fb75414 commit 3625ad8

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

docker/nginx/conf.d/default.conf

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,12 @@ server {
55
root /var/www/html/public;
66
index index.php;
77

8-
add_header 'Access-Control-Allow-Origin' '*' always;
9-
add_header 'Access-Control-Allow-Credentials' 'true' always;
10-
add_header 'Access-Control-Allow-Methods' 'GET,POST,PUT,DELETE,HEAD,OPTIONS' always;
11-
add_header 'Access-Control-Allow-Headers' 'Origin,Content-Type,Accept,Authorization' always;
12-
138
location / {
149
try_files $uri /index.php$is_args$args;
1510
}
1611

17-
location ~ ^/index\.php(/|$) {
18-
fastcgi_pass ilyaguev_igor-indigolab-php:9000;
12+
location ~ ^/index\.php(/|$) {
13+
fastcgi_pass app:9000;
1914
fastcgi_split_path_info ^(.+\.php)(/.*)$;
2015
include fastcgi_params;
2116
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
@@ -26,9 +21,10 @@ location ~ ^/index\.php(/|$) {
2621
internal;
2722
}
2823

29-
location ~ \.php$ {
24+
location ~ \.php$ {
3025
return 404;
3126
}
32-
error_log /var/log/nginx/project_error.log;
33-
access_log /var/log/nginx/project_access.log;
27+
28+
error_log /var/log/nginx/error.log;
29+
access_log /var/log/nginx/access.log;
3430
}

0 commit comments

Comments
 (0)