apache vhost
2013-12-06 14:03
417 查看
httpd.conf:
Include "F:/wamp/alias/*"
<Directory "F:\wamp\www">
Options Indexes FollowSymLinks Multiviews
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
<VirtualHost *:80>
DocumentRoot F:\wamp\www
ServerName localhost
</VirtualHost>
<VirtualHost 168.192.122.74:80>
DocumentRoot f:/wamp/www2
ServerName 168.192.122.74:80
</VirtualHost>
<Directory "f:/wamp/www2">
Options Indexes FollowSymLinks Multiviews
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
httpd-vhost.conf:
<VirtualHost *:80>
ServerAdmin mss112.com
DocumentRoot "F:/wamp/www2/veryeast/jingnian_phone/Code/v1.2/webroot"
ServerName mssv12.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>
wamp2.49,php5.5:
这里用wamp做演示,wamp2.5内置了Apache2.4.9,我们先安装完wamp2.5.
2
我们打开Apache目录\wamp\bin\apache\apache2.4.9下的“conf”文件夹,完整路径:C:\wamp\bin \apache\apache2.4.9\conf,找到httpd.conf,用sublime text或者notepad等代码编辑器打开。
3
找到
# onlineoffline tag - don't remove
下方的:
Require local
4
将 Require local 替换成: Require all granted 即可。
Include "F:/wamp/alias/*"
<Directory "F:\wamp\www">
Options Indexes FollowSymLinks Multiviews
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
<VirtualHost *:80>
DocumentRoot F:\wamp\www
ServerName localhost
</VirtualHost>
<VirtualHost 168.192.122.74:80>
DocumentRoot f:/wamp/www2
ServerName 168.192.122.74:80
</VirtualHost>
<Directory "f:/wamp/www2">
Options Indexes FollowSymLinks Multiviews
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
httpd-vhost.conf:
<VirtualHost *:80>
ServerAdmin mss112.com
DocumentRoot "F:/wamp/www2/veryeast/jingnian_phone/Code/v1.2/webroot"
ServerName mssv12.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>
wamp2.49,php5.5:
这里用wamp做演示,wamp2.5内置了Apache2.4.9,我们先安装完wamp2.5.
2
我们打开Apache目录\wamp\bin\apache\apache2.4.9下的“conf”文件夹,完整路径:C:\wamp\bin \apache\apache2.4.9\conf,找到httpd.conf,用sublime text或者notepad等代码编辑器打开。
3
找到
# onlineoffline tag - don't remove
下方的:
Require local
4
将 Require local 替换成: Require all granted 即可。
相关文章推荐
- 在ubuntu13.04环境下配置apache的vhost
- apache 下vhost.conf文件
- apache 配置vhost
- apache vhost
- apache vhost配置
- Apache vhost的配置
- Apache 服务器部署拥有域名的虚拟服务器vhost
- apache中vhost的配置
- 用vhost.map 实现APACHE虚拟主机方式(win7环境下)
- apache 配置 httpd-vhost.conf 。VirtualHost 配置更改域名,端口 。 无法访问 localhost
- apache vhost 访问权限配置
- WAMP配置笔记,Apache开启.htaccess支持,通过vhost文件管理本地多个站点
- APACHE VHOST配置
- apache基本vhost配置-403问题的处理
- Apache虚拟主机(vhost)配置教程
- centos: apache vhost
- [Apache系列]怎样在windows下配置apache vhost
- Apache虚拟主机(vhost)配置教程
- apache下利用mod_vhost_alias模块实现不重启添加虚拟主机