Our current apache rewrite is very simple:
Code:
RewriteEngine On
RewriteBase /
RewriteRule ^Main:(.*)$ $1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)?$ showwiki_proxy.php [L,QSA]
We haven't even tried doing anything funny with nginx yet as far as rewrites. I just assumed that loading up index.php would generate the wiki index page. Our nginx location directive for the wiki subdomain is:
Code:
server {
server_name wiki.site.com;
root "/home/site/public_html/wiki";
index index.php;
client_max_body_size 10m;
access_log /home/site/_logs/wiki.access.log;
error_log /home/site/_logs/wiki.error.log;
location / {
try_files $uri $uri/ /showwiki_proxy.php;
}
location ~ "^(.+\.php)($|/)" {
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SERVER_NAME $host;
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
}
}
Originally Posted by
pegasus
nginx rewrite rules are a completely different animal. Please post your existing location blocks so we can see what, if anything, might need to be changed. Also please include your current Apache rules so we know how you expect it to be when it's done.
Bookmarks