<?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 index</title>
	<atom:link href="http://www.iearn.in.th/tag/apache-index/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.iearn.in.th</link>
	<description>Just Play and Just Knowledge</description>
	<lastBuildDate>Fri, 05 Aug 2011 15:10:12 +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>Apache FancyIndex Overide Apache Icons</title>
		<link>http://www.iearn.in.th/2009/09/14/apache-fancyindex-overide-apache-icons/</link>
		<comments>http://www.iearn.in.th/2009/09/14/apache-fancyindex-overide-apache-icons/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 03:33:59 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache addicon]]></category>
		<category><![CDATA[apache index]]></category>
		<category><![CDATA[apache list file]]></category>
		<category><![CDATA[apache overide icon]]></category>
		<category><![CDATA[listfile]]></category>

		<guid isPermaLink="false">http://www.iearn.in.th/?p=584</guid>
		<description><![CDATA[เคยเขียนการทำ list ไฟล์ด้วย apache modindexoptions มาแล้วแต่ติดปัญหาเรื่อง icons ที่ไม่ได้เอามาตามที่เราต้องการกลับไปเอา icon ซึ่งเป็น default ของ apache มาทำให้ index list มองแล้วไม่สวยดังใจ เลยมาเขียน .htaccess เพื่อให้เปลี่ยนที่อยู่ของ icons ให้ไปตามที่เราต้องการ สำหรับใครที่ต้องการ icons ต่างๆ สามารถหาโหลดได้ทั่วไปแต่หากว่าไม่อยากโหลดมาก็สามารถเอาของผมไปใช้ได้ครับ สำหรับการ overide ตามนี้เลยครับ ส่วนนี้จะอยู่ใน .htaccess นะครับ AddIconByEncoding (CMP,/index-style/icons/compressed.gif) x-compress x-gzip #AddIconByType (TXT,/index-style/icons/text.gif) text/* AddIconByType (IMG,/index-style/icons/image2.gif) image/* AddIconByType (SND,/index-style/icons/sound2.gif) audio/* AddIconByType (VID,/index-style/icons/video.png) video/* AddIcon /index-style/icons/back.gif .. AddIcon /index-style/icons/pdf.png .pdf AddIcon [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.iearn.in.th/wp-content/uploads/2009/09/apache-index-overide-icon.png"><img src="http://www.iearn.in.th/wp-content/uploads/2009/09/apache-index-overide-icon-300x220.png" alt="apache-index-overide-icon" title="apache-index-overide-icon" width="300" height="220" class="aligncenter size-medium wp-image-585" /></a></p>
<p>เคยเขียนการทำ list ไฟล์ด้วย apache modindexoptions มาแล้วแต่ติดปัญหาเรื่อง icons ที่ไม่ได้เอามาตามที่เราต้องการกลับไปเอา icon ซึ่งเป็น default ของ apache มาทำให้ index list มองแล้วไม่สวยดังใจ เลยมาเขียน .htaccess เพื่อให้เปลี่ยนที่อยู่ของ icons ให้ไปตามที่เราต้องการ<br />
<span id="more-584"></span><br />
สำหรับใครที่ต้องการ icons ต่างๆ สามารถหาโหลดได้ทั่วไปแต่หากว่าไม่อยากโหลดมาก็สามารถเอาของผมไปใช้ได้ครับ สำหรับการ overide ตามนี้เลยครับ ส่วนนี้จะอยู่ใน .htaccess นะครับ<br />
<code>AddIconByEncoding (CMP,/index-style/icons/compressed.gif) x-compress x-gzip<br />
#AddIconByType (TXT,/index-style/icons/text.gif) text/*<br />
AddIconByType (IMG,/index-style/icons/image2.gif) image/*<br />
AddIconByType (SND,/index-style/icons/sound2.gif) audio/*<br />
AddIconByType (VID,/index-style/icons/video.png) video/*<br />
AddIcon /index-style/icons/back.gif ..<br />
AddIcon /index-style/icons/pdf.png .pdf<br />
AddIcon /index-style/icons/html.png .html .xhtml .xml<br />
AddIcon /index-style/icons/html.png .txt<br />
AddIcon /index-style/icons/compressed.gif .rar .zip<br />
AddIcon /index-style/icons/dll.png .dll<br />
AddIcon /index-style/icons/shellscript.png .sh<br />
AddIcon /index-style/icons/library.png .jar .lib<br />
AddIcon /index-style/icons/msword_doc.png .doc .docx<br />
AddIcon /index-style/icons/msexcel_xls.png .xls .xlsx<br />
AddIcon /index-style/icons/msaccess_mdb.png .mdb .mdbx<br />
AddIcon /index-style/icons/doc_encrypted.png .key .csr<br />
AddIcon /index-style/icons/binary.png .bin .exe<br />
AddIcon /index-style/icons/swf.png .bin .swf<br />
AddIcon /index-style/icons/source_java.png .java<br />
AddIcon /index-style/icons/source_c.png .c<br />
AddIcon /index-style/icons/source_cpp.png .cpp<br />
AddIcon /index-style/icons/source_ruby.png .rb<br />
AddIcon /index-style/icons/xml.png .xml<br />
AddIcon /index-style/icons/properties.png .properties<br />
#AddIcon /icon/hand.right.gif README<br />
AddIcon /index-style/icons/folder.gif ^^DIRECTORY^^<br />
AddIcon /index-style/icons/blank.gif ^^BLANKICON^^<br />
DefaultIcon /index-style/icons/unknown.gif</code></p>

<p class="sayac_bilgi">121 views</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2009/09/14/apache-fancyindex-overide-apache-icons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache FancyIndex with .htaccess</title>
		<link>http://www.iearn.in.th/2009/08/17/apache-fancyindex-with-htaccess/</link>
		<comments>http://www.iearn.in.th/2009/08/17/apache-fancyindex-with-htaccess/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 07:21:49 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache index]]></category>
		<category><![CDATA[apache list file]]></category>
		<category><![CDATA[listfile]]></category>

		<guid isPermaLink="false">http://www.iearn.in.th/?p=544</guid>
		<description><![CDATA[ห่างหายไปนานเลยกับการเขียนบล๊อกวันนี้มาอัพเดดหน่อย สำหรับตัวนี้จะเป็นการใช้งานของ apache IndexOptions ซึ่งจะเป็นการทำให้ folder เราสามารถ list ไฟล์ต่างๆ ได้เลย โดยการเขียนจะใช้งาน .htaccess เพื่อกำหนดค่าต่างๆ ครับ วิธีการทำ 1. เริ่มแรกเลยไปยัง folder ที่ต้องการทำ index จากนั้นให้สร้างไฟล์ .htaccess แล้วเพิ่มโค้ดข้างล่างนี้ Options Indexes FollowSymLinks IndexOptions FancyIndexing IndexOptions VersionSort IndexOptions HTMLTable IndexOptions FoldersFirst IndexOptions IconsAreLinks IndexOptions IgnoreCase IndexOptions SuppressDescription IndexOptions SuppressHTMLPreamble IndexOptions XHTML IndexOptions IconWidth=16 IndexOptions IconHeight=16 IndexOptions NameWidth=* IndexOrderDefault Descending Name HeaderName /index-style/header.html [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.iearn.in.th/wp-content/uploads/2009/08/index-stylelist.png"><img class="aligncenter size-medium wp-image-545" title="index-stylelist" src="http://www.iearn.in.th/wp-content/uploads/2009/08/index-stylelist-300x129.png" alt="index-stylelist" width="300" height="129" /></a><br />
<br/><br />
ห่างหายไปนานเลยกับการเขียนบล๊อกวันนี้มาอัพเดดหน่อย สำหรับตัวนี้จะเป็นการใช้งานของ apache IndexOptions ซึ่งจะเป็นการทำให้ folder เราสามารถ list ไฟล์ต่างๆ ได้เลย โดยการเขียนจะใช้งาน .htaccess เพื่อกำหนดค่าต่างๆ ครับ<span id="more-544"></span></p>
<p><strong>วิธีการทำ</strong><br />
1. เริ่มแรกเลยไปยัง folder ที่ต้องการทำ index จากนั้นให้สร้างไฟล์ .htaccess แล้วเพิ่มโค้ดข้างล่างนี้</p>
<p><code>Options Indexes FollowSymLinks<br />
IndexOptions FancyIndexing<br />
IndexOptions VersionSort<br />
IndexOptions HTMLTable<br />
IndexOptions FoldersFirst<br />
IndexOptions IconsAreLinks<br />
IndexOptions IgnoreCase<br />
IndexOptions SuppressDescription<br />
IndexOptions SuppressHTMLPreamble<br />
IndexOptions XHTML<br />
IndexOptions IconWidth=16<br />
IndexOptions IconHeight=16<br />
IndexOptions NameWidth=*<br />
IndexOrderDefault Descending Name<br />
HeaderName /index-style/header.html<br />
ReadmeName /index-style/footer.html</code></p>
<p>2. ให้ไปโหลดไฟล์ที่ http://recurser.com/articles/2008/12/29/styling-apache-directory-listings-with-mod_autoindex/ เพื่อทำให้สวยงามโดยการนำเอาไฟล์ไปไว้ที่ /index-style ก็จะได้รูปแบบสวยๆ แล้ว</p>
<p>เพิ่มเติม<br />
<a href="http://recurser.com/articles/2008/12/29/styling-apache-directory-listings-with-mod_autoindex/">http://recurser.com/articles/2008/12/29/styling-apache-directory-listings-with-mod_autoindex/</a></p>

<p class="sayac_bilgi">38 views</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2009/08/17/apache-fancyindex-with-htaccess/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

