Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name adm.mysite.com;
- root D:/zerver/sites/mysite/back;
- index index.html;
- charset UTF-8;
- include sites/mysite-mime.types;
- default_type application/octet-stream;
- location = / {
- index gateway.php;
- }
- location = /gateway.php {
- include php.conf;
- }
- location = /thumbnail.php {
- include php.conf;
- }
- location /temp/ {
- alias D:/zerver/sites/mysite/system/temp/;
- }
- location ~ \.(?:css|js|jpg|png|gif|ico|swf|woff|eot|ttf)$ {
- expires 30d;
- add_header Pragma public;
- add_header Cache-Control "public";
- }
- location ~ \.(?:czz|jz)$ {
- expires 10d;
- add_header Pragma public;
- add_header Cache-Control "public";
- add_header Content-Encoding gzip;
- add_header Vary Accept-Encoding;
- }
- location ~ \.(ajax|gzip)$ {
- set $request_type $1;
- rewrite ^ /gateway.php?REQUEST_URL=$uri&REQUEST_TYPE=$request_type&IS_REWRITE_URL=1 last;
- }
- location ~ ^/([a-z]+)/([a-z-]+)([\w/-]+)?$ {
- set $section $1; set $module $2; set $request_url $3;
- rewrite ^ /gateway.php?SECTION=$section&MODULE=$module&REQUEST_URL=$request_url&IS_REWRITE_URL=1 last;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement