Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- root /home/brand/a.brand.ad/frontend/web/;
- index index.php index.html;
- server_name a.branding.ad;
- client_max_body_size 32m;
- charset utf-8;
- 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$ {
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_pass php-fpm;
- fastcgi_index index.php;
- include fastcgi_params;
- }
- location ~* /\. {
- deny all;
- }
- }
- server {
- listen 80;
- root /home/brand/a.brand.ad/backend/web;
- index index.php index.html;
- server_name a.brand.ad;
- client_max_body_size 32m;
- charset utf-8;
- 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$ {
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_pass php-fpm;
- fastcgi_index index.php;
- include fastcgi_params;
- try_files $uri =404;
- }
- location ~* /\. {
- deny all;
- }
- }
- server {
- listen 80;
- root /home/brand/a.brand.ad/storage/web;
- index index.php index.html;
- server_name storage.a.brand.ad;
- client_max_body_size 32m;
- charset utf-8;
- 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$ {
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_pass php-fpm;
- fastcgi_index index.php;
- include fastcgi_params;
- try_files $uri =404;
- }
- location ~* /\. {
- deny all;
- }
- }
- ## PHP-FPM Servers ##
- upstream php-fpm {
- server unix:/var/run/php/php7.0-fpm.sock;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement