尧图网络 高端网站定制 · 原创设计
免费咨询热线
400-888-6620
免费获取方案
08-一个IP绑定多个域名(根据ServerName)
hosts文件# Copyright (c) 1993-2009 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a # symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host # localhost name resolution is handled within DNS itself. # 127.0.0.1 localhost # ::1 localhost 127.0.0.1 www.xukaiqiang.com 127.0.0.1 www.xukaiqiang3.comhttpd-vhosts.conf# # Virtual Hosts # # If you want to maintain multiple domains/hostnames on your # machine you can setup VirtualHost containers for them. Most configurations # use only name-based virtual hosts so the server doesnt need to worry about # IP addresses. This is indicated by the asterisks in the directives below. # # Please see the documentation at # URL:http://httpd.apache.org/docs/2.2/vhosts/ # for further details before you try to setup virtual hosts. # # You may use the command line option -S to verify your virtual host # configuration. # # Use name-based virtual hosting. # NameVirtualHost *:80 # # VirtualHost example: # Almost any Apache directive may go into a VirtualHost container. # The first VirtualHost section is used for all requests that do not # match a ServerName or ServerAlias in any VirtualHost block. # VirtualHost *:80 ServerAdmin webmasterdummy-host.somenet.com DocumentRoot C:/myenv/apache/docs/dummy-host.somenet.com ServerName dummy-host.somenet.com ServerAlias www.dummy-host.somenet.com ErrorLog logs/dummy-host.somenet.com-error.log CustomLog logs/dummy-host.somenet.com-access.log common /VirtualHost VirtualHost *:80 ServerAdmin webmasterdummy-host.somenet.com DocumentRoot C:/myenv/apache/docs/dummy-host.somenet.com ServerName dummy-host.somenet.com ServerAlias www.dummy-host.somenet.com ErrorLog logs/dummy-host.somenet.com-error.log CustomLog logs/dummy-host.somenet.com-access.log common /VirtualHost VirtualHost *:80 #站点的根目录 DocumentRoot d:/myblog #指定域名 ServerName www.xukaiqiang.com #设置站点的首页面 DirectoryIndex news.html index.html indext.htm index.php Directory / Options FollowSymLinks AllowOverride None Order allow,deny Allow from all /Directory /VirtualHost VirtualHost *:80 DocumentRoot d:/myblog2 #指定域名 ServerName www.xukaiqiang3.com DirectoryIndex news.html index.html indext.htm index.php Directory / Options FollowSymLinks AllowOverride None Order allow,deny Allow from all /Directory /VirtualHost
RELATED

相关推荐

Python的try except:别让你的代码裸奔,异常处理才是真护身符

Python的try except:别让你的代码裸奔,异常处理才是真护身符

现在, 绝大多数的编程语言, 都对异常处理予以支持, 异常处理的通行做法是, 把正常执行的代码, 放置在特定的代码块之中, 随后, 再把处理异常的代码, 放置在另外一个代码块之中, 要是正常执行的代码块里的, 某条语句抛出了异常, 那么就会直接跳到, 处理异常的代码块里面去, 继续…

📅 2026/10/15 1:17:15
彩笔运维勇闯机器学习--随机森林

彩笔运维勇闯机器学习--随机森林

彩笔运维勇闯机器学习–随机森林 引言:从监控报警到机器学习的奇幻漂流作为一名运维工程师,我的日常工作就是和服务器、监控系统、日志文件打交道。每天最怕的就是半夜被报警电话吵醒:CPU 飙高了、磁盘满了、服务挂了…这些重复性的故障判断&…

📅 2026/10/15 5:36:02
电商人必看的AI运营跃迁路径(2024头部品牌已验证的5层智能决策模型)

电商人必看的AI运营跃迁路径(2024头部品牌已验证的5层智能决策模型)

更多请点击: https://codechina.net 第一章:电商人必看的AI运营跃迁路径(2024头部品牌已验证的5层智能决策模型) 当用户在淘宝搜索“夏季防晒衣”,系统不仅返回商品列表,更实时叠加了该用户近30天浏览偏好…

📅 2026/10/19 3:41:05
MORE NEWS

更多资讯

📰

衢州特种工求职考前押题怎么拿?怕考不过白交培训费的看这篇

衢州特种工求职考前押题怎么拿?怕考不过白交培训费的看这篇 怕考不过白交培训费?这是很多衢州特种工求职者的真实心声。特别是现在找工作门槛越来越高,特种作业操作证成了不少人的“硬通货”。但问题来了, 考前押题…

📰

义乌电工证培训机构千万别踩坑 证书过期了不知道怎么复审延期怎么办

义乌电工证培训机构千万别踩坑 证书过期了不知道怎么复审延期怎么办 证书过期了不知道怎么复审延期?这个问题真的让人头疼,特别是像我们南阳的建筑工人,平时忙于工作,一不小心证书就过了有效期,不仅影响工作机会,还可能面临罚款甚至被清退的风险。今天…

📰

联通安装人员考电工证2026河南最新政策解读

联通安装人员考电工证2026河南最新政策解读 你是不是正为找工作发愁?别怪我直接——现在不拿电工证,连门都进不了!尤其像联通安装这类需要接触电力设施的岗位, 电工证…

📰

宿州电工证培训费用揭秘!别再被中介坑,通过率高不高一文说清

宿州电工证培训费用揭秘!别再被中介坑,通过率高不高一文说清 你是不是也遇到过这种情况,想考个电工证,但不知道去哪报名,怕被中介坑?更别提对【宿州电工证培训费用】和通过率一无所知了。别慌,今天就把你关心的所有问题,从报名到考试,从费用到通过率…

📰

衢州特种工求职到期换证流程多少钱别白交培训费

衢州特种工求职到期换证流程多少钱别白交培训费 怕考不过白交培训费,这是很多人在考虑报考特种作业操作证时最担心的问题。特别是衢州地区的特种工求职者,一旦证书到期没及时换证,不仅影响工作,还可能面临被清退的风险。关键问题是, 多少钱…

📰

电工小孟电工证多少钱?学历不高也能考,关键看这几点

电工小孟电工证多少钱?学历不高也能考,关键看这几点 你是不是也担心自己学历不高,电工小孟电工证怎么也报不上名?别急,我跟你说, 电工小孟电工证多少钱 ,其实和学历关系不大,关键是要了解流程和要求。…

TODAY

今日更新

THIS WEEK

本周精选

THIS MONTH

本月热门

读完文章,想聊聊您的网站?

告诉我们您的行业与需求,资深顾问一对一梳理方案与报价,全程免费。

📞 💬