<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How to use a Rails App with HTTPS</title>
	<atom:link href="http://weeatbricks.com/2007/10/31/how-to-use-a-rails-app-with-https/feed/" rel="self" type="application/rss+xml" />
	<link>http://weeatbricks.com/2007/10/31/how-to-use-a-rails-app-with-https/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 11 Sep 2009 15:04:55 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Christian</title>
		<link>http://weeatbricks.com/2007/10/31/how-to-use-a-rails-app-with-https/comment-page-1/#comment-3842</link>
		<dc:creator>Christian</dc:creator>
		<pubDate>Fri, 06 Mar 2009 20:16:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.weeatbricks.com/2007/10/31/how-to-use-a-rails-app-with-https/#comment-3842</guid>
		<description>Hi,
thanks for the tips. Proxying works for me. But now I want to proxy only requests to a special path. E.g. http://localhost should go to my document root but  http://localhost/c should go to my rails app running on port 3000.
My configuration looks like this:


    ServerAdmin christian@localhost
    DocumentRoot &quot;/Library/WebServer/Documents&quot;
    ServerName localhost
    ErrorLog &quot;/private/var/log/apache2/error_log&quot;
    TransferLog &quot;/private/var/log/apache2/access_log&quot;
    ProxyRequests On
   
     Order deny,allow
     Allow from all
   
    ProxyPass /c/ http://localhost:3000/
    ProxyPassReverse /c/ http://localhost:3000/


This is not working correctly. Surfing to http://localhost/c will open my rails app, but all images are gone and the link generated in my rails app are all missing the &#039;/c&#039;.

Any hints?

Best regards,

Christian</description>
		<content:encoded><![CDATA[<p>Hi,<br />
thanks for the tips. Proxying works for me. But now I want to proxy only requests to a special path. E.g. <a href="http://localhost" rel="nofollow">http://localhost</a> should go to my document root but  <a href="http://localhost/c" rel="nofollow">http://localhost/c</a> should go to my rails app running on port 3000.<br />
My configuration looks like this:</p>
<p>    ServerAdmin christian@localhost<br />
    DocumentRoot &#8220;/Library/WebServer/Documents&#8221;<br />
    ServerName localhost<br />
    ErrorLog &#8220;/private/var/log/apache2/error_log&#8221;<br />
    TransferLog &#8220;/private/var/log/apache2/access_log&#8221;<br />
    ProxyRequests On</p>
<p>     Order deny,allow<br />
     Allow from all</p>
<p>    ProxyPass /c/ <a href="http://localhost:3000/" rel="nofollow">http://localhost:3000/</a><br />
    ProxyPassReverse /c/ <a href="http://localhost:3000/" rel="nofollow">http://localhost:3000/</a></p>
<p>This is not working correctly. Surfing to <a href="http://localhost/c" rel="nofollow">http://localhost/c</a> will open my rails app, but all images are gone and the link generated in my rails app are all missing the &#8216;/c&#8217;.</p>
<p>Any hints?</p>
<p>Best regards,</p>
<p>Christian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://weeatbricks.com/2007/10/31/how-to-use-a-rails-app-with-https/comment-page-1/#comment-3083</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Fri, 16 Jan 2009 01:19:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.weeatbricks.com/2007/10/31/how-to-use-a-rails-app-with-https/#comment-3083</guid>
		<description>It would depend on your certificate.  Some certificates only authenticate a specific domain, while others allow for subdomains.</description>
		<content:encoded><![CDATA[<p>It would depend on your certificate.  Some certificates only authenticate a specific domain, while others allow for subdomains.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://weeatbricks.com/2007/10/31/how-to-use-a-rails-app-with-https/comment-page-1/#comment-210</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Wed, 09 Jan 2008 19:22:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.weeatbricks.com/2007/10/31/how-to-use-a-rails-app-with-https/#comment-210</guid>
		<description>Is it possible to have Apache reverse proxy SSL for 2 different Rails sites running on the same server?

In other words, https://a.domain.com and https://b.domain.com both being served by the same Apache server with a wildcard certificate?</description>
		<content:encoded><![CDATA[<p>Is it possible to have Apache reverse proxy SSL for 2 different Rails sites running on the same server?</p>
<p>In other words, <a href="https://a.domain.com" rel="nofollow">https://a.domain.com</a> and <a href="https://b.domain.com" rel="nofollow">https://b.domain.com</a> both being served by the same Apache server with a wildcard certificate?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ajey</title>
		<link>http://weeatbricks.com/2007/10/31/how-to-use-a-rails-app-with-https/comment-page-1/#comment-212</link>
		<dc:creator>Ajey</dc:creator>
		<pubDate>Mon, 07 Jan 2008 19:38:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.weeatbricks.com/2007/10/31/how-to-use-a-rails-app-with-https/#comment-212</guid>
		<description>Hi,

Is it possible to set up rails applications using only Apache web server? Would appreciate any insight into this.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Is it possible to set up rails applications using only Apache web server? Would appreciate any insight into this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Syntaxius</title>
		<link>http://weeatbricks.com/2007/10/31/how-to-use-a-rails-app-with-https/comment-page-1/#comment-215</link>
		<dc:creator>Syntaxius</dc:creator>
		<pubDate>Mon, 07 Jan 2008 00:05:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.weeatbricks.com/2007/10/31/how-to-use-a-rails-app-with-https/#comment-215</guid>
		<description>LOL, I did look in my router and opend up 443, and everything worked after that. Thanks for the tips!</description>
		<content:encoded><![CDATA[<p>LOL, I did look in my router and opend up 443, and everything worked after that. Thanks for the tips!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Syntaxius</title>
		<link>http://weeatbricks.com/2007/10/31/how-to-use-a-rails-app-with-https/comment-page-1/#comment-211</link>
		<dc:creator>Syntaxius</dc:creator>
		<pubDate>Sun, 06 Jan 2008 23:24:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.weeatbricks.com/2007/10/31/how-to-use-a-rails-app-with-https/#comment-211</guid>
		<description>Anton, I have the same exact problem as you. Can you please describe exactly what was your problem with your firewall and router and how you solved it!

Thanks in advance</description>
		<content:encoded><![CDATA[<p>Anton, I have the same exact problem as you. Can you please describe exactly what was your problem with your firewall and router and how you solved it!</p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anton</title>
		<link>http://weeatbricks.com/2007/10/31/how-to-use-a-rails-app-with-https/comment-page-1/#comment-217</link>
		<dc:creator>Anton</dc:creator>
		<pubDate>Sun, 06 Jan 2008 15:09:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.weeatbricks.com/2007/10/31/how-to-use-a-rails-app-with-https/#comment-217</guid>
		<description>I found the reason for the problem. It was a tricky router firewall configuration mistake. Now it works :-)
Thanks Jamie,
for the support with your good will to help!
:-)</description>
		<content:encoded><![CDATA[<p>I found the reason for the problem. It was a tricky router firewall configuration mistake. Now it works <img src='http://weeatbricks.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
Thanks Jamie,<br />
for the support with your good will to help! <img src='http://weeatbricks.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anton</title>
		<link>http://weeatbricks.com/2007/10/31/how-to-use-a-rails-app-with-https/comment-page-1/#comment-214</link>
		<dc:creator>Anton</dc:creator>
		<pubDate>Sat, 05 Jan 2008 21:27:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.weeatbricks.com/2007/10/31/how-to-use-a-rails-app-with-https/#comment-214</guid>
		<description>Hi Jamie,

thanks for your thoughts. I found out that my apache is reachable by xxx.dyndns.com from outside as long I dont use the ssl virtual host of my httpd-ssl. By reconfigurating the apache I discovered that my mongrel server, my rails application and my firewall is not reason for situation.
So it can only be something in the httpd.conf, the httpd-ssl or something with the ssl-certificate.
Unfortuantely I am not a specialist for apache ...
Thanks Jamie, for your suggestions but I will run the application on my homeserver. Thats at least the plan :-)
Anton :-)</description>
		<content:encoded><![CDATA[<p>Hi Jamie,</p>
<p>thanks for your thoughts. I found out that my apache is reachable by xxx.dyndns.com from outside as long I dont use the ssl virtual host of my httpd-ssl. By reconfigurating the apache I discovered that my mongrel server, my rails application and my firewall is not reason for situation.<br />
So it can only be something in the httpd.conf, the httpd-ssl or something with the ssl-certificate.<br />
Unfortuantely I am not a specialist for apache &#8230;<br />
Thanks Jamie, for your suggestions but I will run the application on my homeserver. Thats at least the plan <img src='http://weeatbricks.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
Anton <img src='http://weeatbricks.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie</title>
		<link>http://weeatbricks.com/2007/10/31/how-to-use-a-rails-app-with-https/comment-page-1/#comment-207</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Thu, 03 Jan 2008 17:02:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.weeatbricks.com/2007/10/31/how-to-use-a-rails-app-with-https/#comment-207</guid>
		<description>Hello Anton,
Glad you found it useful.

Regarding your issue.

The above article is geared towards those who want to test there RoR app on their local server that requires https access.
Hence as you have found
&quot;With localhost or the domainname in the hosts-file everything works fine&quot;

It will work from localhost but will not be accessible from the internet.

If you want your app accessible from the internet via your domain name, you would need to set the DNS for that domain to resolve to the IP address of your server vgiven to you by your IP. You&#039;ll really need a static IP address.

However from what you describe you are runninng apache + ruby on rails on a localhost machine. Is this machine your own personal machine or a dedicated server?

If it&#039;s your own personal machine and not a &#039;proper&#039; (for want of a better word) server I&#039;d recommend purchasing ruby on rails enabled hosting package. EG in Ireland, this hosting company call  Blackknight offer a RoR package. http://www.blacknight.ie/ruby-on-rails.0.html

You&#039;ll find plenty of other RoR hosting providers on the web.

They provide the server with Apache + https etc and ruby on rails already set up(or maybe just ruby no certain :-/) and you can load your app onto that server. You&#039;ll need to point the DNS of your IP to this new hosting.

Apologises if I have misunderstood your questions!!

How this helps
:-)
Jamie</description>
		<content:encoded><![CDATA[<p>Hello Anton,<br />
Glad you found it useful.</p>
<p>Regarding your issue.</p>
<p>The above article is geared towards those who want to test there RoR app on their local server that requires https access.<br />
Hence as you have found<br />
&#8220;With localhost or the domainname in the hosts-file everything works fine&#8221;</p>
<p>It will work from localhost but will not be accessible from the internet.</p>
<p>If you want your app accessible from the internet via your domain name, you would need to set the DNS for that domain to resolve to the IP address of your server vgiven to you by your IP. You&#8217;ll really need a static IP address.</p>
<p>However from what you describe you are runninng apache + ruby on rails on a localhost machine. Is this machine your own personal machine or a dedicated server?</p>
<p>If it&#8217;s your own personal machine and not a &#8216;proper&#8217; (for want of a better word) server I&#8217;d recommend purchasing ruby on rails enabled hosting package. EG in Ireland, this hosting company call  Blackknight offer a RoR package. <a href="http://www.blacknight.ie/ruby-on-rails.0.html" rel="nofollow">http://www.blacknight.ie/ruby-on-rails.0.html</a></p>
<p>You&#8217;ll find plenty of other RoR hosting providers on the web.</p>
<p>They provide the server with Apache + https etc and ruby on rails already set up(or maybe just ruby no certain :-/) and you can load your app onto that server. You&#8217;ll need to point the DNS of your IP to this new hosting.</p>
<p>Apologises if I have misunderstood your questions!!</p>
<p>How this helps <img src='http://weeatbricks.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
Jamie</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anton</title>
		<link>http://weeatbricks.com/2007/10/31/how-to-use-a-rails-app-with-https/comment-page-1/#comment-209</link>
		<dc:creator>Anton</dc:creator>
		<pubDate>Sat, 29 Dec 2007 11:58:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.weeatbricks.com/2007/10/31/how-to-use-a-rails-app-with-https/#comment-209</guid>
		<description>I wished I would have seen your website earlier. That would have saved me a lot of time.
My question to you:
Is your https://mydomain.com really reachable from internet?

I tested it with my computer. With localhost or the domainname in the hosts-file everything works fine but not over the internet. I have my domain at dyndns.com
Could that be the reason for the problem?

Your answer is very appreciated :-)</description>
		<content:encoded><![CDATA[<p>I wished I would have seen your website earlier. That would have saved me a lot of time.<br />
My question to you:<br />
Is your <a href="https://mydomain.com" rel="nofollow">https://mydomain.com</a> really reachable from internet?</p>
<p>I tested it with my computer. With localhost or the domainname in the hosts-file everything works fine but not over the internet. I have my domain at dyndns.com<br />
Could that be the reason for the problem?</p>
<p>Your answer is very appreciated <img src='http://weeatbricks.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
