Advertisement
Guest User

Untitled

a guest
Jul 7th, 2015
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. server {
  2. listen 80 default_server;
  3. listen [::]:80 default_server ipv6only=on;
  4.  
  5. root /home/mv/www/pma.local/html
  6. ;
  7. index index.php index.html index.htm;
  8.  
  9. server_name pma.local;
  10.  
  11. # error_page 404 /404.html;
  12. # error_page 500 502 503 504 /50x.html;
  13. # location = /50x.html {
  14. # root /usr/share/nginx/html;
  15. # }
  16.  
  17. location ~ \.php$ {
  18. #try_files $uri =404;
  19. #fastcgi_split_path_info ^(.+\.php)(/.+)$;
  20. #fastcgi_pass unix:/var/run/php5-fpm.sock;
  21. #fastcgi_index index.php;
  22. #include fastcgi_params;
  23. try_files $uri /index.php =404;
  24. fastcgi_pass unix:/var/run/php5-fpm.sock;
  25. fastcgi_index index.php;
  26. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  27. include fastcgi_params;
  28. }
  29.  
  30. location / {
  31. rewrite ^/(.*)/$ /$1 redirect;
  32. if (!-e $request_filename){
  33. rewrite ^(.*)$ /index.php;
  34. }
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement