Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen x.x.x.x;
- server_name namehere;
- access_log /home/user/logs/namehere/http/access.log combined;
- error_log /home/user/logs/namehere/http/error.log error;
- root /home/user/namehere;
- index index.html index.htm index.php index.php5;
- autoindex on;
- rewrite ^/word/([^/\.]+)/?$ http://supersite.com/gallery.html?query=$1 last;
- rewrite ^/something/word([^/\.]+)/?$ http://supersite.com/gallery.html?query=$1 last;
- error_page 404 http://supersite.com/index.html;
- # PHP
- location ~* \.(html|php|php5|php4)($|/) {
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_param SERVER_PORT 80;
- fastcgi_param PATH_INFO $fastcgi_script_name;
- include /usr/local/nginx/conf/fastcgi_params;
- fastcgi_param SCRIPT_FILENAME /home/user/namehere$fastcgi_script_name;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment