Advertisement
javipas

Muycomputerpro Nginx config file

Jan 15th, 2012
1,239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. server {
  2. listen 8080;
  3. #listen [::]:80 default ipv6only=on;
  4.  
  5. server_name www.muycomputerpro.com muycomputerpro.com;
  6. root /home/tpnet/domains/muycomputerpro.com/public_html;
  7. access_log /home/tpnet/domains/muycomputerpro.com/logs/access.log;
  8. error_log /home/tpnet/domains/muycomputerpro.com/logs/error.log;
  9.  
  10. location / {
  11. index index.php;
  12. try_files $uri $uri/ /index.php?q=$uri&$args;
  13. # if the requested file exists, return it immediately
  14. if (-f $request_filename) {
  15. break;
  16. }
  17.  
  18. # all other requests go to WordPress
  19. if (!-e $request_filename) {
  20. rewrite . /index.php last;
  21. }
  22. }
  23.  
  24. location ~ \.php$ {
  25. fastcgi_index index.php;
  26. try_files $uri =403;
  27. fastcgi_pass unix:/var/run/php5-fpm-tpnet.sock;
  28. include fastcgi_params;
  29. }
  30.  
  31. location ~ /\.ht {
  32. deny all;
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement