登录|使用QQ帐号登录
论坛首页 > 绵阳做网站
发帖|
看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
类似

代码:

  1. server {
  2.         listen       80;
  3.         server_name it2168.com www.it2168.com;
  4.         root /www/web/it2168_com/public_html;
  5.         index  index.html index.php index.htm;
  6.         error_page  400 /errpage/400.html;
  7.         error_page  403 /errpage/403.html;
  8.         error_page  404 /errpage/404.html;
  9.         location ~ \.php$ {
  10.                 fastcgi_pass   127.0.0.1:9000;
  11.                 fastcgi_index  index.php;
  12.                 include fcgi.conf;
  13.         }
  14.         include rewrite/DiscuzX3.4.conf;
  15.         #include /usr/share/nginx/html/bbs/.htaccess
  16.         access_log  /www/web_logs/it2168.com_access.log  wwwlogs;
  17. }

绵阳网站建设

Powered by Discuz! X3.4

首页|标准版|触屏版|电脑版