<?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: Using Apache Virtual Hosts and ProxyPass Together</title>
	<atom:link href="http://www.kallasoft.com/using-apache-virtual-hosts-and-proxypass-together/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kallasoft.com/using-apache-virtual-hosts-and-proxypass-together/</link>
	<description>Commercial-Friendly Open Source Software Development</description>
	<lastBuildDate>Fri, 05 Mar 2010 13:52:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: What is kallasoft.com? &#124; kallasoft</title>
		<link>http://www.kallasoft.com/using-apache-virtual-hosts-and-proxypass-together/comment-page-1/#comment-2493</link>
		<dc:creator>What is kallasoft.com? &#124; kallasoft</dc:creator>
		<pubDate>Tue, 09 Feb 2010 08:41:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.kallasoft.com/?p=44#comment-2493</guid>
		<description>[...] is a programming/linux/tech blog with tips and tricks that programmers and server admins might find handy as well as the home for some of my [...]</description>
		<content:encoded><![CDATA[<p>[...] is a programming/linux/tech blog with tips and tricks that programmers and server admins might find handy as well as the home for some of my [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Riyad Kalla</title>
		<link>http://www.kallasoft.com/using-apache-virtual-hosts-and-proxypass-together/comment-page-1/#comment-2426</link>
		<dc:creator>Riyad Kalla</dc:creator>
		<pubDate>Fri, 22 Jan 2010 14:54:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.kallasoft.com/?p=44#comment-2426</guid>
		<description>G. Gibson, sorry to hear it didn&#039;t work -- maybe I missed something in there that was unique to your setup. Thanks for posting your own settings though incase others run into it!

What was happening when you used the other settings? Forwards just not working right?</description>
		<content:encoded><![CDATA[<p>G. Gibson, sorry to hear it didn&#8217;t work &#8212; maybe I missed something in there that was unique to your setup. Thanks for posting your own settings though incase others run into it!</p>
<p>What was happening when you used the other settings? Forwards just not working right?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: G. Gibson</title>
		<link>http://www.kallasoft.com/using-apache-virtual-hosts-and-proxypass-together/comment-page-1/#comment-2262</link>
		<dc:creator>G. Gibson</dc:creator>
		<pubDate>Tue, 29 Dec 2009 18:40:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.kallasoft.com/?p=44#comment-2262</guid>
		<description>Hrm, none of that worked for me - but this did:


	RewriteEngine on
	# Tomcat rewrite rule - as route
	RewriteCond %{REQUEST_URI} /tomcatAppName*
	RewriteRule ^(/.*)$ http://localhost:8080$1 [P]
	ProxyPassReverse / http://localhost:8080/

	# Rails Server
	ServerName myFunkyServer.myDomain.net
	ServerAlias www.myFunkyServer.myDomain.net
	DocumentRoot /path/to/railsapp/public
	ServerAdmin admin@myDomain.net
	LogLevel warn
	ErrorLog /path/to/railsapp/logs/error.log
	CustomLog /path/to/railsapp/logs/access.log combined
	
		Options Indexes FollowSymLinks
		AllowOverride None
		Order allow,deny
		allow from all
	
</description>
		<content:encoded><![CDATA[<p>Hrm, none of that worked for me &#8211; but this did:</p>
<p>	RewriteEngine on<br />
	# Tomcat rewrite rule &#8211; as route<br />
	RewriteCond %{REQUEST_URI} /tomcatAppName*<br />
	RewriteRule ^(/.*)$ <a href="http://localhost:8080$1" rel="nofollow">http://localhost:8080$1</a> [P]<br />
	ProxyPassReverse / <a href="http://localhost:8080/" rel="nofollow">http://localhost:8080/</a></p>
<p>	# Rails Server<br />
	ServerName myFunkyServer.myDomain.net<br />
	ServerAlias <a href="http://www.myFunkyServer.myDomain.net" rel="nofollow">http://www.myFunkyServer.myDomain.net</a><br />
	DocumentRoot /path/to/railsapp/public<br />
	ServerAdmin <a href="mailto:admin@myDomain.net">admin@myDomain.net</a><br />
	LogLevel warn<br />
	ErrorLog /path/to/railsapp/logs/error.log<br />
	CustomLog /path/to/railsapp/logs/access.log combined</p>
<p>		Options Indexes FollowSymLinks<br />
		AllowOverride None<br />
		Order allow,deny<br />
		allow from all</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sadfasdf</title>
		<link>http://www.kallasoft.com/using-apache-virtual-hosts-and-proxypass-together/comment-page-1/#comment-1081</link>
		<dc:creator>sadfasdf</dc:creator>
		<pubDate>Mon, 29 Jun 2009 15:21:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.kallasoft.com/?p=44#comment-1081</guid>
		<description>try:

ServerAdmin john@doe.com
ServerName .com
ProxyPass /foo/ http://somewhere-else... [L]
ProxyPassReverse /foo/ http://somewhere-else...[L]
ProxyPass / http://somewhere...
ProxyPassReverse / http://somewhere...</description>
		<content:encoded><![CDATA[<p>try:</p>
<p>ServerAdmin <a href="mailto:john@doe.com">john@doe.com</a><br />
ServerName .com<br />
ProxyPass /foo/ <a href="http://somewhere-else.." rel="nofollow">http://somewhere-else..</a>. [L]<br />
ProxyPassReverse /foo/ <a href="http://somewhere-else...L" rel="nofollow">http://somewhere-else&#8230;L</a><br />
ProxyPass / <a href="http://somewhere.." rel="nofollow">http://somewhere..</a>.<br />
ProxyPassReverse / <a href="http://somewhere.." rel="nofollow">http://somewhere..</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Giovanni</title>
		<link>http://www.kallasoft.com/using-apache-virtual-hosts-and-proxypass-together/comment-page-1/#comment-994</link>
		<dc:creator>Giovanni</dc:creator>
		<pubDate>Wed, 10 Jun 2009 15:13:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.kallasoft.com/?p=44#comment-994</guid>
		<description>hi ryhad... i thank you very much for your post. I need something more.. i need to do something like this:


    ServerAdmin john@doe.com
    ServerName .com
    ProxyPass / http://somewhere...
    ProxyPassReverse  / http://somewhere...
    ProxyPass  /foo/ http://somewhere-else...
    ProxyPassReverse  /foo/ http://somewhere-else...


how could i do??? it seems not to work ( / requests &quot;override&quot; /foo/ requests)

thank you in advance!</description>
		<content:encoded><![CDATA[<p>hi ryhad&#8230; i thank you very much for your post. I need something more.. i need to do something like this:</p>
<p>    ServerAdmin <a href="mailto:john@doe.com">john@doe.com</a><br />
    ServerName .com<br />
    ProxyPass / <a href="http://somewhere.." rel="nofollow">http://somewhere..</a>.<br />
    ProxyPassReverse  / <a href="http://somewhere.." rel="nofollow">http://somewhere..</a>.<br />
    ProxyPass  /foo/ <a href="http://somewhere-else.." rel="nofollow">http://somewhere-else..</a>.<br />
    ProxyPassReverse  /foo/ <a href="http://somewhere-else.." rel="nofollow">http://somewhere-else..</a>.</p>
<p>how could i do??? it seems not to work ( / requests &#8220;override&#8221; /foo/ requests)</p>
<p>thank you in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Milo Felipe</title>
		<link>http://www.kallasoft.com/using-apache-virtual-hosts-and-proxypass-together/comment-page-1/#comment-978</link>
		<dc:creator>Milo Felipe</dc:creator>
		<pubDate>Mon, 01 Jun 2009 06:14:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.kallasoft.com/?p=44#comment-978</guid>
		<description>I solved my problem by deploying my webapps to the root context &quot;/&quot; of the web container. Then I configured the webapps to have Virtual Hosts. I&#039;m using Jetty, but I&#039;ve also tested in on Tomcat. On Apache, I configured it to use:

ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/

I did not indicate any webapp context root in the URLs. Basically, Apache will forward all requests to the URL. It will be the job of the web container to figure out which webapp it will forward the request to.</description>
		<content:encoded><![CDATA[<p>I solved my problem by deploying my webapps to the root context &#8220;/&#8221; of the web container. Then I configured the webapps to have Virtual Hosts. I&#8217;m using Jetty, but I&#8217;ve also tested in on Tomcat. On Apache, I configured it to use:</p>
<p>ProxyPass / <a href="http://localhost:8080/" rel="nofollow">http://localhost:8080/</a><br />
ProxyPassReverse / <a href="http://localhost:8080/" rel="nofollow">http://localhost:8080/</a></p>
<p>I did not indicate any webapp context root in the URLs. Basically, Apache will forward all requests to the URL. It will be the job of the web container to figure out which webapp it will forward the request to.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Riyad Kalla</title>
		<link>http://www.kallasoft.com/using-apache-virtual-hosts-and-proxypass-together/comment-page-1/#comment-975</link>
		<dc:creator>Riyad Kalla</dc:creator>
		<pubDate>Sat, 30 May 2009 15:34:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.kallasoft.com/?p=44#comment-975</guid>
		<description>Milo,

Double check that the links aren&#039;t being generated with something like &lt;%= request.getContextRoot() %&gt; + &lt;taglib&gt; because that would be easy to correct.

If that&#039;s not the case I think what you&#039;ll need is some url rewrite rules for paths starting with /webcontext/... to just /...</description>
		<content:encoded><![CDATA[<p>Milo,</p>
<p>Double check that the links aren&#8217;t being generated with something like < %= request.getContextRoot() %> + <taglib> because that would be easy to correct.</p>
<p>If that&#8217;s not the case I think what you&#8217;ll need is some url rewrite rules for paths starting with /webcontext/&#8230; to just /&#8230;</taglib></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Milo Felipe</title>
		<link>http://www.kallasoft.com/using-apache-virtual-hosts-and-proxypass-together/comment-page-1/#comment-972</link>
		<dc:creator>Milo Felipe</dc:creator>
		<pubDate>Fri, 29 May 2009 12:49:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.kallasoft.com/?p=44#comment-972</guid>
		<description>This works for me. But my only problem is some urls in my application still use the webapp context and not &quot;/&quot;. Most of this URL&#039;s where generated by  tags. Any idea how to solve this? Thanks!</description>
		<content:encoded><![CDATA[<p>This works for me. But my only problem is some urls in my application still use the webapp context and not &#8220;/&#8221;. Most of this URL&#8217;s where generated by  tags. Any idea how to solve this? Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rex jolley</title>
		<link>http://www.kallasoft.com/using-apache-virtual-hosts-and-proxypass-together/comment-page-1/#comment-687</link>
		<dc:creator>rex jolley</dc:creator>
		<pubDate>Sat, 28 Feb 2009 21:41:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.kallasoft.com/?p=44#comment-687</guid>
		<description>Mike, proxypass works fine with sessions in tomcat, but you have use the ajp connector.  You can set the ajp port in your tomcat server.xml file and here is how you connect to it in your apache configuration:

ProxyPass / ajp://localhost:/
ProxyPassReverse / ajp://localhost:/

Hope this helps, the article helped me accomplish the rest of what I needed.  Huge thanks!</description>
		<content:encoded><![CDATA[<p>Mike, proxypass works fine with sessions in tomcat, but you have use the ajp connector.  You can set the ajp port in your tomcat server.xml file and here is how you connect to it in your apache configuration:</p>
<p>ProxyPass / ajp://localhost:/<br />
ProxyPassReverse / ajp://localhost:/</p>
<p>Hope this helps, the article helped me accomplish the rest of what I needed.  Huge thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Recent Links Tagged With "virtualhost" - JabberTags</title>
		<link>http://www.kallasoft.com/using-apache-virtual-hosts-and-proxypass-together/comment-page-1/#comment-183</link>
		<dc:creator>Recent Links Tagged With "virtualhost" - JabberTags</dc:creator>
		<pubDate>Mon, 29 Sep 2008 08:16:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.kallasoft.com/?p=44#comment-183</guid>
		<description>[...]   Note to self: Phusion Passenger and PassengerMaxPoolSize Saved by pithcell on Sat 27-9-2008   Using Apache Virtual Hosts and ProxyPass Together Saved by sawing14s on Sat 27-9-2008   apache2 mod-jk Saved by hsmLove on Fri 26-9-2008   Setting [...]</description>
		<content:encoded><![CDATA[<p>[...]   Note to self: Phusion Passenger and PassengerMaxPoolSize Saved by pithcell on Sat 27-9-2008   Using Apache Virtual Hosts and ProxyPass Together Saved by sawing14s on Sat 27-9-2008   apache2 mod-jk Saved by hsmLove on Fri 26-9-2008   Setting [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MIke Boland</title>
		<link>http://www.kallasoft.com/using-apache-virtual-hosts-and-proxypass-together/comment-page-1/#comment-80</link>
		<dc:creator>MIke Boland</dc:creator>
		<pubDate>Mon, 15 Sep 2008 10:59:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.kallasoft.com/?p=44#comment-80</guid>
		<description>this is fine for sites with no session state - i have this fie on a site with no security as oon as i added spring security it does not work.  the proxy needs to go to the same contexts as the war file</description>
		<content:encoded><![CDATA[<p>this is fine for sites with no session state &#8211; i have this fie on a site with no security as oon as i added spring security it does not work.  the proxy needs to go to the same contexts as the war file</p>
]]></content:encoded>
	</item>
</channel>
</rss>
