Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- listen 443 ssl;
- ssl_certificate /etc/nginx/ssl/inlearno.ru.crt;
- ssl_certificate_key /etc/nginx/ssl/inlearno.ru.key;
- root /opt/www/www;
- server_name front-11.inlearno.com *.inlearno.com ;
- index index.html index.php;
- access_log /var/log/nginx/inlearno.access.log;
- error_log /var/log/nginx/inlearno.error.log;
- client_max_body_size 1000M;
- gzip on;
- gzip_vary on;
- gzip_types
- application/atom+xml
- application/javascript
- application/rss+xml
- application/x-javascript
- application/xhtml+xml
- image/svg+xml
- image/x-icon
- text/css
- text/javascript
- text/plain
- text/x-component
- text/xml;
- gzip_http_version 1.0;
- gzip_min_length 150;
- rewrite ^/robots.txt$ /alfa-robots.txt break;
- location / {
- root /opt/www/www;
- try_files $uri $uri/ /index.php?q=$uri&$args;
- if (!-e $request_filename){
- rewrite (.*) /index.php last;
- }
- log_subrequest on;
- }
- location ~ /lp {
- proxy_pass http://lending.inlearno.ru;
- }
- location ~ \.php$ {
- fastcgi_pass 127.0.0.1:9000;
- try_files $uri $uri/ /index.php?q=$uri&$args;
- if (!-e $request_filename){
- rewrite (.*) /index.php last;
- }
- log_subrequest on;
- include fastcgi_params;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME /opt/www/www$fastcgi_script_name;
- fastcgi_param DOCUMENT_ROOT /opt/www/www;
- fastcgi_param HTTP_HOST $host;
- fastcgi_param PATH_INFO $fastcgi_script_name;
- fastcgi_param QUERY_STRING $query_string;
- fastcgi_param REQUEST_METHOD $request_method;
- fastcgi_param CONTENT_TYPE $content_type;
- fastcgi_param CONTENT_LENGTH $content_length;
- }
- location /assets {
- root /tmp/runtime;
- expires 30d;
- }
- location ~ /\.ht {
- deny all;
- }
- location ~ /\.git {
- deny all;
- }
- location /site_assets {
- rewrite /site_assets/(.*) /$1 break;
- root /opt/www/www/protected/extensions/Inlearno/Templates/dist/site_assets;
- expires 30d;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement