2010-12-11, 07:57:22
works great with nginx
when you set "Use Fancy URLs - Requires that your host has mod_rewrite enabled." you must modify /etc/nginx/sites-enabled/www.yoursite.com.conf
server {
server_name www.yoursite.com;
root /var/www/www.yoursite.com;
include /etc/nginx/fastcgi_php;
location / {
index index.php;
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php$id=$1 last;
}
}
}
when you set "Use Fancy URLs - Requires that your host has mod_rewrite enabled." you must modify /etc/nginx/sites-enabled/www.yoursite.com.conf
server {
server_name www.yoursite.com;
root /var/www/www.yoursite.com;
include /etc/nginx/fastcgi_php;
location / {
index index.php;
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php$id=$1 last;
}
}
}