登录
|
使用QQ帐号登录
论坛首页
>
绵阳做网站
发帖
|
nginx配置文件 wdlinux nginx htaccess 静态重写rewrite
看9773
|
回1
|
收藏
xuanp
看全部
2019-3-22 11:24:12
在配置文件中加一下代码
include /usr/share/nginx/html/bbs/.htaccess;或者
include rewrite/DiscuzX3.4.conf;
.htaccess 是文件所在位置
DiscuzX3.4.conf 静态重写配置文件
xuanp
看全部
2019-3-22 11:26:46
nginx.conf
类似
代码:
server {
listen 80;
server_name it2168.com www.it2168.com;
root /www/web/it2168_com/public_html;
index index.html index.php index.htm;
error_page 400 /errpage/400.html;
error_page 403 /errpage/403.html;
error_page 404 /errpage/404.html;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
}
include rewrite/DiscuzX3.4.conf;
#include /usr/share/nginx/html/bbs/.htaccess
access_log /www/web_logs/it2168.com_access.log wwwlogs;
}
绵阳网站建设
Powered by
Discuz!
X3.4
首页
|
标准版
|
触屏版
|
电脑版