Apache能否像IIS一样配置多端口多网站呀?……当然能啦,而且比IIS强多了!
2009-08-18 21:28
387 查看
Apache能否像IIS一样配置多端口多网站呀?……当然能啦,而且比IIS强多了!
1、监听多个端口:
Listen 80
Listen 127.0.0.1:8080
Listen 192.168.0.227:7000
2、虚拟主机:
<VirtualHost 127.0.0.1>
ServerName wwwtzx
Options All ExecCGI FollowSymLinks Includes IncludesNOEXEC Indexes MultiViews SymLinksIfOwnerMatch None
DirectoryIndex index.html index.php index.shtml
DocumentRoot "D:/wamp/www"
</VirtualHost>
<VirtualHost 127.0.0.1:8080>
ServerName wwwtzx
Options All ExecCGI FollowSymLinks Includes IncludesNOEXEC Indexes MultiViews SymLinksIfOwnerMatch None
DirectoryIndex index.html index.php index.shtml
DocumentRoot "D:/wamp/www3"
</VirtualHost>
<VirtualHost 192.168.0.227:7000>
ServerName wwwtzx
Options All ExecCGI FollowSymLinks Includes IncludesNOEXEC Indexes MultiViews SymLinksIfOwnerMatch None
DirectoryIndex index.html index.php index.shtml
DocumentRoot "D:/wamp/www2"
</VirtualHost>
3、网站文件目录访问权限
<Directory "D:/wamp/www/">
Options FollowSymLinks Indexes
Allow from 127.0.0.1
Deny from all
Order Deny,Allow
AllowOverride All
</Directory>
<Directory "D:/wamp/www2">
Options All ExecCGI FollowSymLinks Includes IncludesNOEXEC Indexes MultiViews SymLinksIfOwnerMatch None
Allow from All
</Directory>
<Directory "D:/wamp/www3">
Options All ExecCGI FollowSymLinks Includes IncludesNOEXEC Indexes MultiViews SymLinksIfOwnerMatch None
Allow from All
</Directory>
4、重启,完成!
1、监听多个端口:
Listen 80
Listen 127.0.0.1:8080
Listen 192.168.0.227:7000
2、虚拟主机:
<VirtualHost 127.0.0.1>
ServerName wwwtzx
Options All ExecCGI FollowSymLinks Includes IncludesNOEXEC Indexes MultiViews SymLinksIfOwnerMatch None
DirectoryIndex index.html index.php index.shtml
DocumentRoot "D:/wamp/www"
</VirtualHost>
<VirtualHost 127.0.0.1:8080>
ServerName wwwtzx
Options All ExecCGI FollowSymLinks Includes IncludesNOEXEC Indexes MultiViews SymLinksIfOwnerMatch None
DirectoryIndex index.html index.php index.shtml
DocumentRoot "D:/wamp/www3"
</VirtualHost>
<VirtualHost 192.168.0.227:7000>
ServerName wwwtzx
Options All ExecCGI FollowSymLinks Includes IncludesNOEXEC Indexes MultiViews SymLinksIfOwnerMatch None
DirectoryIndex index.html index.php index.shtml
DocumentRoot "D:/wamp/www2"
</VirtualHost>
3、网站文件目录访问权限
<Directory "D:/wamp/www/">
Options FollowSymLinks Indexes
Allow from 127.0.0.1
Deny from all
Order Deny,Allow
AllowOverride All
</Directory>
<Directory "D:/wamp/www2">
Options All ExecCGI FollowSymLinks Includes IncludesNOEXEC Indexes MultiViews SymLinksIfOwnerMatch None
Allow from All
</Directory>
<Directory "D:/wamp/www3">
Options All ExecCGI FollowSymLinks Includes IncludesNOEXEC Indexes MultiViews SymLinksIfOwnerMatch None
Allow from All
</Directory>
4、重启,完成!
相关文章推荐
- Apache配置多个监听端口和不同的网站目录的简单方法
- apache下多端口配置多网站
- Apache配置多个监听端口和不同的网站目录的简单方法(转)
- PHP 开发环境的搭建和使用 01--apache服务器配置以及 IIS端口冲突解决
- Apache配置多个监听端口和不同的网站目录的简单方法
- Apache 配置多端口网站
- apache不同端口访问不同网站 配置方法
- 详解Apache配置多个监听端口和不同的网站目录
- 如何配置Apache不同的端口指向不同的网站
- Apache配置多个监听端口和不同的网站目录的简单方法
- 改变IIS和Apache端口等配置
- IIS配置—端口映射—外网访问网站
- IIS && Apache 多个网站使用同一个端口
- Apache如果像iis一样用多个端口
- Apache配置多个监听端口和不同的网站目录
- Apache配置多个监听端口和不同的网站目录的简单方法
- IIS Apache冲突 改变Apache端口等配置修改方法
- IIS中如何设置二个端口一样的网站
- Apache配置——监听多个端口 对应多个不同的网站目录
- Apache配置多个监听端口和不同的网站目录的简单方法