<?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>Open Sourcery &#187; apache</title>
	<atom:link href="http://www.opensourcery.co.uk/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.opensourcery.co.uk</link>
	<description>Open Source Support and Consultancy</description>
	<lastBuildDate>Wed, 27 Aug 2008 12:45:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using mod_rewrite to prevent hotlinking</title>
		<link>http://www.opensourcery.co.uk/2008/05/using-mod_rewrite-to-prevent-hotlinking/</link>
		<comments>http://www.opensourcery.co.uk/2008/05/using-mod_rewrite-to-prevent-hotlinking/#comments</comments>
		<pubDate>Mon, 12 May 2008 07:22:05 +0000</pubDate>
		<dc:creator>dave</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mod_rewrite]]></category>

		<guid isPermaLink="false">http://www.opensourcery.co.uk/?p=45</guid>
		<description><![CDATA[Hotlinking is the practice of linking to an object (generally an image file) from one site (the donor site) onto another (the linking site). We&#8217;re frequently asked by our hosting clients if there is a way to stop people doing this as it&#8217;s consuming their bandwidth or server resources. This is easily done with the [...]<p>a</p>
]]></description>
			<content:encoded><![CDATA[<p>Hotlinking is the practice of linking to an object (generally an image file) from one site (the donor site) onto another (the linking site). We&#8217;re frequently asked by our <a href="/services/open-source-hosting/">hosting</a> clients if there is a way to stop people doing this as it&#8217;s consuming their bandwidth or server resources. This is easily done with the mod_rewrite rules below. </p>
<blockquote><p><code><br />
RewriteEngine on<br />
RewriteCond %{HTTP_REFERER} !^$<br />
RewriteCond %{HTTP_REFERER} !^http://(www\.)?opensourcery.co.uk/.*$ [NC]<br />
RewriteRule \.(gif|png|jpe?g|$ - [F]</code></p></blockquote>
<p>This will deny requests for any .gif, .png, .jpg or .jpeg file unless the <a href="http://en.wikipedia.org/wiki/Referer">referrer</a> is either www.opensourcery.co.uk or opensourcery.co.uk. </p>
<p>You can substitute the last line for the one below if you wish to redirect people to an alternative image rather than simply denying the requests.</p>
<blockquote><p><code>#RewriteRule \.(gif|png|jpe?g|$ img/dontsteal.gif [L,NC]</code></p></blockquote>
<p>It&#8217;s worth remembering that the referrer header is optional so although almost every modern browser sends this with each request it&#8217;s possible that some won&#8217;t do meaning these rewrite rules may result in broken images for some users of your site. </p>
<p>a</p>
]]></content:encoded>
			<wfw:commentRss>http://www.opensourcery.co.uk/2008/05/using-mod_rewrite-to-prevent-hotlinking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scheduled maintenance with mod_rewrite</title>
		<link>http://www.opensourcery.co.uk/2008/04/scheduled-maintenance-with-mod_rewrite/</link>
		<comments>http://www.opensourcery.co.uk/2008/04/scheduled-maintenance-with-mod_rewrite/#comments</comments>
		<pubDate>Sun, 13 Apr 2008 10:45:38 +0000</pubDate>
		<dc:creator>dave</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[support]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://www.opensourcery.co.uk/?p=34</guid>
		<description><![CDATA[A public sector customer recently had a requirement to redirect visitors to one of their applications to a holding page overnight while the company who support the application carried out some maintenance work. The work was being carried out between 1am and 7am to minimize disruption to the members of public who use the application.
Keen [...]<p>a</p>
]]></description>
			<content:encoded><![CDATA[<p>A public sector customer recently had a requirement to redirect visitors to one of their applications to a holding page overnight while the company who support the application carried out some maintenance work. The work was being carried out between 1am and 7am to minimize disruption to the members of public who use the application.</p>
<p>Keen to help, but also to get a good nights sleep we looked to <a href="http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html" target="_blank">mod_rewrite</a> to provide a solution (we manage the front end servers, which run Apache). </p>
<p>We added the following lines to our httpd.conf to redirect any traffic to the site to a holding page at /static/offline.php from 00:55 until 07:30 to a holding page:</p>
<blockquote><p><code>RewriteEngine on<br />
RewriteCond %{TIME} >20080407055000<br />
RewriteCond %{TIME} <20080407073000<br />
RewriteRule !^/static/offline.php$ /static/offline.php [PT,NS]</p>
<p>Alias /static "/var/www/www.example.com/static"</code></p></blockquote>
<p>As the application sits on a Tomcat instance behind mod_proxy, we also added the following line to prevent mod_proxy from handling requests for the /static directory.</p>
<blockquote><p><code>ProxyPass /static !</code></p></blockquote>
<p>We created the offline.php file, including with the line below to ensure that search engines didn't index the holding page.</p>
<blockquote><p><code>header("HTTP/1.1 503 Service Temporarily Unavailable")</code><br />
</blockquote</p>
<p>a</p>
]]></content:encoded>
			<wfw:commentRss>http://www.opensourcery.co.uk/2008/04/scheduled-maintenance-with-mod_rewrite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New website</title>
		<link>http://www.opensourcery.co.uk/2008/04/new-website/</link>
		<comments>http://www.opensourcery.co.uk/2008/04/new-website/#comments</comments>
		<pubDate>Sun, 06 Apr 2008 21:03:59 +0000</pubDate>
		<dc:creator>dave</dc:creator>
				<category><![CDATA[Open Sourcery]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.opensourcery.co.uk/?p=33</guid>
		<description><![CDATA[Our new website is now online.
As you would expect, the site is created wholly using Open Source software. It has been created using the excellent WordPress software and is
hosted on our own LAMP (Linux/Apache/MySQL/PHP)  servers.
a
<p>a</p>
]]></description>
			<content:encoded><![CDATA[<p>Our new website is now online.</p>
<p>As you would expect, the site is created wholly using Open Source software. It has been created using the excellent <a href="http://wordpress.org/" target="_blank">WordPress</a> software and is<br />
<a href="/services/open-source-hosting/">hosted</a> on our own <a href="http://en.wikipedia.org/wiki/LAMP_(software_bundle)" target="_blank">LAMP</a> (Linux/Apache/MySQL/PHP)  servers.</p>
<p>a</p>
]]></content:encoded>
			<wfw:commentRss>http://www.opensourcery.co.uk/2008/04/new-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Support for Open Source software</title>
		<link>http://www.opensourcery.co.uk/services/support-for-open-source-software/</link>
		<comments>http://www.opensourcery.co.uk/services/support-for-open-source-software/#comments</comments>
		<pubDate>Sun, 06 Apr 2008 20:56:06 +0000</pubDate>
		<dc:creator>dave</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[bsd]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[support]]></category>
		<category><![CDATA[tomcat]]></category>
		<category><![CDATA[webserver]]></category>

		<guid isPermaLink="false">http://www.opensourcery.co.uk/services/support-for-open-source-software/</guid>
		<description><![CDATA[We can provide remote or onsite support for Open Source operating systems (Linux / BSD) and applications such as the Apache webserver, Tomcat, MySQL. There are more examples of products we&#8217;ve worked on our experience page.
We&#8217;re comfortable working in mixed environments too, for example running Apache, MySQL and PHP on Windows (commonly known as the [...]<p>a</p>
]]></description>
			<content:encoded><![CDATA[<p>We can provide <a href="/services/remote-administration/">remote</a> or onsite support for Open Source operating systems (Linux / BSD) and applications such as the Apache webserver, Tomcat, MySQL. There are more examples of products we&#8217;ve worked on <a href="/open-sourcery/our-experience/">our experience page</a>.</p>
<p>We&#8217;re comfortable working in mixed environments too, for example running Apache, MySQL and PHP on Windows (commonly known as the <a href="http://en.wikipedia.org/wiki/Comparison_of_WAMPs">WAMP</a> application stack)</p>
<p>a</p>
]]></content:encoded>
			<wfw:commentRss>http://www.opensourcery.co.uk/services/support-for-open-source-software/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Our experience</title>
		<link>http://www.opensourcery.co.uk/open-sourcery/our-experience/</link>
		<comments>http://www.opensourcery.co.uk/open-sourcery/our-experience/#comments</comments>
		<pubDate>Sun, 06 Apr 2008 17:56:18 +0000</pubDate>
		<dc:creator>dave</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[bsd]]></category>
		<category><![CDATA[courier]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[mail server]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[openbsd]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[postgres]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[sendmail]]></category>
		<category><![CDATA[spamassassin]]></category>
		<category><![CDATA[squid]]></category>
		<category><![CDATA[support]]></category>
		<category><![CDATA[tomcat]]></category>
		<category><![CDATA[web applications]]></category>

		<guid isPermaLink="false">http://www.opensourcery.co.uk/</guid>
		<description><![CDATA[We have been working with Free and Open Source Software since 1998 and have worked with wide variety of customers, ranging in size from single employees through to large multinationals. An increasing amount of our work is with SME&#8217;s who are making use of Open Source software to reduce their IT costs. Our customers are [...]<p>a</p>
]]></description>
			<content:encoded><![CDATA[<p>We have been working with Free and Open Source Software since 1998 and have worked with wide variety of customers, ranging in size from single employees through to large multinationals. An increasing amount of our work is with SME&#8217;s who are making use of Open Source software to reduce their IT costs. Our customers are in both the private and public sectors.</p>
<h2 title="Free and Open Source software we work with">Free and Open Source software we work with</h2>
<p>Our preferred Linux distributions are Debian, Ubuntu and Red Hat Enterprise Linux, but we have considerable experience with a wide range of Linux distributions. We are also experienced with BSD, in particular OpenBSD and FreeBSD. </p>
<p>We build mail servers based around either Exim, Postfix or Sendmail MTA&#8217;s and generally use Courier IMAP/POP3 server. We also utilise a number of open source anti-spam packages including SpamAssassin and amavis.</p>
<p>A lot of our work is building and supporting the infrastructure for web facing applications and websites. Generally this involves Apache HTTPd as the web server, with either a TomCat application server or PHP application. Generally these make use of a database such as MySQL or PostgreSQL. The most common configuration we work with now is known as the LAMP stack (Linux, Apache, MySQL, PHP). We&#8217;ve also made use of squid as a web content accelerator, and a caching proxy server.</p>
<p>We have setup and provided support for numerous Open Source web applications such as MediaWiki, Drupal, Blojsum and Wordpress (which we use to run this site).</p>
<p>We use Samba to allow customers to run Windows compatible file/print server without needing to run Windows.</p>
<p>We also work with a number of monitoring packages, and make extensive use of packages such as monit and smokeping as well as our own custom monitoring scripts to <a href="/services/remote-monitoring/">monitor</a> our customers systems and networks. </p>
<p>These are just examples of our work, so if you have another Open Source system you&#8217;d like us to support then please <a href="/contact-us/">contact us</a>.</p>
<p>a</p>
]]></content:encoded>
			<wfw:commentRss>http://www.opensourcery.co.uk/open-sourcery/our-experience/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
