Advertisement
Guest User

Untitled

a guest
Oct 25th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.44 KB | None | 0 0
  1. server {
  2.  
  3.     root /var/www/html/cips/public;
  4.     index index.php index.html index.htm;
  5.  
  6.     server_name cips.fakhry.me pcm-sdm.ndt-dev.com;
  7.  
  8.     location / {
  9.         try_files $uri $uri/ /index.php?$query_string;
  10.     }
  11.  
  12.     error_page 404 /404.html;
  13.     error_page 500 502 503 504 /50x.html;
  14.     location = /50x.html {
  15.         root /usr/share/nginx/html;
  16.     }
  17.  
  18.     location ~ \.php$ {
  19.         include snippets/fastcgi-php.conf;
  20.         fastcgi_pass unix:/run/php/php7.2-fpm.sock;
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement