Advertisement
Guest User

Untitled

a guest
Sep 4th, 2019
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 7.42 KB | None | 0 0
  1.  
  2.  
  3.  
  4. server {
  5.     listen 80;
  6.     server_name         www.poselki.realtybook.ru;
  7.     return 301 http://poselki.realtybook.ru;
  8. }
  9.  
  10. server {
  11.     listen 80;
  12.     server_name         www.realtybook.ru realtybook.ru;
  13.     return 301 https://realtybook.ru$request_uri;
  14. }
  15.  
  16. server {
  17.     listen 80;
  18.     server_name         www.realtyfirst.ru realtyfirst.ru;
  19.     return 301 https://realtybook.ru;
  20. }
  21.  
  22.  
  23.  
  24.  
  25. #SSLEngine on
  26.     #SSLVerifyClient none
  27.     #SSLCertificateFile /home/realtybook.ru/web/realtybook.ru/realtybook.ru.crt
  28.     #SSLCertificateKeyFile /home/realtybook.ru/web/realtybook.ru/realtybook.key
  29.     #SSLCertificateChainFile /home/realtybook.ru/web/realtybook.ru/realtybook.ru.ca-bundle
  30.  
  31.  
  32.  
  33. server{
  34.     listen              443 ssl;
  35.     server_name         www.realtybook.ru;
  36.  
  37.     ssl_certificate     /home/realtybook.ru/certs/realtybook.ru.crt;
  38.     ssl_certificate_key /home/realtybook.ru/certs/realtybook.key;
  39.     ssl_protocols       TLSv1 TLSv1.1 TLSv1.2;
  40.     ssl_ciphers         HIGH:!aNULL:!MD5;
  41.  
  42.     return 301 https://realtybook.ru$request_uri;
  43. }
  44.  
  45. server{
  46.  
  47.     listen              443 ssl;
  48.     server_name         realtybook.ru;
  49.     ssl_certificate     /home/realtybook.ru/certs/realtybook.ru.crt;
  50.     ssl_certificate_key /home/realtybook.ru/certs/realtybook.key;
  51.     ssl_protocols       TLSv1 TLSv1.1 TLSv1.2;
  52.     ssl_ciphers         HIGH:!aNULL:!MD5;
  53.     ssl_prefer_server_ciphers on;
  54.     root /home/realtybook.ru/realtybook.ru/web/;
  55.     index       index.php;
  56.  
  57.     rewrite ^/(.*)/$ /$1 permanent;
  58.  
  59.     location / {
  60.          # Redirect everything that isn't a real file to index.php
  61.          try_files $uri $uri/ /index.php$is_args$args;
  62.      }
  63.  
  64.     location ~ ^/assets/.*\.php$ {
  65.         deny all;
  66.     }
  67.  
  68.  
  69.     location ~ \.php$ {
  70.         try_files $uri = 404;
  71.         include fastcgi_params;
  72.         fastcgi_pass  unix:/run/php/php7.3-fpm-realtybook.ru.sock;
  73.         fastcgi_index index.php;
  74.  
  75.         fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
  76.     }
  77.  
  78.     location /index.php/ {
  79.         rewrite ^/index.php/(.*) https://$host/$1 permanent;
  80.     }
  81.  
  82.     location ~* ^.+\.(gif|ico|css|pdf|ppt|txt|bmp|rtf|js|woff2)$ {
  83.         root /home/realtybook.ru/realtybook.ru/web;
  84.         access_log off;
  85.         expires 365d;
  86.     }
  87.    
  88.  
  89.   #   location / {
  90.   #     proxy_set_header Host $host;
  91.   #     proxy_set_header X-Forwarded-For $remote_addr;
  92.   #     proxy_pass http://127.0.0.1:8082;
  93.   # }
  94. }
  95.  
  96. server {
  97.     listen              80;
  98.     server_name         poselki.realtybook.ru;
  99.     root /home/realtybook.ru/poselki.realtybook.ru;
  100.     index index.php;
  101.  
  102.     location ~ \.php$ {
  103.             try_files $uri = 404;
  104.             include fastcgi_params;
  105.             fastcgi_pass  unix:/var/run/php5-fpm.realtybook.sock;
  106.             fastcgi_index index.php;
  107.  
  108.             fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
  109.     }
  110. }
  111. server {
  112.     listen              80;
  113.     server_name         www.monteville.realtybook.ru monteville.realtybook.ru;
  114.     root /home/realtybook.ru/monteville.realtybook.ru/web;
  115.     index index.php;
  116.  
  117.     location ~ \.php$ {
  118.             try_files $uri = 404;
  119.             include fastcgi_params;
  120.             fastcgi_pass  unix:/var/run/php5-fpm.realtybook.sock;
  121.             fastcgi_index index.php;
  122.  
  123.             fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
  124.     }
  125. }
  126. server {
  127.     listen              80;
  128.     server_name         www.greenfield.realtybook.ru greenfield.realtybook.ru;
  129.     root /home/realtybook.ru/greenfield.realtybook.ru/web;
  130.     index index.php;
  131.  
  132.     location ~ \.php$ {
  133.             try_files $uri = 404;
  134.             include fastcgi_params;
  135.             fastcgi_pass  unix:/var/run/php5-fpm.realtybook.sock;
  136.             fastcgi_index index.php;
  137.  
  138.             fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
  139.     }
  140. }
  141. server {
  142.     listen              80;
  143.     server_name         riverside.realtybook.ru;
  144.     root /home/realtybook.ru/riverside.realtybook.ru/web/;
  145.     index index.php;
  146.  
  147.     location ~ \.php$ {
  148.             try_files $uri = 404;
  149.             include fastcgi_params;
  150.             fastcgi_pass  unix:/var/run/php5-fpm.realtybook.sock;
  151.             fastcgi_index index.php;
  152.  
  153.             fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
  154.     }
  155. }
  156.  
  157. server {
  158.     listen              80;
  159.     server_name         millenium.realtybook.ru;
  160.     root /home/realtybook.ru/millenium.realtybook.ru/web;
  161.     index index.php;
  162.  
  163.     location ~ \.php$ {
  164.             try_files $uri = 404;
  165.             include fastcgi_params;
  166.             fastcgi_pass  unix:/var/run/php5-fpm.realtybook.sock;
  167.             fastcgi_index index.php;
  168.  
  169.             fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
  170.     }
  171. }
  172.  
  173. server {
  174.     listen              80;
  175.     server_name         renessans-park.realtybook.ru;
  176.     root /home/realtybook.ru/renessans-park.realtybook.ru/public_html/;
  177.     index index.php;
  178.  
  179.     location / {
  180.          # Redirect everything that isn't a real file to index.php
  181.          try_files $uri $uri/ /index.php$is_args$args;
  182.      }
  183.  
  184.     location ~ \.php$ {
  185.         try_files $uri = 404;
  186.         include fastcgi_params;
  187.         fastcgi_pass  unix:/var/run/php5-fpm.realtybook.sock;
  188.         fastcgi_index index.php;
  189.  
  190.         fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
  191.     }
  192. }
  193.  
  194. server {
  195.     listen              80;
  196.     server_name         madison-park.realtybook.ru;
  197.     root /home/realtybook.ru/madison-park.realtybook.ru/public_html;
  198.     index index.php;
  199.  
  200.     location ~ \.php$ {
  201.             try_files $uri = 404;
  202.             include fastcgi_params;
  203.             fastcgi_pass  unix:/var/run/php5-fpm.realtybook.sock;
  204.             fastcgi_index index.php;
  205.             fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
  206.     }
  207. }
  208.  
  209. server {
  210.     listen              80;
  211.     server_name         lazurniy-bereg.realtybook.ru;
  212.     root /home/realtybook.ru/lazurniy-bereg.realtybook.ru/public_html/;
  213.     index index.php;
  214.  
  215.     location ~ \.php$ {
  216.             try_files $uri = 404;
  217.             include fastcgi_params;
  218.             fastcgi_pass  unix:/var/run/php5-fpm.realtybook.sock;
  219.             fastcgi_index index.php;
  220.  
  221.             fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
  222.     }
  223. }
  224.  
  225. server {
  226.     listen              80;
  227.     server_name         rent.realtybook.ru;
  228.     root /home/realtybook.ru/rent.realtybook.ru/public_html/;
  229.     index index.php;
  230.  
  231.     location ~ \.php$ {
  232.             try_files $uri = 404;
  233.             include fastcgi_params;
  234.             fastcgi_pass  unix:/var/run/php5-fpm.realtybook.sock;
  235.             fastcgi_index index.php;
  236.  
  237.             fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
  238.     }
  239. }
  240.  
  241.  
  242. server {
  243.     listen              80;
  244.     server_name         2rent.realtybook.ru;
  245.     root /home/realtybook.ru/2rent.realtybook.ru/public_html;
  246.     index index.php;
  247.  
  248.     location ~ \.php$ {
  249.             try_files $uri = 404;
  250.             include fastcgi_params;
  251.             fastcgi_pass  unix:/var/run/php5-fpm.realtybook.sock;
  252.             fastcgi_index index.php;
  253.  
  254.             fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
  255.     }
  256. }
  257.  
  258. server {
  259.     listen              80;
  260.     server_name         buy-house.realtybook.ru;
  261.     root /home/realtybook.ru/buy-house.realtybook.ru/public_html/;
  262.     index index.php;
  263.  
  264.     location ~ \.php$ {
  265.             try_files $uri = 404;
  266.             include fastcgi_params;
  267.             fastcgi_pass  unix:/var/run/php5-fpm.realtybook.sock;
  268.             fastcgi_index index.php;
  269.  
  270.             fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
  271.     }
  272. }
  273.  
  274. server {
  275.     listen              80;
  276.     server_name         lucky.realtybook.ru;
  277.     root /home/realtybook.ru/lucky.realtybook.ru/public_html/;
  278.     index index.php;
  279.  
  280.     location ~ \.php$ {
  281.             try_files $uri = 404;
  282.             include fastcgi_params;
  283.             fastcgi_pass  unix:/var/run/php5-fpm.realtybook.sock;
  284.             fastcgi_index index.php;
  285.  
  286.             fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
  287.     }
  288. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement