<?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; 悠然居</title>
	<atom:link href="https://wordpress.youran.me/tag/%e4%ba%8c%e7%ba%a7%e5%9f%9f%e5%90%8d/feed/" rel="self" type="application/rss+xml" />
	<link>https://wordpress.youran.me</link>
	<description>极客技术博客</description>
	<lastBuildDate>Tue, 03 Jan 2012 01:13:42 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>Apache下添加二级域名的方法</title>
		<link>https://wordpress.youran.me/apache%e4%b8%8b%e6%b7%bb%e5%8a%a0%e4%ba%8c%e7%ba%a7%e5%9f%9f%e5%90%8d%e7%9a%84%e6%96%b9%e6%b3%95/</link>
					<comments>https://wordpress.youran.me/apache%e4%b8%8b%e6%b7%bb%e5%8a%a0%e4%ba%8c%e7%ba%a7%e5%9f%9f%e5%90%8d%e7%9a%84%e6%96%b9%e6%b3%95/#respond</comments>
		
		<dc:creator><![CDATA[youran]]></dc:creator>
		<pubDate>Wed, 28 Dec 2011 13:41:40 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[二级域名]]></category>
		<guid isPermaLink="false">http://wordpress.youran.me/?p=225</guid>

					<description><![CDATA[httpd.conf 中需要打开mod_rewrite功能，即修改/etc/httpd/conf/httpd.conf文件，在最下方添加如下代码： RewriteEngine on RewriteMap lowercase int:tolower RewriteMap vhost txt:/etc/httpd/conf/vhost.map RewriteCond ${lowercase:%{SERVER_NAME}} ^(.+)$ RewriteCond ${vhost:%1} ^(/.*)$ RewriteRule ^/(.*)$ %1/$1 其中/etc/httpd/conf/为Apache的配置文件目录。然后在其下创建vhost.map文件，并写入类似如下内容： domain1.com /srv/http www.domain1.com /srv/http blog.domain1.com /srv/http/blog 以后，输入www.domain1.com或者domain1.com，就会转向/srv/http目录下文件；输入blog.domain1.com则会转向/srv/http/blog目录下的文件，从而实现二级域名。 本文为悠然居(https://wordpress.youran.me/)的原创文章，转载请注明出处！]]></description>
		
					<wfw:commentRss>https://wordpress.youran.me/apache%e4%b8%8b%e6%b7%bb%e5%8a%a0%e4%ba%8c%e7%ba%a7%e5%9f%9f%e5%90%8d%e7%9a%84%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Object Caching 33/34 objects using Disk
Page Caching using Disk: Enhanced 
Database Caching 4/6 queries in 0.001 seconds using Disk

Served from: wordpress.youran.me @ 2026-09-03 16:07:31 by W3 Total Cache
-->