NameVirtualHost *
<VirtualHost *>
DocumentRoot D:/www/error
ServerName *
</VirtualHost>
<VirtualHost *>
ServerAdmin 218.57.239.3
ServerName 9999999.com
ServerAlias 9999999.com
DocumentRoot D:/www/hsxy/web
DirectoryIndex index.html index.htm index.php
<Directory D:/www/hsxy/web>
AllowOverride None
Options Indexes FollowSymLinks
Order Deny,Allow
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *>
ServerAdmin 218.57.239.3
ServerName 218.57.239.3
ServerAlias 218.57.239.3
DocumentRoot D:/www/hsxy/web
DirectoryIndex index.html index.htm index.php
<Directory D:/www/hsxy/web>
AllowOverride None
Options Indexes FollowSymLinks
Order Deny,Allow
Allow from all
</Directory>
</VirtualHost>
分享到:
相关推荐
默认网站是可以通过ip访问的,所以可能会有些恶意的域名指向你的网站,下面与大家分享下Apache如何禁止域名恶意指向,比较实用,需要的朋友可以参考下
如何在LINUX服务器CentOS下Apache配置多域名或者多端口映射
今天刚把域名配成,就把apache与tomcat的内容整合了 包括 域名配置说明 加参考文档
这个是跟之前的一个个资源配套使用的,Linux PHP环境安装(可以查看我的资源),环境主要为Linux+Apache+PHP+MySQL,安装好环境以后,可以通过这个简单的配置,支持服务器多项目多域名的支持,只是简单的教程,仅供...
apache配置,只允许域名访问,不允许ip访问
apache 阿帕奇常见恶意指向解决方法
apache的使用以及详细解释,详细翻译apache的解释翻译
本文介绍了最简单快速的Apache二级域名实现方法。
apache+tomcat域名泛解析
Apache设置二级域名的方法,可以帮助很好解决在Apache设置二级域名
标准的apache虚拟域名配置 *:80> DocumentRoot "C:\AppServ\www\sss\web\dev" DirectoryIndex index.php ServerName www.shadowsite.com AllowOverride All Allow from All </VirtualHost>
Apache站点绑定多个域名,用ServerAlias ,Apache站点绑定多个域名,用ServerAlias ,
NULL 博文链接:https://zhibin07.iteye.com/blog/1446521
Apache+tomcat服务器环境中多域名的配置Apache+tomcat服务器环境中多域名的配置
php环境开发下,apache如何配置多域名
Windows 下 apache 配置二级域名 我测试过的 绝对可行
LINUX ASP Apache多域名解析(这个有用之人下吧,挺经典的。)
apache tomcat6整合域名直接访问 apache tomcat6整合域名直接访问 apache tomcat6整合域名直接访问
【1】 打开文件路径:C:\Windows\System32\drivers\etc,修改hosts文件如下:【2】 打开路径:C:\wamp64\bin\apache\apache2.4.23\conf\original,打开httpd.conf文件,搜索 “Include conf/extra/httpd-vhosts.conf...