Advertisement
Guest User

Untitled

a guest
Feb 13th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. server {
  2. listen 80 default_server;
  3.  
  4. root /var/www/html;
  5.  
  6. access_log /var/log/nginx/access.log;
  7.  
  8.  
  9. server_name _;
  10.  
  11. location / {
  12. try_files $uri $uri/ =404;
  13. }
  14.  
  15. location ~ \.php$ {
  16. fastcgi_pass 127.0.0.1:9000;
  17. fastcgi_index index.php;
  18. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  19. include fastcgi_params;
  20. }
  21.  
  22. location /phpmyadmin {
  23. root /usr/share/;
  24. index index.php index.html index.htm;
  25. location ~ ^/phpmyadmin/ (.+\.php)$ {
  26. try_files $uri = 404;
  27. root /usr/share/;
  28. fastcgi_pass 127.0.0.1:9000;
  29. fastcgi_index index.php;
  30. fastcgi_param SCRIPT_FILENAME $request_filename;
  31. include /etc/nginx/fastcgi_params;
  32. }
  33. location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
  34. root /usr/share/;
  35. }
  36.  
  37. }
  38. location /phpMyAdmin {
  39. rewrite ^/* /phpmyadmin last;
  40. }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement