首页 技术 正文
技术 2022年11月13日
0 收藏 669 点赞 2,398 浏览 824 个字
#监听8086端口
Listen 8086            
NameVirtualHost *:8086
#保持绝对一致
<VirtualHost *:>      
ServerName localhost
ServerAlias 127.0.0.1
#指定根目录
DocumentRoot "D:\Htdocs\ajax\test"
<Directory "D:\Htdocs\ajax\test">
    #设置
    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


    					
相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:8,982
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,499
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,343
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,126
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,760
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,796