я же хочу сделать http://flashportal.com/game/name
тоесть хочу, чтобы оно вставляло после http://flashportal.com/
index.php?/
нашел пример конфига с рерайтом:
server {
listen 80;
root /var/www/nginx-default/;
access_log /var/log/nginx/localhost.access.log;
index index.php index.html index.htm;
error_page 500 502 503 504 /50x.html;
location /codeigniter/ {
if (-f $request_filename) {
expires max;
break;
}
if (!-e $request_filename) {
rewrite ^/codeigniter/(.*)$ /codeigniter/index.php/$1 last;
}
}
location = /50x.html {
root /var/www/nginx-default;
}
location /codeigniter/index.php {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/nginx-default/codeigniter/index.php;
include fastcgi_params;
}
}
попытался как-то применить это к своему, но при обращении без index.php? возвращается ошибка 403:
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name flashportal.com;
charset utf-8;
root c:/dev/www/flashportal;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root c:/dev/nginx/html;
}
location / {
if (-f $request_filename) {
expires max;
break;
}
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
}
index index.php;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9123;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
}
где ошибка?