Created
January 24, 2017 20:53
-
-
Save Burick/7c60d415872c724b0d1f971bd5536f6c to your computer and use it in GitHub Desktop.
Nginx config REvo
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
# Своя конфигурация | |
index index.php; | |
rewrite_log on; | |
location /core/ { | |
deny all; | |
} | |
# location / { | |
# try_files $uri $uri/ @rewrite; | |
# } | |
# location @rewrite { | |
# rewrite ^/(.*)$ /index.php?q=$1; | |
# } | |
location ~* ^.+\.(jpg|jpeg|gif|css|png|js|ico|bmp)$ { | |
access_log off; | |
expires 10d; | |
break; | |
} | |
location ~ /\.ht { | |
deny all; | |
} | |
# ////Своя конфигурация |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment