Advertisement
Guest User

Untitled

a guest
Jul 1st, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. server {
  2. [...]
  3. location /phpmyadmin {
  4. root /usr/share/;
  5. index index.php index.html index.htm;
  6. location ~ ^/phpmyadmin/(.+\.php)$ {
  7. try_files $uri =404;
  8. root /usr/share/;
  9. fastcgi_pass 127.0.0.1:9000;
  10. fastcgi_index index.php;
  11. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  12. include /etc/nginx/fastcgi_params;
  13. }
  14. location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
  15. root /usr/share/;
  16. }
  17. }
  18. location /phpMyAdmin {
  19. rewrite ^/* /phpmyadmin last;
  20. }
  21. [...]
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement