<?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://www.dxcode.com/archives/tag/apache/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dxcode.com</link>
	<description>個人的なメモ書き</description>
	<lastBuildDate>Fri, 13 Jan 2012 23:57:25 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>mod_deflateによるコンテンツのGzip圧縮</title>
		<link>http://www.dxcode.com/archives/2009/0317449.html</link>
		<comments>http://www.dxcode.com/archives/2009/0317449.html#comments</comments>
		<pubDate>Tue, 17 Mar 2009 14:04:33 +0000</pubDate>
		<dc:creator>kecha</dc:creator>
				<category><![CDATA[CentOS5]]></category>
		<category><![CDATA[Customize]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[最適化]]></category>

		<guid isPermaLink="false">http://www.dxcode.com/?p=449</guid>
		<description><![CDATA[mod_deflateを有効にするためにdeflate.confを作成 [root@server ~]# vi /etc/httpd/conf.d/deflate.conf &#60;Location /&#62; AddO [...]]]></description>
			<content:encoded><![CDATA[<p>mod_deflateを有効にするためにdeflate.confを作成</p>
<blockquote><p>[root@server ~]# vi /etc/httpd/conf.d/deflate.conf</p></blockquote>
<pre>
&lt;Location /&gt;
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/rdf+xml

BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
Header append Vary User-Agent env=!dont-vary
&lt;/Location&gt;
</pre>
<p>上記ファイルを有効化するためにhttpdを再起動又は再読込み</p>
<blockquote><p>[root@server ~]# /etc/rc.d/init.d/httpd restart</p></blockquote>
<p>mod_deflateの効果については下記のサイトを見た方がわかりやすい。<br />
<a title="YSlow対策でmod_deflateを利用してHTTPレスポンスをgzip圧縮 - blog.katsuma.tv" href="http://blog.katsuma.tv/2007/07/yslow_apache_mod_deflate.html">YSlow対策でmod_deflateを利用してHTTPレスポンスをgzip圧縮 &#8211; blog.katsuma.tv</a><br />
圧縮出来ているかどうか及び効果は下記サイトやYSlowで確認できる。<br />
<a title="Port80 Software »» Compression Check" href="http://www.port80software.com/surveys/top1000compression/#checkyoursite">Port80 Software »» Compression Check</a></p>
<p>当サイトの結果は77.0%の圧縮に成功し転送速度も数値上では4倍ほど速くなった。<br />
<img src="http://www.dxcode.com/wp-content/uploads/2009/03/port80_mod_deflate.gif" alt="mod_deflateによるコンテンツのGzip圧縮" width="468" height="224" class="attachment wp-att-465 " /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dxcode.com/archives/2009/0317449.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VirtualHostでのSSL接続</title>
		<link>http://www.dxcode.com/archives/2008/020466.html</link>
		<comments>http://www.dxcode.com/archives/2008/020466.html#comments</comments>
		<pubDate>Mon, 04 Feb 2008 04:09:20 +0000</pubDate>
		<dc:creator>kecha</dc:creator>
				<category><![CDATA[CentOS5]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://www.dxcode.com/archives/2008/0204113.php</guid>
		<description><![CDATA[名前ベースのVirtualHostでSSL接続をする為の覚書。 と言っても証明書は正規のものではなく「なんちゃって証明書」だしVirtualHostでの証明書はルートドメインの証明書だが商用サイトでもなく又、第３者にスペ [...]]]></description>
			<content:encoded><![CDATA[<p>名前ベースのVirtualHostでSSL接続をする為の覚書。</p>
<p>と言っても証明書は正規のものではなく「なんちゃって証明書」だしVirtualHostでの証明書はルートドメインの証明書だが商用サイトでもなく又、第３者にスペースを貸し出すわけでもないのでこれで十分だったりします。<br />
今回はサブドメインで設定しましたが他のドメインでも問題はないと思う。</p>
<p>/etc/httpd/conf/httpd.conf　最後に追記</p>
<pre>NameVirtualHost *:80
&lt;VirtualHost *:80&gt;
ServerName raou.net
DocumentRoot /var/www/html
ServerAdmin info@raou.net
ErrorLog logs/raou.net-error_log
CustomLog logs/raou.net-access_log common
&lt;/VirtualHost&gt;
&lt;VirtualHost *:80&gt;
ServerName blog.raou.net
DocumentRoot /var/www/html/blog.raou.net
ServerAdmin info@raou.net
ErrorLog logs/blog.raou.net_error_log
CustomLog logs/blog.raou.net_log common
&lt;/VirtualHost&gt;</pre>
<p>/etc/httpd/conf.d/ssl.conf　最後に追記</p>
<pre>NameVirtualHost *:443
&lt;VirtualHost *:443&gt;
ServerAdmin info@raou.net
DocumentRoot /var/www/html
ServerName raou.net:443
ErrorLog logs/raou.net-error_log
CustomLog logs/raou.net-access_log common
SSLEngine On
SSLProtocol all -SSLv2
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
SSLCertificateFile /etc/pki/tls/certs/server.crt
SSLCertificateKeyFile /etc/pki/tls/certs/server.key
&lt;Files ~ &quot;\.(cgi|shtml|phtml|php3?)$&quot;&gt;
SSLOptions +StdEnvVars
&lt;/Files&gt;
&lt;/VirtualHost&gt;
&lt;VirtualHost *:443&gt;
ServerAdmin info@raou.net
DocumentRoot /var/www/html/blog.raou.net
ServerName blog.raou.net:443
ErrorLog logs/blog.raou.net-error_log
CustomLog logs/blog.raou.net-access_log common
SSLEngine On
SSLProtocol all -SSLv2
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
SSLCertificateFile /etc/pki/tls/certs/server.crt
SSLCertificateKeyFile /etc/pki/tls/certs/server.key
&lt;Files ~ &quot;\.(cgi|shtml|phtml|php3?)$&quot;&gt;
SSLOptions +StdEnvVars
&lt;/Files&gt;
&lt;/VirtualHost&gt;</pre>
<p>参考記事 » <a href="http://www.isokiti.tv/~isobetti/index.php?eid=61">成功SSLのvirtualhost設定</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dxcode.com/archives/2008/020466.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

