<?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>多域名 &#8211; LPC影子技术分享</title>
	<atom:link href="https://www.mudbest.com/tag/%E5%A4%9A%E5%9F%9F%E5%90%8D/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.mudbest.com</link>
	<description>行影不离,忘之却步.</description>
	<lastBuildDate>Mon, 01 Oct 2012 14:00:17 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.1</generator>
	<item>
		<title>Ubuntu Apache 基于域名的多站点设置</title>
		<link>https://www.mudbest.com/ubuntu-apache-%e5%9f%ba%e4%ba%8e%e5%9f%9f%e5%90%8d%e7%9a%84%e5%a4%9a%e7%ab%99%e7%82%b9%e8%ae%be%e7%bd%ae/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 24 Jan 2011 02:17:25 +0000</pubDate>
				<category><![CDATA[分享]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[多域名]]></category>
		<guid isPermaLink="false">http://blog.mudbest.com/?p=339</guid>

					<description><![CDATA[在原始的apache上可使用localhost进行本地访问，但是如果想再利用 localhost访问全站，用w ... <a title="Ubuntu Apache 基于域名的多站点设置" class="read-more" href="https://www.mudbest.com/ubuntu-apache-%e5%9f%ba%e4%ba%8e%e5%9f%9f%e5%90%8d%e7%9a%84%e5%a4%9a%e7%ab%99%e7%82%b9%e8%ae%be%e7%bd%ae/" aria-label="阅读 Ubuntu Apache 基于域名的多站点设置">阅读更多</a>]]></description>
										<content:encoded><![CDATA[<p>在原始的apache上可使用localhost进行本地访问，但是如果想再利用 localhost访问全站，用www.abc.com访问站点A，那就按照下面的步骤来操作：</p>
<p>/etc/apache2/sites-available/ 目录中建立一个文件 A。(这个名字可以随便取)</p>
<p>双击它，用编辑器打开，将一下内容复制到其中，部分地方需要修改。</p>
<pre class="brush: plain; title: ; notranslate">
&lt;VirtualHost *:80&gt;
#需要绑定的域名
ServerName mudbest.com
ServerAlias www.mudbest.com 
#管理员邮箱
ServerAdmin hkshadow@mudbest.com
#网站目录
DocumentRoot &quot;/var/www/blog/&quot;
#该网站的错误日志
ErrorLog &quot;/var/log/apache2/blog_errors.log&quot;
#改网站的配置日志
CustomLog &quot;/var/log/apache2/blog_accesses.log&quot; common
&lt;/VirtualHost&gt;
</pre>
<p>然后在命令行里并且在当前目录，输入 sudo a2ensite A ，这样就完成了A站点的配置了。</p>
<p>在网上看了那么多，好多都是不相干的说法，就这么简单。</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
