server {
listen 80;
server_name _;
root /path/to/codeigniter;
index index.php index.html index.htm;
charset utf-8;
location / {
if (-f $request_filename) {
expires 30d;
break;
}
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?q=$1 last;
}
}
location ~ application/.* { deny all; }
location ~ system/.* { deny all; }
location ~ /\.ht { deny all; }
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_intercept_errors on;
include fastcgi_params;
}
}
投稿者: wokamoto
Developing WordPress Plugins for the WordPress Plugin Directory.
wokamoto のすべての投稿を表示
公開済み