<?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>LinuxLane.com &#187; Apache</title>
	<atom:link href="http://www.linuxlane.com/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxlane.com</link>
	<description>เรียนรู้การใช้งาน ลีนุกซ์ [ Linux ]</description>
	<lastBuildDate>Mon, 19 Jul 2010 09:04:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=257</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ซ่อน Server Information ของ Apache Web Server บน Ubuntu Linux</title>
		<link>http://www.linuxlane.com/hide-server-information-apache-web-server-ubuntu-linux/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.linuxlane.com/hide-server-information-apache-web-server-ubuntu-linux/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 09:02:14 +0000</pubDate>
		<dc:creator>Chatpong Duangbung</dc:creator>
				<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[บทความ]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.linuxlane.com/?p=350</guid>
		<description><![CDATA[







เพื่อเป็นการป้องกันความปลอดภัยให้กับ Apache Web Server บน Ubuntu Linux ซึ่งวิธีการต่อไปนี้ ทดสอบกับ Ubuntu Linux 10.04 LTS นะครับ และคิดว่าน่าจะใช้กับเวอร์ชันอื่นๆ ได้เช่นกัน
สำหรับ Apache Web Server นั้น ถ้าเกิดมีการเปิดให้ List Directory ( หรือ Indexes ) ระบบจะมีการแสดงข้อความ Server Information ดังรูปข้างล่างนี้นะครับ


ซึ่งเราเอง อยากจะปิด ไม่ให้แสดงผล หรือแสดงผลน้อยที่สุด มีวิธีการดังนี้ครับ
แก้ไขที่ไฟล์
/etc/apache2/conf.d/security
หาบรรทัด ที่มีข้อความว่า
ServerTokens  OS
ให้แก้ไขเป็น
ServerTokens Prod
และบรรทัด
ServerSignature On
แก้ไขเป็น
ServerSignature Off
จากนั้นก็บันทึกไฟล์ และทำการรีโหลด Apache ครับ ดังนี้
sudo   /etc/init.d/apache2     reload
เมื่อทำการเปิดหน้าเว็บไซต์อีกคร้ง จะได้ดังรูปครับ

number of view: 59


เก็บลิงค์เข้าบุ๊คมาร์ค

















Hide Sites



]]></description>
		<wfw:commentRss>http://www.linuxlane.com/hide-server-information-apache-web-server-ubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ModSecurity: Output filter: Response body too large</title>
		<link>http://www.linuxlane.com/modsecurity-output-filter-response-body-too-large/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.linuxlane.com/modsecurity-output-filter-response-body-too-large/#comments</comments>
		<pubDate>Mon, 31 May 2010 08:26:59 +0000</pubDate>
		<dc:creator>Chatpong Duangbung</dc:creator>
				<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Mod_Security]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://www.linuxlane.com/?p=339</guid>
		<description><![CDATA[วันนี้ติดตั้ง Moodle บน Hosting ครับ แต่เกิดปัญหาขึ้นมา ข้อความดังนี้นะครับ
ModSecurity:  Output filter: Response body too large (over limit of 524288, total not  specified). [hostname "www.linuxlane.com"] [uri  "/admin/index.php"] [unique_id "xxxxxxxxxxxxxxx"]
ถ้าใครเจอปัญหาเดียวกัน ก็ให้แก้ที่ คอนฟิกของ mod_security นะครับ
จากเดิม
SecResponseBodyLimit 524288

แก้เป็น
SecResponseBodyLimit 5242880

เมื่อติดตั้งได้แล้ว ค่อยแก้กลับคืนเป็นค่าเดิมก็ได้ครับ


number of view: 234

เก็บลิงค์เข้าบุ๊คมาร์ค

















Hide Sites



]]></description>
		<wfw:commentRss>http://www.linuxlane.com/modsecurity-output-filter-response-body-too-large/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>การติดตั้ง  Virtual Host ของ Apache บน Ubuntu Linux</title>
		<link>http://www.linuxlane.com/virtual-host-apache-on-ubuntu-linux/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.linuxlane.com/virtual-host-apache-on-ubuntu-linux/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 08:12:51 +0000</pubDate>
		<dc:creator>Chatpong Duangbung</dc:creator>
				<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[บทความ]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[virtualhost]]></category>

		<guid isPermaLink="false">http://www.linuxlane.com/?p=267</guid>
		<description><![CDATA[Virtual Host ก็เป็นวิธีการทำให้ เครื่องเซิร์ฟเวอร์ 1 เครื่อง หรือไอพี 1 หมายเลข สามารถให้บริการได้หลายเว็บไซต์ ซึ่งในตัวอย่างข้างล่างนี้ เป็นตัวอย่างของการทำ Virtual Host บน Ubuntu Linux 9.10 Server นะครับ ซึ่งเวอร์ชั่นอื่นๆ ก็สามารถใช้งานได้ในแนวทางเดียวกัน




1. ทำการตั้งตัวแปร NameVirtualHost ให้ชี้ไปยังไอพีของเซิร์ฟเวอร์ ซึ่งถ้าเป็น Ubuntu Linux จะแก้ไขที่ไฟล์  /etc/apache2/ports.conf ครับ
sudo    vim    /etc/apache2/ports.conf
จาก
NameVirtualHost *:80
เป็น
NameVirtualHost xxx.xxx.xxx.xxx:80
โดยในที่นี้ xxx.xxx.xxx.xxx เป็นหมายเลขไอพีของเครื่องเซิร์ฟเวอร์นั่นเองครับ เมื่อเสร็จแล้วให้ทำการบันทึกไฟล์ได้เลย

2. จากนั้นทำการสร้างพื้นที่เก็บเว็บไซต์
sudo   mkdir    /var/www/my.linuxlane.com


3. ไปยังตำแหน่งของคอนฟิกไฟล์ แล้วสร้างไฟล์คอนฟิกขึ้นมา โดยมีชื่อว่า  my.linuxlane.com.conf
cd   /etc/apache2/site-available
sudo   vim   my.linuxlane.com.conf
โดยให้มีข้อมูลข้างในดังนี้

&#60;VirtualHost [...]]]></description>
		<wfw:commentRss>http://www.linuxlane.com/virtual-host-apache-on-ubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>เพิ่มความแข็งแกร่งให้เว็บไซต์ ด้วย Apache mod_auth ( htaccess )</title>
		<link>http://www.linuxlane.com/apache-mod_auth-htaccess-security/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.linuxlane.com/apache-mod_auth-htaccess-security/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 02:07:36 +0000</pubDate>
		<dc:creator>Chatpong Duangbung</dc:creator>
				<category><![CDATA[บทความ]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Authentication]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[realm]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[ความปลอดภัย]]></category>
		<category><![CDATA[ล็อกอิน]]></category>

		<guid isPermaLink="false">http://www.linuxlane.com/?p=130</guid>
		<description><![CDATA[บ่อยครั้งที่เราพบเจอกับปัญหา เกี่ยวกับความปลอดภัยของเว็บไซต์ เช่นหน้า administrator ของ joomla , wp-admin ของ wordpress หรือ เว็บไซต์ทั่วๆ ไปก็ตาม เราอาจจะสร้างระบบความปลอดภัยอย่างง่ายๆ และมีประสิทธิภาพ ด้วย Apache mod_auth ( htaccess ) มาช่วยครับ หรือบางทีก็เรียกว่า realm authentication ครับ ซึ่งจริงๆ หลายท่านอาจจะเคยเห็นแล้ว แต่ยังไม่ได้คำตอบว่า จะสร้างมาได้อย่างไรบ้าง และในวันนี้ เราจะมาดูกระบวนการทำ htaccess authentication กันนะครับ



ในตัวอย่างนี้ จะเป็นการสร้าง htaccess authentication ด้วย Fedora , CentOS , RedHat Linux นะครับ แต่ ลินุกซ์ ตระกูลอื่นๆ ก็สามารถทำได้เหมือนกัน แต่อาจจะเปลี่ยนพาธของไฟล์ / โฟลเดอร์ แค่นั้นเองครับ
ขั้นตอนที่ 1
สร้างไดเรคเทอรีทดสอบ
# [...]]]></description>
		<wfw:commentRss>http://www.linuxlane.com/apache-mod_auth-htaccess-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cannot modify header information</title>
		<link>http://www.linuxlane.com/cannot-modify-header-information/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.linuxlane.com/cannot-modify-header-information/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 13:57:44 +0000</pubDate>
		<dc:creator>Chatpong Duangbung</dc:creator>
				<category><![CDATA[บทความ]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Fixed]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Solved]]></category>

		<guid isPermaLink="false">http://www.linuxlane.com/wp/?p=44</guid>
		<description><![CDATA[ปัญหา Cannot modify header information คาดว่านักพัฒนาซอฟต์แวร์ รวมถึงผู้ที่ติดตั้งซอฟต์แวร์ที่เขียนด้วย ด้วยภาษา PHP คงจะเจอกันบ่อย ซึ่งลักษณะ ข้อความแสดงการผิดพลาด มีลักษณะดังข้างล่าง




Warning: Cannot modify header information &#8211; headers already  sent by
(output started at  /home/somewhere/somefile.php:10) in
/home/somewhere/somefile.php on line 20
การแก้ไขปัญหา
ให้แก้ไขที่ตัวแปร output_buffering ที่อยู่ในไฟล์ php.ini โดยปกติแล้วบางระบบปฏิบัติการ จะตั้งค่าให้ output_buffering = Off ซึ่งเราสามารถแก้ไขเป็น
output_buffering = 4096



จากนั้นก็ทำการรีสตาร์ท apache เซอร์วิส ก็สามารถใช้งานได้ปกติแล้วครับ
## Ubuntu / Debian / Gentoo
# /etc/init.d/apache2 restart
## RedHat / Fedora / CentOS
# [...]]]></description>
		<wfw:commentRss>http://www.linuxlane.com/cannot-modify-header-information/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>


