Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name www.poselki.realtybook.ru;
- return 301 http://poselki.realtybook.ru;
- }
- server {
- listen 80;
- server_name www.realtybook.ru realtybook.ru;
- return 301 https://realtybook.ru$request_uri;
- }
- server {
- listen 80;
- server_name www.realtyfirst.ru realtyfirst.ru;
- return 301 https://realtybook.ru;
- }
- #SSLEngine on
- #SSLVerifyClient none
- #SSLCertificateFile /home/realtybook.ru/web/realtybook.ru/realtybook.ru.crt
- #SSLCertificateKeyFile /home/realtybook.ru/web/realtybook.ru/realtybook.key
- #SSLCertificateChainFile /home/realtybook.ru/web/realtybook.ru/realtybook.ru.ca-bundle
- server{
- listen 443 ssl;
- server_name www.realtybook.ru;
- ssl_certificate /home/realtybook.ru/certs/realtybook.ru.crt;
- ssl_certificate_key /home/realtybook.ru/certs/realtybook.key;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_ciphers HIGH:!aNULL:!MD5;
- return 301 https://realtybook.ru$request_uri;
- }
- server{
- listen 443 ssl;
- server_name realtybook.ru;
- ssl_certificate /home/realtybook.ru/certs/realtybook.ru.crt;
- ssl_certificate_key /home/realtybook.ru/certs/realtybook.key;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_ciphers HIGH:!aNULL:!MD5;
- ssl_prefer_server_ciphers on;
- root /home/realtybook.ru/realtybook.ru/web/;
- index index.php;
- rewrite ^/(.*)/$ /$1 permanent;
- location / {
- # Redirect everything that isn't a real file to index.php
- try_files $uri $uri/ /index.php$is_args$args;
- }
- location ~ ^/assets/.*\.php$ {
- deny all;
- }
- location ~ \.php$ {
- try_files $uri = 404;
- include fastcgi_params;
- fastcgi_pass unix:/run/php/php7.3-fpm-realtybook.ru.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- location /index.php/ {
- rewrite ^/index.php/(.*) https://$host/$1 permanent;
- }
- location ~* ^.+\.(gif|ico|css|pdf|ppt|txt|bmp|rtf|js|woff2)$ {
- root /home/realtybook.ru/realtybook.ru/web;
- access_log off;
- expires 365d;
- }
- # location / {
- # proxy_set_header Host $host;
- # proxy_set_header X-Forwarded-For $remote_addr;
- # proxy_pass http://127.0.0.1:8082;
- # }
- }
- server {
- listen 80;
- server_name poselki.realtybook.ru;
- root /home/realtybook.ru/poselki.realtybook.ru;
- index index.php;
- location ~ \.php$ {
- try_files $uri = 404;
- include fastcgi_params;
- fastcgi_pass unix:/var/run/php5-fpm.realtybook.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- }
- server {
- listen 80;
- server_name www.monteville.realtybook.ru monteville.realtybook.ru;
- root /home/realtybook.ru/monteville.realtybook.ru/web;
- index index.php;
- location ~ \.php$ {
- try_files $uri = 404;
- include fastcgi_params;
- fastcgi_pass unix:/var/run/php5-fpm.realtybook.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- }
- server {
- listen 80;
- server_name www.greenfield.realtybook.ru greenfield.realtybook.ru;
- root /home/realtybook.ru/greenfield.realtybook.ru/web;
- index index.php;
- location ~ \.php$ {
- try_files $uri = 404;
- include fastcgi_params;
- fastcgi_pass unix:/var/run/php5-fpm.realtybook.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- }
- server {
- listen 80;
- server_name riverside.realtybook.ru;
- root /home/realtybook.ru/riverside.realtybook.ru/web/;
- index index.php;
- location ~ \.php$ {
- try_files $uri = 404;
- include fastcgi_params;
- fastcgi_pass unix:/var/run/php5-fpm.realtybook.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- }
- server {
- listen 80;
- server_name millenium.realtybook.ru;
- root /home/realtybook.ru/millenium.realtybook.ru/web;
- index index.php;
- location ~ \.php$ {
- try_files $uri = 404;
- include fastcgi_params;
- fastcgi_pass unix:/var/run/php5-fpm.realtybook.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- }
- server {
- listen 80;
- server_name renessans-park.realtybook.ru;
- root /home/realtybook.ru/renessans-park.realtybook.ru/public_html/;
- index index.php;
- location / {
- # Redirect everything that isn't a real file to index.php
- try_files $uri $uri/ /index.php$is_args$args;
- }
- location ~ \.php$ {
- try_files $uri = 404;
- include fastcgi_params;
- fastcgi_pass unix:/var/run/php5-fpm.realtybook.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- }
- server {
- listen 80;
- server_name madison-park.realtybook.ru;
- root /home/realtybook.ru/madison-park.realtybook.ru/public_html;
- index index.php;
- location ~ \.php$ {
- try_files $uri = 404;
- include fastcgi_params;
- fastcgi_pass unix:/var/run/php5-fpm.realtybook.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- }
- server {
- listen 80;
- server_name lazurniy-bereg.realtybook.ru;
- root /home/realtybook.ru/lazurniy-bereg.realtybook.ru/public_html/;
- index index.php;
- location ~ \.php$ {
- try_files $uri = 404;
- include fastcgi_params;
- fastcgi_pass unix:/var/run/php5-fpm.realtybook.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- }
- server {
- listen 80;
- server_name rent.realtybook.ru;
- root /home/realtybook.ru/rent.realtybook.ru/public_html/;
- index index.php;
- location ~ \.php$ {
- try_files $uri = 404;
- include fastcgi_params;
- fastcgi_pass unix:/var/run/php5-fpm.realtybook.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- }
- server {
- listen 80;
- server_name 2rent.realtybook.ru;
- root /home/realtybook.ru/2rent.realtybook.ru/public_html;
- index index.php;
- location ~ \.php$ {
- try_files $uri = 404;
- include fastcgi_params;
- fastcgi_pass unix:/var/run/php5-fpm.realtybook.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- }
- server {
- listen 80;
- server_name buy-house.realtybook.ru;
- root /home/realtybook.ru/buy-house.realtybook.ru/public_html/;
- index index.php;
- location ~ \.php$ {
- try_files $uri = 404;
- include fastcgi_params;
- fastcgi_pass unix:/var/run/php5-fpm.realtybook.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- }
- server {
- listen 80;
- server_name lucky.realtybook.ru;
- root /home/realtybook.ru/lucky.realtybook.ru/public_html/;
- index index.php;
- location ~ \.php$ {
- try_files $uri = 404;
- include fastcgi_params;
- fastcgi_pass unix:/var/run/php5-fpm.realtybook.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement