nginx服务器访问不了网页,是否要写rewrite?

要rewrite的话要在那个文件写,怎么写呢?
已邀请:

不是本人 - no no no!

赞同来自:

我用的是linux虚拟主机 Web服务器:Nginx,但是当我启用joomla的搜索引擎友好链接时,网址打不开,出现No input file specified.错误。请问怎么解决,com_Artio_JoomSEF安装后同样错误,怎么才能生成友好链接呢?谁能帮忙解决一下!!!

不是本人 - no no no!

赞同来自:

刚用linode vps服务器,lnmp一键安装之后,在joomalgate下载joomla1.7.3,这个服务器的根目录我建了一个站
www.jakai.com
,然后又在这个根目录下添加了一个新的虚拟主机(一个文件夹 www.luobum.com
)文件夹名为www.luobum.com。有一个问题还顺便问一下,joomla sef是不是和nginx下设置伪静态是一回事啊?按照

刘备曹操 - 古今多少事,都付谈笑中

赞同来自:

其实官方已经给出了正确答案。请参考
docs.joomla.org/Nginx
在百度上搜索的,大部分是错误的……server
{
listen 80;
server_name www.XXX.com;
root /home/wwwroot/www.XXX.com;
index index.php;

# Support Clean (aka Search Engine Friendly) URLs
location / {
try_files $uri $uri/ /index.php?q=$uri&$args;
}

index index.php index.html index.htm default.html default.htm;
# deny running scripts inside writable directories
location ~* /(images|cache|media|logs|tmp)/.*\.(php|pl|py|jsp|asp|sh|cgi)$ {
return 403;
error_page 403 /403_error.html;
}

location ~ .*\.(php|php5)?$
{
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fcgi.conf;
}

# caching of files
location ~* \.(ico|pdf|flv)$ {
expires 1y;
}

location ~* \.(js|css|png|jpg|jpeg|gif|swf|xml|txt)$ {
expires 14d;
}

log_format www.XXX.com '$remote_addr - $remote_user [$time_local] $request '
'$status $body_bytes_sent $http_referer '
'$http_user_agent $http_x_forwarded_for';
access_log /home/wwwlogs/www.XXX.com.log www.XXX.com;
}

要回复问题请先登录注册