zoukankan      html  css  js  c++  java
  • centos7 apache设置伪静态 开启rewrite_module

    设置伪静态除了要生成.htaccess文件外,还需要查看服务器是否开启了rewrite_module。经过一番的纠结,处理方法如下:

    编辑Apache配置文件

    nano /etc/httpd/conf/httpd.conf

    找到以下内容,

    Include conf.modules.d/*.conf

    在上面一行之后添加以下内容,

    LoadModule rewrite_module modules/mod_rewrite.so

    继续找到以下内容,

    Options Indexes FollowSymLinks
        #
        # AllowOverride controls what directives may be placed in .htaccess files.
        # It can be "All", "None", or any combination of the keywords:
        # Options FileInfo AuthConfig Limit
        #
        AllowOverride None

    将此处的AllowOverride None修改为AllowOverride all。

  • 相关阅读:
    Linux
    网络
    线程池
    JVM内存结构相关知识
    JVM命令
    maven
    多线程
    AJAX、JSON
    JSP、EL、JSTL
    Mysql面试总结
  • 原文地址:https://www.cnblogs.com/58top/p/7743726.html
Copyright © 2011-2022 走看看