西安做网站_西安网站建设公司_西安网页制作_西安网页设计_西安网站制作设计公司

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 8447|回复: 1

nginx配置文件 wdlinux nginx htaccess 静态重写rewrite

[复制链接]
发表于 2019-3-22 11:24:12 | 显示全部楼层 |阅读模式
在配置文件中加一下代码
include /usr/share/nginx/html/bbs/.htaccess;或者
include rewrite/DiscuzX3.4.conf;

.htaccess 是文件所在位置

DiscuzX3.4.conf 静态重写配置文件
西安网站建设 | 西安做网站 —— 剑锋所指 所向披靡!
回复

使用道具 举报

 楼主| 发表于 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. }
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|小黑屋|手机版|Archiver|西安网站建设

GMT+8, 2024-4-27 02:48 , Processed in 0.043415 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表