Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen *:80;
- server_name cms.local.tigo.mk;
- root /home/anduser/www/mango_web_mk//public/;
- index index.html index.php tindex.php;
- error_log /home/anduser/www/logs/cms-error.log;
- access_log /home/anduser/www/logs/cms-access.log combined;
- location ~ /.well-known {
- allow all;
- }
- location ~ /\. {
- deny all;
- access_log off;
- log_not_found off;
- }
- location = /favicon.ico {
- log_not_found off;
- access_log off;
- }
- location = /robots.txt {
- rewrite /robots.txt /robots.php;
- allow all;
- log_not_found off;
- access_log off;
- }
- location ~* \.(jpg|jpeg|gif|png|bmp|ico|pdf|flv|svg|swf|exe|html|htm|txt|css|js|pjpeg|woff|ttf|eot|doc|docx)$ {
- access_log off;
- log_not_found off;
- expires 360d;
- add_header Access-Control-Allow-Origin *;
- }
- if ($request_uri ~* "^(.*/)index\.php$") {
- return 301 $1;
- }
- location ~ \.php$ {
- try_files /385f4dba8548ecb04fc442d620c01520.htm @php;
- }
- location / {
- try_files $uri $uri/ /index.php?$args;
- }
- location @php {
- try_files $uri =404;
- include /etc/nginx/fastcgi_params;
- fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_intercept_errors on;
- fastcgi_param APPLICATION_ENV development;
- fastcgi_param COUNTRY_ENV mk;
- fastcgi_read_timeout 2400;
- }
- #error_page 404 /maintenance.html;
- error_page 502 503 504 /maintenance.html;
- error_page 403 /maintenance.html;
- location = /maintenance.html {
- alias /home/anduser/www/mango_web_mk/public/module/Web/view/error/maintenance.html;
- allow all;
- }
- location /admin {
- root /home/anduser/www/mango_web_mk/public/admin;
- rewrite ^/admin([^.]+\.[^.]+)$ /$1 break;
- try_files $uri $uri/ /admin/index.php?$args;
- }
- add_header Strict-Transport-Security max-age=15768000;
- location /admin/css/ {
- }
- location /admin/js/ {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement