Guest User

Untitled

a guest
Jun 11th, 2011
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. server {
  2. listen x.x.x.x;
  3. server_name namehere;
  4.  
  5. access_log /home/user/logs/namehere/http/access.log combined;
  6. error_log /home/user/logs/namehere/http/error.log error;
  7.  
  8. root /home/user/namehere;
  9. index index.html index.htm index.php index.php5;
  10.  
  11. autoindex on;
  12. rewrite ^/word/([^/\.]+)/?$ http://supersite.com/gallery.html?query=$1 last;
  13. rewrite ^/something/word([^/\.]+)/?$ http://supersite.com/gallery.html?query=$1 last;
  14.  
  15. error_page 404 http://supersite.com/index.html;
  16.  
  17.  
  18. # PHP
  19. location ~* \.(html|php|php5|php4)($|/) {
  20. fastcgi_pass 127.0.0.1:9000;
  21. fastcgi_param SERVER_PORT 80;
  22. fastcgi_param PATH_INFO $fastcgi_script_name;
  23. include /usr/local/nginx/conf/fastcgi_params;
  24. fastcgi_param SCRIPT_FILENAME /home/user/namehere$fastcgi_script_name;
  25. }
  26.  
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment