<?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; Apache</title>
	<atom:link href="http://blog.linym.net/archives/tag/apache/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.linym.net</link>
	<description>我的學習心得、筆記</description>
	<lastBuildDate>Fri, 09 Dec 2011 12:33:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>IE 下載 Office 2007 檔案變成 zip</title>
		<link>http://blog.linym.net/archives/221</link>
		<comments>http://blog.linym.net/archives/221#comments</comments>
		<pubDate>Tue, 17 Jun 2008 16:33:50 +0000</pubDate>
		<dc:creator>lym520</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[系統筆記]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[教學]]></category>

		<guid isPermaLink="false">http://blog.linym.net/?p=221</guid>
		<description><![CDATA[如果您的 Web Server 是採用 Apache，那有可能使用 Internet Explorer 下載 Office 2007(docx、ppts、xlsx...) 檔案的時候，會發現副檔名自動變成 .zip，有以下解決方法(擇一即可)： 一、修改 mime.types 檔案 加入： application/vnd.openxmlformats docx pptx xlsx 二、修改 httpd.conf 檔案 加入： AddType application/vnd.openxmlformats .docx .pptx .xlsx 三、使用 .htaccess 加入： AddType application/vnd.openxmlformats .docx .pptx .xlsx 參考文章：Office 2007 MIME types for Apache]]></description>
			<content:encoded><![CDATA[<p>如果您的 Web Server 是採用 Apache，那有可能使用 Internet Explorer 下載 Office 2007(docx、ppts、xlsx...) 檔案的時候，會發現副檔名自動變成 .zip，有以下解決方法(擇一即可)：</p>
<p><strong>一、修改 mime.types 檔案</strong><br />
加入：</p>
<pre>application/vnd.openxmlformats    docx pptx xlsx</pre>
<p><strong>二、修改 httpd.conf 檔案</strong><br />
加入：</p>
<pre>AddType  application/vnd.openxmlformats  .docx .pptx .xlsx</pre>
<p><strong>三、使用 .htaccess</strong><br />
加入：</p>
<pre>AddType  application/vnd.openxmlformats  .docx .pptx .xlsx</pre>
<p>參考文章：<a href="http://www.vladville.com/2007/04/office-2007-mime-types-for-apache.html">Office 2007 MIME types for Apache </a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.linym.net/archives/221/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>線上製作 .htaccess 檔案</title>
		<link>http://blog.linym.net/archives/174</link>
		<comments>http://blog.linym.net/archives/174#comments</comments>
		<pubDate>Sun, 02 Sep 2007 02:41:58 +0000</pubDate>
		<dc:creator>lym520</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[好書好站]]></category>
		<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://blog.linym.net/archives/174</guid>
		<description><![CDATA[.htaccess 檔案是 Apache 伺服器裡的一項功能，可以提供管理者在目錄層級自定義一些瀏覽規則，一般常用的功能有：密碼保護、網頁重導向、存取限制、錯誤頁面等，不過 .htaccess 的語法實在是記不太起來，每次使用都要先去翻手冊或是找範例來參考。 「.htaccess Editor」這個網站可以線上幫您製作 .htaccess 檔案，而且還有正體中文語系，有了它就可以快速幫您產生一些常用的基本功能囉！ 怎麼使用？只要將產生的內容存成 .htaccess，放入要作用的網頁目錄即可。如果沒效果就是 Apache 設定為不允許使用 .htaccess，請參考手冊 AllowOverride 項目來修改。]]></description>
			<content:encoded><![CDATA[<p><a href="http://zh.wikipedia.org/w/index.php?title=.htaccess&#038;variant=zh-tw">.htaccess</a> 檔案是 Apache 伺服器裡的一項功能，可以提供管理者在目錄層級自定義一些瀏覽規則，一般常用的功能有：密碼保護、網頁重導向、<a href="http://blog.linym.net/archives/92">存取限制</a>、錯誤頁面等，不過 .htaccess 的語法實在是記不太起來，每次使用都要先去翻手冊或是找範例來參考。</p>
<p>「<a href="http://www.htaccesseditor.com/tc.shtml" target="_blank">.htaccess Editor</a>」這個網站可以線上幫您製作 .htaccess 檔案，而且還有正體中文語系，有了它就可以快速幫您產生一些常用的基本功能囉！</p>
<p>怎麼使用？只要將產生的內容存成 .htaccess，放入要作用的網頁目錄即可。如果沒效果就是 Apache 設定為不允許使用 .htaccess，請參考手冊 <a href="http://httpd.apache.org/docs/2.0/mod/core.html#allowoverride">AllowOverride</a> 項目來修改。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.linym.net/archives/174/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>可攜式 APM 網頁伺服器</title>
		<link>http://blog.linym.net/archives/127</link>
		<comments>http://blog.linym.net/archives/127#comments</comments>
		<pubDate>Sun, 03 Jun 2007 02:21:57 +0000</pubDate>
		<dc:creator>lym520</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[系統筆記]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Portable]]></category>
		<category><![CDATA[伺服器]]></category>

		<guid isPermaLink="false">http://lym.fyman.idv.tw/blog/archives/127</guid>
		<description><![CDATA[本文已移至新分頁：http://blog.linym.net/portableapm]]></description>
			<content:encoded><![CDATA[<p>本文已移至新分頁：<a href="http://blog.linym.net/portableapm">http://blog.linym.net/portableapm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.linym.net/archives/127/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Apache mod_rewrite (Ubuntu)</title>
		<link>http://blog.linym.net/archives/119</link>
		<comments>http://blog.linym.net/archives/119#comments</comments>
		<pubDate>Sat, 03 Feb 2007 10:55:13 +0000</pubDate>
		<dc:creator>lym520</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://lym.fyman.idv.tw/blog/archives/119</guid>
		<description><![CDATA[要使用 mod_rewrite 模組在 Ubuntu 中是非常容易的，如果安裝 Ubuntu 時有順便裝 LAMP，那其實 mod_rewrite 就已經編譯好了，只需要將它載入即可。 所有可載入的模組和設定可以在 /etc/apache2/mods-available 找到，之後只要作個 Link 到 mods-enabled 目錄即可使用。 但是不需要這麼麻煩，因為有 a2enmod、a2dismod、a2ensite、a2dissite，這些指令可以更方便的載入、關閉模組，例如想要開啟 rewrite 只要鍵入： sudo a2enmod rewrite sudo /etc/init.d/apache2 restart 就可以了]]></description>
			<content:encoded><![CDATA[<p>要使用 mod_rewrite 模組在 Ubuntu 中是非常容易的，如果安裝 Ubuntu 時有順便裝 LAMP，那其實 mod_rewrite 就已經編譯好了，只需要將它載入即可。</p>
<p>所有可載入的模組和設定可以在 <strong>/etc/apache2/mods-available </strong>找到，之後只要作個 Link 到 mods-enabled 目錄即可使用。<br />
但是不需要這麼麻煩，因為有 a2enmod、a2dismod、a2ensite、a2dissite，這些指令可以更方便的載入、關閉模組，例如想要開啟 rewrite 只要鍵入：</p>
<blockquote><p>sudo a2enmod rewrite<br />
sudo /etc/init.d/apache2 restart</p></blockquote>
<p>就可以了</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.linym.net/archives/119/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache 防止圖片外連(盜連)</title>
		<link>http://blog.linym.net/archives/92</link>
		<comments>http://blog.linym.net/archives/92#comments</comments>
		<pubDate>Mon, 01 May 2006 06:36:06 +0000</pubDate>
		<dc:creator>lym520</dc:creator>
				<category><![CDATA[系統筆記]]></category>
		<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://lym.fyman.idv.tw/blog/archives/92</guid>
		<description><![CDATA[最近發現有些人直接連結本網域下的圖片，增加主機頻寬負荷 因此設定 Apache mod_rewrite 來防止 增加以下內容的 .htaccess 檔，放在網站目錄下即可。 RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://blog.linym.net(.*) [NC] RewriteRule \.(jpg&#124;jpeg&#124;gif&#124;css&#124;swf&#124;png&#124;bmp&#124;rar&#124;zip&#124;exe)$ - [F] 第一行為開啟 RewriteEngine，二三行設定允許的連線 第四行則是從其他地方連進來且是那些檔名的，看到403錯誤訊息，也可以改成顯示指定的圖片。]]></description>
			<content:encoded><![CDATA[<p>最近發現有些人直接連結本網域下的圖片，增加主機頻寬負荷<br />
因此設定 Apache mod_rewrite 來防止<br />
增加以下內容的 .htaccess 檔，放在網站目錄下即可。</p>
<pre>
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://blog.linym.net(.*) [NC]
RewriteRule \.(jpg|jpeg|gif|css|swf|png|bmp|rar|zip|exe)$ - [F]
</pre>
<p>第一行為開啟 RewriteEngine，二三行設定允許的連線<br />
第四行則是從其他地方連進來且是那些檔名的，看到403錯誤訊息，也可以改成顯示指定的圖片。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.linym.net/archives/92/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

