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>

  

上一篇:js中数组对象去重的方法


下一篇:nginx日志中文变成类似\xE9\xA6\x96\xE9\xA1\xB5-\xE6\x8E\xA8\xE8\x8D\x90的东西,治本方案