Advertisement
Guest User

Untitled

a guest
Nov 14th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. server {
  2. listen 80;
  3. root /var/www/html/phpipam;
  4. index index.php index.html index.htm index.nginx-debian.html;
  5. server_name 185.108.208.78;
  6.  
  7. # phpipam
  8. location /phpipam/ {
  9. try_files $uri $uri/ /phpipam/index.php;
  10. index index.php;
  11. }
  12. # phpipam - api
  13. location /phpipam/api/ {
  14. try_files $uri $uri/ /phpipam/api/index.php;
  15. }
  16.  
  17. # php-fpm
  18. location ~ \.php$ {
  19. fastcgi_pass unix:/run/php/php7.2-fpm.sock;
  20. fastcgi_index index.php;
  21. try_files $uri $uri/ index.php = 404;
  22. include fastcgi_params;
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement