Skip to content

Commit 09c85fd

Browse files
authored
Update 07_symfony_location.conf
1 parent f2708f3 commit 09c85fd

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

‎config/nginx/07_symfony_location.conf

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33
# Taken from https://symfony.com/doc/current/setup/web_server_configuration.html#nginx
44

55
location / {
6-
7-
if ($request_method = 'OPTIONS') {
8-
include /usr/local/turbolab.it/webstackup/config/nginx/cors.conf;
9-
return 204;
10-
}
11-
126
# try to serve file directly, fallback to index.php
137
try_files $uri /index.php$is_args$args;
148
}
@@ -26,12 +20,6 @@ location ^~ /_wdt/ {
2620
# }
2721

2822
location ~ ^/(index|autodeploy|autodeploy-async|async-runner-request)\.php(/|$) {
29-
30-
if ($request_method = 'OPTIONS') {
31-
include /usr/local/turbolab.it/webstackup/config/nginx/cors.conf;
32-
return 204;
33-
}
34-
3523
fastcgi_pass unix:/run/php/php$PHP_VER-fpm.sock;
3624
fastcgi_split_path_info ^(.+\.php)(/.*)$;
3725
include fastcgi_params;

0 commit comments

Comments
 (0)