<?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>virtualhost &#8211; 這世上 沒有偶然 只有必然</title>
	<atom:link href="https://wordpress.lokidea.com/tag/virtualhost/feed/" rel="self" type="application/rss+xml" />
	<link>https://wordpress.lokidea.com</link>
	<description>幻幽的小小分享區</description>
	<lastBuildDate>Sun, 06 Mar 2016 15:57:45 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>在windows上為本機apache設定虛擬網域【66/366】</title>
		<link>https://wordpress.lokidea.com/611/%e5%9c%a8windows%e4%b8%8a%e7%82%ba%e6%9c%ac%e6%a9%9fapache%e8%a8%ad%e5%ae%9a%e8%99%9b%e6%93%ac%e7%b6%b2%e5%9f%9f%e3%80%9066-366%e3%80%91/</link>
					<comments>https://wordpress.lokidea.com/611/%e5%9c%a8windows%e4%b8%8a%e7%82%ba%e6%9c%ac%e6%a9%9fapache%e8%a8%ad%e5%ae%9a%e8%99%9b%e6%93%ac%e7%b6%b2%e5%9f%9f%e3%80%9066-366%e3%80%91/#respond</comments>
		
		<dc:creator><![CDATA[Barney Chen]]></dc:creator>
		<pubDate>Sun, 06 Mar 2016 15:57:45 +0000</pubDate>
				<category><![CDATA[後端]]></category>
		<category><![CDATA[必然]]></category>
		<category><![CDATA[未分類]]></category>
		<category><![CDATA[每日一篇]]></category>
		<category><![CDATA[virtualhost]]></category>
		<guid isPermaLink="false">https://wordpress.lokidea.com/?p=611</guid>

					<description><![CDATA[其實這篇文章標題有點難定 主要講解內容分為兩部分 設定本機的特定網域指向 調整apache的virtualho &#8230; <a href="https://wordpress.lokidea.com/611/%e5%9c%a8windows%e4%b8%8a%e7%82%ba%e6%9c%ac%e6%a9%9fapache%e8%a8%ad%e5%ae%9a%e8%99%9b%e6%93%ac%e7%b6%b2%e5%9f%9f%e3%80%9066-366%e3%80%91/" class="more-link">閱讀全文 <span class="screen-reader-text">在windows上為本機apache設定虛擬網域【66/366】</span></a>]]></description>
										<content:encoded><![CDATA[<p>其實這篇文章標題有點難定<br />
主要講解內容分為兩部分</p>
<ol>
<li>設定本機的特定網域指向</li>
<li>調整apache的virtualhost</li>
</ol>
<p><span id="more-611"></span><br />
本篇適用於單機電腦(windows限定)的開發環境<br />
我自己使用的是windows 10<br />
第一點要設定特定網域指向<br />
C:\Windows\System32\drivers\etc\hosts<br />
修改這個檔案，需要最高權限<br />
所以文字編輯器也要用最高權限開啟<br />
請在最後面加上自己要設定的網域</p>
<blockquote><p>127.0.0.1    localhost.test.com</p></blockquote>
<p>這邊提醒一下，建議開頭放上 localhost<br />
把實際主網域填在後面<br />
也可以設定實際的網址<br />
只是這樣你就只連的到自己設定的內容了<br />
第二點：<br />
昨天有寫到，我是使用 TWAMPd<br />
因為作者似乎把設定檔案調整的有點複雜<br />
啟動  TWAMPd 以後<br />
右下角的那個綠色齒輪點右鍵<br />
點選 【Options(O)&#8230;】<br />
Apache Command arguments(optional)<br />
這一欄裡面<br />
應該有載入【httpd.conf】<br />
從這個檔案裏面去找到實際有生效的<br />
【https-vhosts.conf】<br />
修改這個檔案，就可以調整哪個資料夾要指向哪一個網址<br />
上面兩點都設定好，就可以在本機直接瀏覽特定的網址<br />
PS：<br />
virtualhost的設定方式請自行google【apache virtualhost】<br />
下面補充資料也可以參考使用<br />
大家設定有問題都可以在下面發問唷<br />
補充資料：<br />
<a href="http://mistech.pixnet.net/blog/post/91276198-apache---virtualhost-%E6%9E%B6%E8%A8%AD%E8%99%9B%E6%93%AC%E7%B6%B2%E7%AB%99" target="_blank" rel="noopener noreferrer">Apache &#8211; VirtualHost 架設虛擬網站 @ MISTECH 技術手抄本 :: 痞客邦 PIXNET ::<br />
</a><br />
<a href="http://kikinote.net/article/1352.html" target="_blank" rel="noopener noreferrer">在 Apache 設定 VirtualHost 使用同一個 伺服器 架設 多個網站 | 無痛教學 KiKi Note</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://wordpress.lokidea.com/611/%e5%9c%a8windows%e4%b8%8a%e7%82%ba%e6%9c%ac%e6%a9%9fapache%e8%a8%ad%e5%ae%9a%e8%99%9b%e6%93%ac%e7%b6%b2%e5%9f%9f%e3%80%9066-366%e3%80%91/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
