Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- charset utf-8;
- client_max_body_size 128M;
- listen 1081 default; ## listen for ipv4
- server_name www.svyaznoy.travel svyaznoy.travel;
- set $project_root /var/www/w3axpress/data/www;
- root $project_root/aeroexpress/public;
- access_log /var/log/nginx/axpress-access.log;
- error_log /var/log/nginx/axpress-error.log;
- index index.php index.html index.htm;
- include conf.d/restrictions-include;
- location ~ \.(svg|txt|html|js|css|png|jpg|jpeg|gif|bmp|swf|ico|pdf|mov|fla|zip|rar|7z|eot|ttf|woff|woff2|csv|xml|doc|docx|xls|xlsx|rtf) {
- root $project_root/aeroexpress;
- #add_header test $uri;
- #return 301;
- #try_files $uri =404;
- try_files $uri $uri/ =404;
- access_log off;
- }
- location / {
- #root $project_root/aeroexpress/public;
- #add_header test $uri;
- #return 301;
- # First attempt to serve request as file, then
- # as directory, then fall back to displaying a 404.
- try_files $uri $uri/ /index.php$is_args$args;
- }
- location ~ \.php$ {
- try_files $uri /index.php =404;
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_pass w3axpress_upstream;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement