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>

  

最新文章

  1. ASP.NET Core HTTP 管道中的那些事儿
  2. C#对.zip 存档读取和写入
  3. QT5.1 调用https
  4. csuoj 1119: Collecting Coins
  5. window.location.href url含中文服务器收到乱码问题解决
  6. 【NOIP2005】过河
  7. java web路径的问题
  8. 关于MATLAB中的tic toc的问题
  9. myeclipse 项目运行时报错:运行项目时报错:Could not publish server configuration for Tomcat v6.0 Server at localhost. Multiple Contexts have a&quot;/&quot;
  10. -_-#【jsonp】cache
  11. UVA10562 数据结构题目
  12. 第一种:NStread
  13. 学习笔记——建造者模式Builder
  14. OCP 11G 实验环境安装文档 ( RedHat5.5 + Oracle11g )
  15. LeetCode题目总结(三)
  16. JavaScript八张思维导图—Date用法
  17. Maven Scope 依赖范围
  18. centos7 安装mysql出现Could NOT find Curses (missing CURSES_LIBRARY CURSES_INCLUDE_PATH)
  19. [原创]MSP430FR4133练习(一):GPIO输入电平状态判断
  20. python学习之老男孩python全栈第九期_day004作业

热门文章

  1. PHP中日期时间函数date()用法总结
  2. bnuoj 25662 A Famous Grid (构图+BFS)
  3. android studio 突然出现Gradle project sync failed 错误
  4. [转]谈谈C++中的swap函数
  5. POJ 3723 Conscription 最小生成树
  6. 2015年最新中国知网CNKI免费账号直接入口
  7. Install wget in Mac OS X Without Homebrew or MacPorts
  8. 2013山东省ICPC结题报告
  9. 防止注入网上查了下用SqlParameter可以,那SqlParameter处理单引号时候是自动转义了吗
  10. lintcode 中等题:Simplify Path 简化路径