<?xml version="1.0" encoding="utf-8"?>
			
			<rss version="2.0">
			<channel>
			<title>James Allen&apos;s Coldfusion and Internet Technology Blog - Railo</title>
			<link>http://jamesallen.name/index.cfm</link>
			<description>Adventures in Coldfusion and Internet development.</description>
			<language>en-us</language>
			<pubDate>Wed, 08 Sep 2010 17:56:05 +0100</pubDate>
			<lastBuildDate>Sat, 01 Aug 2009 12:53:00 +0100</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>slingshotuk@googlemail.com</managingEditor>
			<webMaster>slingshotuk@googlemail.com</webMaster>
			
			
			
			
			
			<item>
				<title>How to Secure Railo 3.1 Admin in IIS 6</title>
				<link>http://jamesallen.name/index.cfm/2009/8/1/How-to-Secure-Railo-31-Admin-in-IIS-6</link>
				<description>
				
				&lt;p&gt;I recently setup my new VPS with the awesome Railo 3.1 on Server 2003 and I soon started thinking about the security of the admin URL. With Adobe Coldfusion it&apos;s good practice to either move the administrator so it only runs on a non-standard port with IP filtering or protect it with a username and password via web server security.&lt;/p&gt;
&lt;p&gt;I decided that I would go the route of securing the Railo admin path via IIS directory security, however I soon realised that in Railo the admin URL is not a physical path. I.E. It is not created as either a virtual directory or a real directory within the webroot of each website hosted on the server.&lt;/p&gt;
&lt;p&gt;The Railo admin URL is as follows:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;http://www.mysite.com/railo-context/admin/index.cfm&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The way this URL is processed is that the ISAPI filter which Railo uses looks out for any call to railo-context and forwards it to the correct place within the Railo system. This is all done outside of IIS.&lt;/p&gt;
&lt;p&gt;So how do we protect the URL?&lt;/p&gt;
&lt;p&gt;The answer is actually pretty simple although you will have to do it on &lt;strong&gt;every &lt;/strong&gt;virtual site setup on the server.&lt;/p&gt;
&lt;p&gt;All we have to do is to create two physical folders within the webroot of the website we want to protect as follows:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;railo-context/admin&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Once this is created we can then go into the IIS 6 manager, locate the &apos;&lt;strong&gt;admin&lt;/strong&gt;&apos; folder, right click and select &apos;&lt;strong&gt;properties&lt;/strong&gt;&apos;. Within &apos;&lt;strong&gt;Directory Security&lt;/strong&gt;&apos; it is then possible to either restrict accces via IP or via authentication and access control.&lt;/p&gt;
&lt;p&gt;If using username and password security go into the &apos;&lt;strong&gt;Authentication Method&lt;/strong&gt;&lt;strong&gt;s&lt;/strong&gt;&apos; panel and uncheck &apos;&lt;strong&gt;Enable anonymous access&apos;&lt;/strong&gt; and leave &apos;&lt;strong&gt;Integrated Windows authentication&lt;/strong&gt;&apos; ticked.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;images/posts/IIS6_Permissions.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Now, whenever you access the railo admin URL you can log in via an account on the server (e.g administrator). It&apos;s recommended that you create a special windows account that will only be used for admin access. You could then only give that user permissions to access the &apos;&lt;strong&gt;/railo-context/admin&lt;/strong&gt;&apos; - though this would need to be done on each folder in each web root. In a hosted scenario this would be a good idea anyway as each customer should really have their own web user account to ensure they can only access their resources on the system.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note: &lt;/strong&gt;If you do decide to just log in using the administrator account on the server I recommend you do this over SSL &lt;strong&gt;ONLY&lt;/strong&gt;. If you do it over http:// it would be possible for a user on the same network (e.g wifi access point) to sniff your http packets and determine your admin password - not good.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
				
				</description>
						
				
				<category>Railo</category>				
				
				<pubDate>Sat, 01 Aug 2009 12:53:00 +0100</pubDate>
				<guid>http://jamesallen.name/index.cfm/2009/8/1/How-to-Secure-Railo-31-Admin-in-IIS-6</guid>
				
			</item>
			
		 	
			</channel></rss>