File tree Expand file tree Collapse file tree 1 file changed +21
-11
lines changed Expand file tree Collapse file tree 1 file changed +21
-11
lines changed Original file line number Diff line number Diff line change @@ -30,36 +30,46 @@ server {
3030 #ssl_dhparam /etc/letsencrypt/ssl-dhparam.pem;
3131 include /etc/letsencrypt/options-ssl-nginx.conf;
3232
33- add_header X-Frame-Options "SAMEORIGIN";
34- add_header X-Content-Type-Options "nosniff";
33+ add_header X-Frame-Options "SAMEORIGIN";
34+ add_header X-Content-Type-Options "nosniff";
3535
36- charset utf-8;
36+ charset utf-8;
3737
3838 root /var/www/html/webapp/public;
3939 index index.php;
4040
4141 location / {
4242 try_files $uri /index.php$is_args$args;
4343 }
44-
45- location = /favicon.ico { access_log off; log_not_found off; }
46- location = /robots.txt { access_log off; log_not_found off; }
47-
48- error_page 404 /index.php;
4944
5045 location ~ \.php$ {
5146 # Pass the PHP requests to FastCGI server (php-fpm) on 127.0.0.1:9000
5247 fastcgi_pass docker_laravel;
53- fastcgi_index index.php;
48+ fastcgi_index index.php;
5449 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
55- include fastcgi_params;
50+ include fastcgi_params;
5651 }
5752 #
5853 # deny access to .htaccess vb. files, if Apache's document root
5954 location ~/\. {
6055 deny all;
6156 log_not_found off;
62- }
57+ }
58+ #
59+ location ~ /.well-known {
60+ allow all;
61+ }
62+ #
63+ location = /favicon.ico {
64+ log_not_found off;
65+ access_log off;
66+ }
67+ #
68+ location = /robots.txt {
69+ allow all;
70+ log_not_found off;
71+ access_log off;
72+ }
6373 #
6474 access_log off;
6575 error_log /var/log/nginx/${NGINX_HOST}.error.log error;
You can’t perform that action at this time.
0 commit comments