Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name wiki.site.com *.wiki.site.com;
- location / {
- index index.php5;
- error_page 404 = @mediawiki;
- }
- location @mediawiki {
- rewrite ^/([^?]*)(?:\?(.*))? /index.php5?title=$1&$2 last;
- }
- charset utf-8;
- #access_log logs/host.access.log main;
- root /home/www/wiki;
- client_max_body_size 5m;
- client_body_timeout 60;
- location ~ \.php5$ {
- root /home/user/wiki;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php5;
- fastcgi_param SCRIPT_FILENAME /home/user/wiki$fastcgi_script_name;
- include fastcgi_params;
- }
- location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
- expires max;
- log_not_found off;
- }
- location = /_.gif {
- expires max;
- empty_gif;
- }
- location /cache {
- deny all;
- }
- location /dumps {
- root /home/user/wiki/local;
- autoindex on;
- }
- #error_page 404 /index.php;
- location ~ /\.ht {
- deny all;
- }
- # redirect server error pages to the static page /50x.html
- #
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root html;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement