ZeinFIre

Untitled

Sep 2nd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. server {
  2. listen 2030 default_server;
  3. listen [::]:2030 default_server;
  4.  
  5. root /var/www/html;
  6.  
  7. index index.html index.htm index.php index.nginx-debian.html;
  8.  
  9. server_name http://192.99.218.225;
  10.  
  11. location / {
  12. # First attempt to serve request as file, then
  13. # as directory, then fall back to displaying a 404.
  14. try_files $uri $uri/ =404;
  15. }
  16.  
  17. location /phpmyadmin {
  18. root /var/www/html/;
  19. index index.php index.html index.htm;
  20. location ~ ^/phpmyadmin/(.+\.php)$ {
  21. try_files $uri =404;
  22. root /var/www/html/;
  23. fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
  24. fastcgi_index index.php;
  25. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  26. include /etc/nginx/fastcgi_params;
  27. }
  28. location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
  29. root /var/www/html/;
  30. }
  31. }
  32. location /phpMyAdmin {
  33. rewrite ^/* /phpmyadmin last;
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment