尧图网络 高端网站定制 · 原创设计
免费咨询热线
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/8/22 20:23:49
彩笔运维勇闯机器学习--随机森林

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

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

📅 2026/8/22 20:23:50
电商人必看的AI运营跃迁路径(2024头部品牌已验证的5层智能决策模型)

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

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

📅 2026/8/22 20:23:50
MORE NEWS

更多资讯

📰

CAN总线原理与实战:从物理层到采样点调优

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

📰

Flask+Vue构建走失儿童信息管理系统实战

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

📰

C盘爆满只剩1GB?详解CBS日志如何膨胀到150GB及安全清理实战

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

📰

Polyspace 项目配置全攻略:编译选项、目标环境与检查项深度解析

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

📰

海外红人营销本土化策略与实战技巧

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

📰

Claude Code で OpenCodeReview(OCR)を動かす:スラッシュコマンドによるエンドツーエンドのコードレビュー

Claude Code で OpenCodeReview(OCR)を動かす:スラッシュコマンドによるエンドツーエンドのコードレビュー 【免费下载链接】open-code-review Fast, efficient, battle-tested at Alibabas scale. Hybrid architecture code review tool: de…

TODAY

今日更新

THIS WEEK

本周精选

THIS MONTH

本月热门

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

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

📞 💬