1.打开apache/conf/httpd.conf文件加入listen 8080(监听的端口号)

然后加入

# Virtual hosts
Include "conf/extra/httpd-vhosts.conf"

然后加入

DocumentRoot "E:\htdocs/"
<Directory "E:\htdocs/">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks Includes ExecCGI

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride All

#
# Controls who can get stuff from this server.
#
Require all granted
</Directory>

注:文件地址是上面的文件地址,记住是两个地址

2.打开apache\conf\extra目录下的httpd-vhosts.conf文件

加入

<virtualhost *:8080>

ServerName localhost

DocumentRoot "E:\project_IC\Source\ICS"

</virtualhost>

注:更改地址就好了

完成!

最新文章

  1. 关系数据库常用SQL语句语法大全
  2. javaBean
  3. Unity 使用快速教程
  4. 静态局部变量、静态全局变量、extern全局变量、自动变量 札记
  5. C#: 自定义控件
  6. with 语句
  7. URAL 1146 Maximum Sum &amp; HDU 1081 To The Max (DP)
  8. Mysql 死锁问题
  9. 教你看懂C++类库函数定义之一---HRESULT 宏
  10. Oracle学习(十四):管理用户安全性
  11. vijos1090题解
  12. PHP(PHP-FPM)手动编译安装
  13. Win10 中将网页转换成pdf的简便方法
  14. popwindow+动画
  15. Django-models &amp; QuerySet API
  16. PXE+kickstart无人值守安装CentOS 7
  17. 本地搭了http服务(localhost),怎么在vue环境下,通过axios获取到接口数据
  18. 物联网架构成长之路(8)-EMQ-Hook了解、连接Kafka发送消息
  19. Sharepoint claim认证的login name
  20. 词向量-LRWE模型-更好地识别反义词同义词

热门文章

  1. Linux常用命令_(系统管理)
  2. 编译x264 for ios
  3. [LintCode] Binary Tree Serialization
  4. Codeforces Round #293 (Div. 2)
  5. emacs auto-complete
  6. ZOJ 3805 (树形DP)
  7. TYVJ P1051 选课 Label:多叉转二叉&amp;&amp;树形dp(虐心♥)
  8. 【TYVJ】1982 武器分配(费用流)
  9. 【wikioi】1217 借教室
  10. C#的async和await