Guest User

Untitled

a guest
Jan 29th, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. server {
  2. location /phpMyAdmin {
  3. root /usr/share/;
  4. index index.php index.html index.htm;
  5. location ~ ^/phpMyAdmin/(.+\.php)$ {
  6. try_files $uri =404;
  7. root /usr/share/;
  8. fastcgi_pass unix:/var/lib/php/php-fpm.sock;
  9. fastcgi_index index.php;
  10. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  11. include /etc/nginx/fastcgi_params;
  12. }
  13. location ~* ^/phpMyAdmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
  14. root /usr/share/;
  15. }
  16. }
  17. location /phpmyadmin {
  18. rewrite ^/* /phpMyAdmin last;
  19. }
  20.  
  21. location /pgadmin {
  22. proxy_pass http://127.0.0.1:8080/;
  23. proxy_redirect off;
  24. proxy_set_header Host $host;
  25. proxy_set_header X-Real-IP $remote_addr;
  26. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  27. proxy_set_header X-Forwarded-Proto $scheme;
  28. proxy_set_header X-Script-Name /pgadmin;
  29. }
  30.  
  31. }
Advertisement
Add Comment
Please, Sign In to add comment