Guest User

Untitled

a guest
Dec 18th, 2011
262
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2. root /usr/share/nginx/www;
  3. index index.php index.html index.htm;
  4.  
  5. server_name localhost;
  6.  
  7. location / {
  8. root /usr/share/nginx/www/wordpress;
  9. try_files $uri $uri/ /index.php;
  10.  
  11. location ~ \.php$ {
  12. include fastcgi_params;
  13. fastcgi_pass unix:/tmp/php5-fpm.sock;
  14. fastcgi_index index.php;
  15. }
  16. }
  17.  
  18. location /phpmyadmin {
  19. try_files $uri $uri/ /index.php;
  20.  
  21. location ~ \.php$ {
  22. include fastcgi_params;
  23. fastcgi_pass unix:/tmp/php5-fpm.sock;
  24. fastcgi_index index.php;
  25. }
  26. }
  27. }
RAW Paste Data