Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
Удаленная работа для IT-специалистов
/test/view?param=test123
array ( '?param' => 'test123', )
#:::test.site.ru server { set $fcgi_server unix:/var/run/php-fpm/fpm-site; set $project_root /var/www/site/data/www/test.site.ru; listen 80; server_name back.site.ru; access_log off; charset utf-8; error_log /var/log/nginx/site.ru-nginx_error.log; root $project_root/backend/web/; index index.php; client_max_body_size 128m; # а redirect www.hostname.com to hostname.com if ($host ~* ^www\.(.*)) { set $host_without_www $1; rewrite ^/(.*)$ $scheme://$host_without_www/$1 permanent; } #removes trailing "index" from all controllers if ($request_uri ~* index/?$) { rewrite ^/(.*)/$ /$1 permanent; } # removes trailing slashes (prevent SEO duplicate content issues) if (!-d $request_filename) { rewrite ^/(.+)/$ /$1 permanent; } # unless the request is for a valid file (image, js, css, etc..), send to bootstrap # if (!-e $request_filename) { # rewrite ^/(.*)$ /index.php?/$1 last; # break; # } location / { rewrite ^/storage/(.*)$ /storage/$1 break; try_files $uri $uri/ /index.php?$is_args$args; } location ~ ^/assets/.*\.php$ { deny all; } location ~ ^/storage/.*\.php$ { deny all; } location ~ \.php$ { include fastcgi.conf; try_files $uri $uri/ =404; fastcgi_pass $fcgi_server; fastcgi_param SERVER_NAME $http_host; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_ignore_client_abort on; fastcgi_index index.php; fastcgi_param QUERY_STRING $query_string; } location ~ ^/assets/.*\.(jpe?g|png|gif|mpe?g|wmv|avi|flv|mp4|f4v|js|css|swf)$ { expires max; } location ~ ^/storage/.*\.(jpe?g|png|gif|mpe?g|wmv|avi|flv|mp4|f4v|swf)$ { root /var/www/site/data/www/test.site.ru; expires max; } location ~* /\.(htaccess|htpasswd|svn|git|log) { deny all; } }
?$is_args
$is_args
?