码迷,mamicode.com
首页 > Web开发 > 详细

apache设置

时间:2015-04-29 18:55:15      阅读:143      评论:0      收藏:0      [点我收藏+]

标签:

apache,apache配置,配置端口

 

添加虚拟主机:

Alias /selftest/ "D:/self-test/"  
<Directory "D:/self-test/">
   Options Indexes MultiViews  
   AllowOverride All  
   Order allow,deny  
   Allow from all  
</Directory>

  

 

 

添加端口:

今天安装如下设置端口,结果apache无法启动。

Listen 2010
NameVirtualHost *:2010
<VirtualHost *:2000>
    DocumentRoot "/Users/liaowei/Documents/code/github/requirejs-demo"
    ServerName require
    RewriteEngine On
    RewriteRule ^/(?!asset).* /Users/liaowei/Documents/code/github/requirejs-demo/index.html
</VirtualHost>

  改成如下配置ok,可以访问

Listen 2010
NameVirtualHost *:2010
<VirtualHost *:2010>
  DocumentRoot "D:/self-test/requirejs-self"
</VirtualHost>

  

apache设置

标签:

原文地址:http://www.cnblogs.com/ayseeing/p/4466664.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!