大家帮我看下LNMP nginx 如何设置 pathinfo 吧
我想用这样的链接:是 ThinkPHP http://tp.58ago.com/Ajax/abc可是我怎么配都不行log_formaty'$remote_addr - $remote_user [$time_local] $request '
'$status $body_bytes_sent $http_referer '
'$http_user_agent $http_x_forwarded_for';
server
{
listen 80;
server_name tp.58ago.com;
index index.html index.htm index.php default.html default.htm default.php;
root/home/www/tp.58ago.com;
location /Ajax/ {
if (!-e $request_filename){
rewrite ^/Ajax/(.*)$ /Ajax/index.php?s=/$1 last;
}
}
location ~ .*\.(php|php5)?$
{
try_files $uri =404;
fastcgi_passunix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fcgi.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
access_log/home/wwwlogs/y.logy;
}
[ 本帖最后由 wyqjx 于 2012-7-30 13:35 编辑 ] https://bbs.vpser.net/thread-8213-1-1.html 大哥,我按您的配置 nginx ,
提示 Access Denied
页:
[1]