php虚拟机配置
来源:互联网 发布:淘宝商品分类数据库 编辑:程序博客网 时间:2024/05/21 06:20
1、打开apache安装目录下的conf/httpd.conf
搜索Virtual hosts,可以看到:
#Virtual hosts
#Include conf/extra/httpd-vhosts.conf
意思是启用虚拟主机的设置文件httpd-vhosts.conf,虚拟主机的设置都在这个文件下
设置,改为:
#Virtual hosts
Include conf/extra/httpd-vhosts.conf
2、打开apache安装目录下的conf/extra/httpd-vhosts.conf
搜索<VirtualHost *:80>可看到
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot " c:/Apache24/docs/dummy-host.example.com"
ServerName dummy-host.example.com
ServerAlias www.dummy-host.example.com
ErrorLog "logs/dummy-host.example.com-error.log"
CustomLog "logs/dummy-host.example.com-access.log" common
</VirtualHost>
修改为:
<VirtualHost 127.0.0.2:80>
<Directory "D:/wamp/www/test">
Options FollowSymLinks IncludesNOEXEC Indexes
DirectoryIndex index.html index.htm index.php
AllowOverride Options FileInfo
Order Deny,Allow
Allow from all
</Directory>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "D:/wamp/www/test"
ServerName dummy-host.example.com
ServerAlias www.dummy-host.example.com
ErrorLog "logs/dummy-host.example.com-error.log"
CustomLog "logs/dummy-host.example.com-access.log" common
</VirtualHost>
重新启动服务器
在D:/wamp/www/test 下随便新建一个php文件,如test.php
在浏览器中输入127.0.0.2就可以直接访问了。
- php虚拟机配置
- 在虚拟机上配置ngnix+php
- linux虚拟机中php.ini的详细配置
- 虚拟机配置
- 虚拟机配置
- 虚拟机配置
- 配置虚拟机
- 配置虚拟机
- php虚拟机的配制
- 在虚拟机上安装Ubuntu以及在Windows下配置PHP环境
- 虚拟机VMWare安装RHEL 7.0以及安装配置LAMP环境(Apache+PHP+MariaDB)
- mac下虚拟机Ubuntu下配置PHP+Apache+MySQL服务器环境以及按照Laravel
- 使用virtualBox创建一个Linux虚拟机及配置apache和php
- [李景山php] 桥接,虚拟机无法连接外网,因为没有配置网关
- 虚拟机linux上网配置
- java虚拟机参数配置
- Java虚拟机参数配置
- java虚拟机参数配置
- jQuery Validation详解
- 1062. Talent and Virtue (25)
- 字符转为unicode编码
- AC自动机数组写法
- SOA,不看你永远不知道的事
- php虚拟机配置
- gentoo 网卡命名
- Lua程序设计第二版(笔记)第九章协同程序
- 04_N阶楼梯上楼问题、输入一个ip地址串,判断是否合法、输入一个四行五列的矩阵,找出每列最大的两个数
- jQuery.extend 函数详解
- HTTP header 详解
- 坠落凡间的struts2(1)---struts2的配置与安装
- Quartz 触发器(SimpleTrigger&CronTrigger )配置说明 & cronExpression表达式
- 用maven搭建多模块项目