<?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>2718.us blog &#187; image files</title>
	<atom:link href="http://2718.us/blog/tag/image-files/feed/" rel="self" type="application/rss+xml" />
	<link>http://2718.us/blog</link>
	<description>Miscellaneous Technological Geekery</description>
	<lastBuildDate>Tue, 18 May 2010 02:42:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Apache&#8217;s MultiViews Option</title>
		<link>http://2718.us/blog/2009/11/04/apaches-multiviews-option/</link>
		<comments>http://2718.us/blog/2009/11/04/apaches-multiviews-option/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 15:38:59 +0000</pubDate>
		<dc:creator>2718.us</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[content negotiation]]></category>
		<category><![CDATA[extensions]]></category>
		<category><![CDATA[file type extensions]]></category>
		<category><![CDATA[file types]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[image file types]]></category>
		<category><![CDATA[image files]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[mod_negotiation]]></category>
		<category><![CDATA[multiviews]]></category>
		<category><![CDATA[w3]]></category>
		<category><![CDATA[w3.org]]></category>

		<guid isPermaLink="false">http://2718.us/blog/?p=200</guid>
		<description><![CDATA[&#8230; or &#8220;how to serve different image types at one URL.&#8221; &#8230; or &#8220;why I let myself get carried away reading from one blog post to another.&#8221; After discovering free and cheap SSL certificates, I was playing with some sites over HTTPS to see what different browsers would show for the security.  Very quickly, I [...]]]></description>
			<content:encoded><![CDATA[<p>&#8230; or &#8220;how to serve different image types at one URL.&#8221;</p>
<p>&#8230; or &#8220;why I let myself get carried away reading from one blog post to another.&#8221;</p>
<p>After <a href="http://2718.us/blog/2009/11/03/startssl-freecheap-ssl-certificates/">discovering free and cheap SSL certificates</a>, I was playing with some sites over HTTPS to see what different browsers would show for the security.  Very quickly, I noticed that having any elements on the page that aren&#8217;t loaded over HTTPS causes the whole page to be marked as not secured.  One element in particular on one page was <a href="http://www.w3.org/Icons/valid-xhtml10-blue">this &#8220;valid&#8221; icon from w3.org</a>.  Note that the URL, http://www.w3.org/Icons/valid-xhtml10-blue,  doesn&#8217;t have any file-type extension on it.  Since w3.org doesn&#8217;t provide the icon over HTTPS (though they are fine with hotlinking the HTTP version), I needed to move it to my own server.  I went to look for the image file and didn&#8217;t find a &#8220;valid-xhtml10-blue&#8221; file with no extension.  What I found were several files with that base name and different extensions.  I couldn&#8217;t find any information in the w3.org docs or in the source for the validator, which includes all the validation icons, as to how this was achieved.  I googled to no avail.</p>
<p>Not long after that, I noticed an update for <a href="http://www.bad-behavior.ioerror.us/">Bad Behavior</a> was available and went to read the <a href="http://www.bad-behavior.ioerror.us/2009/11/02/bad-behavior-2-0-32/">release notes</a>.  After reading the release notes, <a href="http://www.bad-behavior.ioerror.us/2009/11/02/bad-behavior-2-2-status-and-roadmap/">a post about the future major version of Bad Behavior</a> caught my eye.  In that post&#8211;no, actually <a href="http://www.bad-behavior.ioerror.us/2009/11/02/bad-behavior-2-2-status-and-roadmap/#comment-8160">in the comments on that post</a>&#8211;there was a mention of <a href="http://linux.ioerror.us/2008/07/migrating-from-apache-to-nginx/">getting rid of Apache</a> for performance reasons.  In reading that post, in the discussions of the pros and cons of nginx versus Apache, &#8220;content negotiation&#8221; was described, and suddenly I understood how to serve the multiple image file types at one type-extension-less URL, like w3.org did.  A quick googling led me to <a href="http://httpd.apache.org/docs/2.2/mod/mod_negotiation.html#multiviews">MultiViews</a>.</p>
<p>One line in an .htaccess file and it&#8217;s done:<br />
<code>Options +MultiViews</code></p>
]]></content:encoded>
			<wfw:commentRss>http://2718.us/blog/2009/11/04/apaches-multiviews-option/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

