Advertisement
otku

nginx regular

May 29th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. server {
  2. listen 80;
  3. root /var/www/facebook.com;
  4. index index.php index.html index.htm index.nginx-debian.html;
  5. client_max_body_size 20M;
  6.  
  7.  
  8. server_name facebook.com;
  9.  
  10. location / {
  11. try_files $uri $uri/ /index.php$args;
  12. }
  13.  
  14. location ~ \.php$ {
  15. include snippets/fastcgi-php.conf;
  16. fastcgi_pass unix:/run/php/php7.0-fpm.sock;
  17. }
  18.  
  19. location ~/\.ht
  20. {
  21. deny all;
  22. }
  23.  
  24.  
  25. }
  26.  
  27.  
  28.  
  29.  
  30. ########### SUBDOMAIN ##################
  31.  
  32.  
  33. server {
  34. listen 80;
  35. root /var/www/blog.facebook.com;
  36. index index.php index.html index.htm index.nginx-debian.html;
  37. client_max_body_size 20M;
  38.  
  39.  
  40. server_name blog.facebook.com;
  41.  
  42. location / {
  43. try_files $uri $uri/ /index.php$args;
  44. }
  45.  
  46. location ~ \.php$ {
  47. include snippets/fastcgi-php.conf;
  48. fastcgi_pass unix:/run/php/php7.0-fpm.sock;
  49. }
  50.  
  51. location ~/\.ht
  52. {
  53. deny all;
  54. }
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement