Created
February 23, 2022 00:18
-
-
Save jrmaia/68953b57a927167a0a90d7b59956fb39 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 9041 default; | |
| server_name casa_stillo.local *.casa_stillo.local; ## Domain is here twice so server_name_in_redirect will favour the www | |
| server_name_in_redirect off; | |
| root /usr/local/var/casa_stillo/; | |
| autoindex off; | |
| location /app/ { deny all; } | |
| location /includes/ { deny all; } | |
| location /lib/ { deny all; } | |
| location /media/downloadable/ { deny all; } | |
| location /pkginfo/ { deny all; } | |
| location /report/config.xml { deny all; } | |
| location /var/ { deny all; } | |
| location = /RELEASE_NOTES.txt { deny all; } | |
| location = /LICENSE_AFL.txt { deny all; } | |
| location = /LICENSE.html { deny all; } | |
| location = /LICENSE.txt { deny all; } | |
| location = /php.ini.sample { deny all; } | |
| location = /index.php.sample { deny all; } | |
| location /. { return 404; } | |
| location ~* (.+)\.(\d+)\.(js|css|png|jpg|jpeg|gif|ico)$ { | |
| try_files $uri $1.$3; | |
| log_not_found off; | |
| access_log off; | |
| add_header ETag ""; | |
| } | |
| location / { | |
| index index.php index.html index.htm; | |
| try_files $uri $uri/ @handler; | |
| } | |
| location @handler { ## Magento uses a common front handler | |
| rewrite / /index.php; | |
| } | |
| location ~ \.php$ { | |
| # fastcgi_pass 127.0.0.1:9000; | |
| fastcgi_pass fpm_backend; | |
| # try_files $uri =404; | |
| try_files $uri $uri/ @handler; | |
| fastcgi_index index.php; | |
| include fastcgi_params; | |
| fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
| fastcgi_read_timeout 30000; | |
| # fastcgi_read_timeout 30000; | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment