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

    
    
    
    
  • 相关阅读:
    个人阅读作业
    个人阅读作业3
    阅读作业中软件开发书籍阅读后的一些体会
    个人项目代码复审
    读《移山之道-VSTS软件开发指南》
    北航MOOC客户端
    个人阅读作业3
    个人阅读作业2
    代码互审
    结对编程项目总结以及一些小小的体会
  • 原文地址:https://www.cnblogs.com/sheapchen/p/3363051.html
Copyright © 2011-2022 走看看