<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>系统运维 &#187; 虚拟主机</title>
	<atom:link href="http://www.osyunwei.com/archives/tag/%E8%99%9A%E6%8B%9F%E4%B8%BB%E6%9C%BA/feed" rel="self" type="application/rss+xml" />
	<link>https://www.osyunwei.com</link>
	<description>国产化OS/AnolisOS/openEuler/RHEL/CentOS/Rocky Linux/Debian/Ubuntu Linux FreeBSD 服务器教程 &#124; Windows Server 2003/2008/2012/2016/2019/2022/2025服务器教程</description>
	<lastBuildDate>Tue, 14 Apr 2026 10:59:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linux下Apache虚拟主机配置</title>
		<link>https://www.osyunwei.com/archives/9232.html</link>
		<comments>https://www.osyunwei.com/archives/9232.html#comments</comments>
		<pubDate>Mon, 24 Aug 2015 16:08:35 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[虚拟主机]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=9232</guid>
		<description><![CDATA[说明： Apache版本：httpd-2.2.31 Apache安装目录：/usr/local/apache 目的： 配置Apache虚拟主机 具体操作： 1、修改Apache主配置文件 cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf-bak #修改之前先备份 vi /usr/local/apache/conf/httpd.conf #修改 找到# Virtual hosts这一行，添加以下两行： Include conf/error/*.conf Include conf/vhost/*.conf 找到# Server-pool management (MPM specific)这一行，取消下面一行的注释 Include conf/extra/httpd-mpm.conf 找到#ErrorDocument 404 /404.html这一行，取消前面的注释 ErrorDocument 404 /404.html #404.html需要创建好放在网站根目录下面 找到# ErrorLog: The location of the error log file.这一段，添加 ErrorLog "/usr/local/apache/logs/error_log" #Apache错误日志记录，需要创建好目录文件 #ErrorLog "/dev/null" #表示不记录Apache错误日志 LogLevel crit #日志级别，致命情况才记录 找到# The [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/9232.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/9232.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache虚拟主机配置</title>
		<link>https://www.osyunwei.com/archives/4065.html</link>
		<comments>https://www.osyunwei.com/archives/4065.html#comments</comments>
		<pubDate>Sun, 27 May 2012 08:49:15 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[虚拟主机]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=4065</guid>
		<description><![CDATA[配置之前先把域名解析到服务器IP地址上 服务器系统：CentOS 6.2 站点1：bbs.osyunwei.com  程序所在目录/var/www/html/bbs 站点2：sns.osyunwei.com  程序所在目录/var/www/html/sns chown apache.apache -R /var/www/html   #设置目录所有者 chmod 700  /var/www/html   -R  #设置目录权限 说明：修改之前先备份原来的配置文件 一、Apache配置 系统运维 www.osyunwei.com 温馨提醒：qihang01原创内容©版权所有,转载请注明出处及原文链接 cp /etc/httpd/conf/httpd.conf  /etc/httpd/conf/httpd.confbak   #修改之前先备份原文件 vi    /etc/httpd/conf/httpd.conf   #编辑配置文件 ServerTokens OS　    在44行  修改为：ServerTokens Prod （在出现错误页的时候不显示服务器操作系统的名称） ServerSignature On　 在536行 修改为：ServerSignature Off （在错误页中不显示Apache的版本） Options Indexes FollowSymLinks　 在331行 修改为：Options Includes ExecCGI FollowSymLinks（允许服务器执行CGI及SSI，禁止列出目录） #AddHandler cgi-script .cgi　在796行 修改为：AddHandler cgi-script .cgi [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/4065.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/4065.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
