[Mongrel] Links go to 'localhost'

Vapor .. lists at ruby-forum.com
Wed Nov 7 12:25:07 EST 2007


here it is...

=======
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>

Alias /myapp "c:/rails/myapp/public"
Alias /images "c:/rails/myapp/public/images"
Alias /stylesheets "c:/rails/myapp/public/stylesheets"
Alias /javascripts "c:/rails/myapp/public/javascripts"
<Directory "c:/rails/myapp/public">
Options Indexes FollowSymLinks
AllowOverride none
Order allow,deny
Allow from all
</Directory>

ProxyPass /images !
ProxyPass /stylesheets !
ProxyPass /javascripts !
ProxyPass /myapp/ http://127.0.0.1:4000/
ProxyPass /myapp http://127.0.0.1:4000/
ProxyPassReverse /myapp/ http://127.0.0.1:4000/
ProxyPassReverse /myapp http://127.0.0.1:4000/
=======

And there's following like in Apache's httpd.conf

Include conf/httpd-webrick-proxy.conf
-- 
Posted via http://www.ruby-forum.com/.


More information about the Mongrel-users mailing list