<?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>Jontas &#187; apache2</title>
	<atom:link href="http://www.f15ijp.com/tag/apache2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.f15ijp.com</link>
	<description>My digital notepad (notes etc)</description>
	<lastBuildDate>Wed, 28 Dec 2011 18:24:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Apache2 unseting AddDefaultCharset (via .htaccess)</title>
		<link>http://www.f15ijp.com/2010/07/27/apache2-unseting-adddefaultcharset-via-htaccess/</link>
		<comments>http://www.f15ijp.com/2010/07/27/apache2-unseting-adddefaultcharset-via-htaccess/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 11:19:35 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[Apache2]]></category>
		<category><![CDATA[AddDefaultCharset]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[charset]]></category>
		<category><![CDATA[encoding]]></category>

		<guid isPermaLink="false">http://www.f15ijp.com/?p=561</guid>
		<description><![CDATA[Setting a default charset using .htaccess is a simple thing to do However sometimes there is a need to unset default charset as well (for instance if the AddDefaultCharset is set in the apache config and this is causing problems). This is very easy to do just edit the .htaccess file and add a line [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.f15ijp.com/2010/01/14/apache2-changing-charset-using-htaccess/">Setting a default charset using .htaccess is a simple thing to do</a></p>
<p>However sometimes there is a need to unset default charset as well (for instance if the AddDefaultCharset is set in the apache config and this is causing problems).</p>
<p>This is very easy to do just edit the .htaccess file and add a line that says</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">AddDefaultCharset</span> <span style="color: #0000ff;">OFF</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/07/27/apache2-unseting-adddefaultcharset-via-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.htaccess &#8211; limit access by ip (or range of ips)</title>
		<link>http://www.f15ijp.com/2010/03/19/htaccess-limit-access-by-ip-or-range-of-ips/</link>
		<comments>http://www.f15ijp.com/2010/03/19/htaccess-limit-access-by-ip-or-range-of-ips/#comments</comments>
		<pubDate>Fri, 19 Mar 2010 20:57:32 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[Apache2]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache2]]></category>

		<guid isPermaLink="false">http://f15ijp.com/?p=418</guid>
		<description><![CDATA[Using a .htaccess file it is not hard to limit access to a directory to only certain ips. order deny,allow deny from all allow from 10.8.0 allow from 81.257.140.212 Using only a partial ip (like 10.8.0) means a wildcard so all of the 10.8.0.0/24 rage is allowed.]]></description>
			<content:encoded><![CDATA[<p>Using a .htaccess file it is not hard to limit access to a directory to only certain ips.</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">order</span> <span style="color: #00007f;">deny</span>,<span style="color: #00007f;">allow</span>
<span style="color: #00007f;">deny</span> from <span style="color: #0000ff;">all</span>
<span style="color: #00007f;">allow</span> from 10.8.0
<span style="color: #00007f;">allow</span> from 81.257.140.212</pre></div></div>

<p>Using only a partial ip (like 10.8.0) means a wildcard so all of the 10.8.0.0/24 rage is allowed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/03/19/htaccess-limit-access-by-ip-or-range-of-ips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>apache2 could not reliably determine the server&#8217;s fully qualified domain name using 127.0.0.1</title>
		<link>http://www.f15ijp.com/2010/01/25/apache2-could-not-reliably-determine-the-servers-fully-qualified-domain-name-using-127-0-0-1/</link>
		<comments>http://www.f15ijp.com/2010/01/25/apache2-could-not-reliably-determine-the-servers-fully-qualified-domain-name-using-127-0-0-1/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 13:02:24 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[Apache2]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[hostname]]></category>

		<guid isPermaLink="false">http://f15ijp.com/?p=231</guid>
		<description><![CDATA[When apache complains like this. check that the virtualhosts so that ServerName is set to a FQDN check /etc/hostname [should be a fqdn] (after you have updated this, run &#8220;/bin/hostname -F /etc/hostname&#8221; check /etc/hosts Hint: use &#8220;apache2ctl configtest&#8221; to see if it helps]]></description>
			<content:encoded><![CDATA[<p>When apache complains like this.</p>
<ul>
<li>check that the virtualhosts so that ServerName is set to a FQDN</li>
<li>check /etc/hostname [should be a fqdn] (after you have updated this, run &#8220;/bin/hostname -F /etc/hostname&#8221;</li>
<li>check /etc/hosts</li>
<li>Hint: use &#8220;apache2ctl configtest&#8221; to see if it helps</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/01/25/apache2-could-not-reliably-determine-the-servers-fully-qualified-domain-name-using-127-0-0-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache2 changing charset using .htaccess</title>
		<link>http://www.f15ijp.com/2010/01/14/apache2-changing-charset-using-htaccess/</link>
		<comments>http://www.f15ijp.com/2010/01/14/apache2-changing-charset-using-htaccess/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 13:05:07 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[Apache2]]></category>
		<category><![CDATA[AddDefaultCharset]]></category>
		<category><![CDATA[AddType]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[charset]]></category>
		<category><![CDATA[encoding]]></category>
		<category><![CDATA[mime-type]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[utf-8]]></category>

		<guid isPermaLink="false">http://f15ijp.com/?p=145</guid>
		<description><![CDATA[If you do not wish to change character encoding for the entire server, but only one site (or only one directory) then this is possible to do using .htaccess. AddDefaultCharset UTF-8 If you only wish to do this to php or htm files (and not all files) &#60;FilesMatch &#34;\.(htm&#124;php)$&#34;&#62; AddDefaultCharset UTF-8 &#60;/FilesMatch&#62; If you wish [...]]]></description>
			<content:encoded><![CDATA[<p>If you do not wish to change character encoding for the entire server, but only one site (or only one directory) then this is possible to do using .htaccess.</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">AddDefaultCharset</span> UTF-<span style="color: #ff0000;">8</span></pre></div></div>

<p>If you only wish to do this to php or htm files (and not all files)</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;">&lt;<span style="color: #000000; font-weight:bold;">FilesMatch</span> <span style="color: #7f007f;">&quot;<span style="color: #000099; font-weight: bold;">\.</span>(htm|php)$&quot;</span>&gt;
<span style="color: #00007f;">AddDefaultCharset</span> UTF-<span style="color: #ff0000;">8</span>
&lt;/<span style="color: #000000; font-weight:bold;">FilesMatch</span>&gt;</pre></div></div>

<p>If you wish to modify the mime-type as well as the encoding (on html files in this example)</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">AddType</span> <span style="color: #7f007f;">'text/html; charset=UTF-8'</span> html</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/01/14/apache2-changing-charset-using-htaccess/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Apache2 virtualhosts</title>
		<link>http://www.f15ijp.com/2010/01/04/apache2-virtualhosts/</link>
		<comments>http://www.f15ijp.com/2010/01/04/apache2-virtualhosts/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 22:24:56 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[Apache2]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[virtualhosts]]></category>

		<guid isPermaLink="false">http://f15ijp.no-ip.org/?p=92</guid>
		<description><![CDATA[In order to bind a virtualhost to only one ip (if the server has several) add the ip in the VirtualHost tag, to make it listen on all ips &#8211; use * To make the server respond to several names, use the ServerAlias and ServerAlias supports wildcards. See the examples below for more. &#60;VirtualHost 111.22.33.55&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>In order to bind a virtualhost to only one ip (if the server has several) add the ip in the VirtualHost tag, to make it listen on all ips &#8211; use *<br />
To make the server respond to several names, use the ServerAlias and ServerAlias supports wildcards.</p>
<p>See the examples below for more.</p>
<pre>
&lt;VirtualHost 111.22.33.55&gt;
    DocumentRoot /www/subdomain
    ServerName www.sub.domain.tld
    ServerAlias *.sub.domain.tld
    ...
&lt;/VirtualHost&gt;
<pre>&lt;VirtualHost *&gt;
    DocumentRoot /www/domain
    ServerName www.domain.tld
    ...
&lt;/VirtualHost&gt;</pre>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/01/04/apache2-virtualhosts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

