你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
没有找到相关结果
不是本人 - no no no!
赞同来自:
刘备曹操 - 古今多少事,都付谈笑中
要回复问题请先登录或注册
上帝给我的使命,就是证明你们都不是最糟糕的
3 个回复
不是本人 - no no no!
赞同来自:
不是本人 - no no no!
赞同来自:
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;
}