zoukankan      html  css  js  c++  java
  • Apache Conf/Vost/xx.conf 文件配置

    #监听8086端口
    Listen 8086             NameVirtualHost *:8086
    #保持绝对一致
    <VirtualHost *:8086>       ServerName localhost ServerAlias 127.0.0.1 #指定根目录
    DocumentRoot
    "D:Htdocsajax est" <Directory "D:Htdocsajax est">     #设置
        Options All ExecCGI FollowSymLinks Includes IncludesNOEXEC MultiViews SymLinksIfOwnerMatch     #指定主页
    DirectoryIndex index.html index.php    #设置为All Options加上 FollowSymLinks 就可以支持重写url
         AllowOverride All Order Deny,Allow Allow
    from all </Directory> </VirtualHost>
    
    

    Options

    
    

    1  All         准许以下除MultiViews以外所有功能

    
    

    2  MultiViews  允许多重内容被浏览,如果你的目录下有一个叫做foo.txt的文件,那么你可以通过/foo来访问到它,这对于一个多语言内容的站点比较有用

    
    

    3  Indexes     若该目录下无index文件,则准许显示该目录下的文件以供选择

    
    

    4  IncludesNOEXEC  准许SSI,但不可使用#exec和#include功能

    
    

    5  Includes    准许SSI

    
    

    6  FollowSymLinks  在该目录中,服务器将跟踪符号链接。注意,即使服务器跟踪符号链接,它也不会改变用来匹配不同区域的路径名,如果在<Local>;标记内设置,该选项会被忽略

    
    

    7  SymLinksIfOwnerMatch  在该目录中仅仅跟踪本站点内的链接

    
    

    8  ExecCGI     在该目录下准许使用CGI

    
    
    
    
  • 相关阅读:
    linux中nc命令
    Centos6.5 安装zabbix3(收藏,非原创)
    紀念
    算法学习资源收集
    一道奇怪的求和题
    P5717 题解
    P1424 刷题记录
    P1888 题解
    P1422 刷题记录
    P1055 题解
  • 原文地址:https://www.cnblogs.com/sheapchen/p/3363051.html
Copyright © 2011-2022 走看看