windows 下 apache设置

apache,apache配置,配置端口

 

mac下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>

  

posted @ 2015-04-29 17:53  破男孩  阅读(262)  评论(0编辑  收藏  举报