Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- root /var/www/facebook.com;
- index index.php index.html index.htm index.nginx-debian.html;
- client_max_body_size 20M;
- server_name facebook.com;
- location / {
- try_files $uri $uri/ /index.php$args;
- }
- location ~ \.php$ {
- include snippets/fastcgi-php.conf;
- fastcgi_pass unix:/run/php/php7.0-fpm.sock;
- }
- location ~/\.ht
- {
- deny all;
- }
- }
- ########### SUBDOMAIN ##################
- server {
- listen 80;
- root /var/www/blog.facebook.com;
- index index.php index.html index.htm index.nginx-debian.html;
- client_max_body_size 20M;
- server_name blog.facebook.com;
- location / {
- try_files $uri $uri/ /index.php$args;
- }
- location ~ \.php$ {
- include snippets/fastcgi-php.conf;
- fastcgi_pass unix:/run/php/php7.0-fpm.sock;
- }
- location ~/\.ht
- {
- deny all;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement