after days and days of fighting back and forth with an apache/fastcgi
environment, i found mongrel and was up and running smoothly in about 10
minutes.
i’m having a hard time with something though. if i set up ProxyPass and
ProxyPassRevers to the root of the site, everything works fine. however
once i try to just use separate directories for all of my apps, none of
the attachments are working when using the helpers: images, css files,
javascript, etc…
to fix this, i’m running each application in it’s own virtual host so
that i can just set it to the root directory of it’s own site, but i’m
wondering if there is a way around this so i can just have my apps
appear to be in separate folders on the same site.
any help would be great.
Hi Josh,
On Thu, 2006-13-07 at 14:28 +0200, Josh K. wrote:
after days and days of fighting back and forth with an apache/fastcgi
environment, i found mongrel and was up and running smoothly in about 10
minutes.
i’m having a hard time with something though. if i set up ProxyPass and
ProxyPassRevers to the root of the site, everything works fine. however
once i try to just use separate directories for all of my apps, none of
the attachments are working when using the helpers: images, css files,
javascript, etc…
You’ll need to use the ProxyHTMLURLMap as well. (It’s a separate apache
2 module which will rewrite the image, stylesheet etc. links when the
page comes back through the proxy).
See this
http://wrath.rubyonrails.org/pipermail/rails/2006-July/052258.html
thread on the mailing list.
Rick
Hey Josh…
On Thu, 2006-07-13 at 14:28 +0200, Josh K. wrote:
after days and days of fighting back and forth with an apache/fastcgi
environment, i found mongrel and was up and running smoothly in about 10
minutes.
i’m having a hard time with something though. if i set up ProxyPass and
ProxyPassRevers to the root of the site, everything works fine. however
once i try to just use separate directories for all of my apps, none of
the attachments are working when using the helpers: images, css files,
javascript, etc…
Yep, there’s a patch I have to apply that will let you set the base
path.
to fix this, i’m running each application in it’s own virtual host so
that i can just set it to the root directory of it’s own site, but i’m
wondering if there is a way around this so i can just have my apps
appear to be in separate folders on the same site.
This is actually the preferred way to do it. Rails likes this way much
better.
Wait for the 0.3.13.4 pre-release, try it out, and then you can use it
when it’s official.
–
Zed A. Shaw
http://mongrel.rubyforge.org/
http://www.railsmachine.com/ – Need Mongrel support?
thank you Zed. i look forward to checking out the next release.
Zed S. wrote:
Hey Josh…
Yep, there’s a patch I have to apply that will let you set the base
path.
Wait for the 0.3.13.4 pre-release, try it out, and then you can use it
when it’s official.