【PHP编程之路
来源:互联网 发布:amd 知乎 编辑:程序博客网 时间:2024/05/16 05:43
概述
设置apache虚拟目录
1.开启“虚拟目录配置文件”httpd-vhosts.conf
文件路径:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf
将以下配置:
- # Virtual hosts
- # Include conf/extra/httpd-vhosts.conf
改为:
- # Virtual hosts
- Include conf/extra/httpd-vhosts.conf
2.设置虚拟目录可访问
文件路径:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf
将以下配置:
- <Directory />
- AllowOverride none
- Require all denied
- </Directory>
改为:
- <Directory />
- AllowOverride none
- </Directory>
3.添加虚拟目录
文件路径:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf
添加虚拟目录
- <VirtualHost *:80>
- ServerAdmin webmaster@web.shop.com
- DocumentRoot "D:/_HelloWorld/01_MyProjects/06_PHP/01_Web/Product/Source/Shop"
- ServerName web.shop.com
- ErrorLog "logs/web.shop.com-error.log"
- CustomLog "logs/web.shop.com-access.log" common
- </VirtualHost>
4.重启apache
5.在浏览器中输入web.shop.com
阅读全文
0 0
- 【PHP编程之路
- PHP自学之路--------PHP数据库编程
- PHP自学之路------PHP文件编程
- PHP编程学习之路 1
- PHP编程学习之路 2
- PHP编程学习之路 3
- PHP并发IO编程之路
- PHP并发IO编程之路
- PHP并发IO编程之路
- PHP并发IO编程之路
- 【转】PHP并发IO编程之路
- PHP并发IO编程之路
- PHP并发IO编程之路
- PHP并发IO编程之路
- PHP之Socket编程
- php编程之函数
- php编程之字符串
- PHP编程之:入门
- 170530 逆向-CrackMe(6)
- git和github使用整理
- SVN上传代码
- 南阳理工18题
- 表单实现详细注册信息
- 【PHP编程之路
- css实现水平垂直居中的几种方法
- 依赖注入(DI) 和 控制反转(IoC)
- 【网站开发】搭建一个属入自己的网站
- opencv3_java 图像的阈值图像生成Threshold Imgproc.threshold
- 南阳理工19题
- eclipse:报错信息The superclass “javax.servlet.http.HttpServlet” was not found
- java语言基础(56)——String和StringBuffer互转
- USACO-Section1.3 Prime Cryptarithm【暴力枚举】