List Info

Thread: mod_proxy and subdomains..




mod_proxy and subdomains..
user name
2006-08-17 14:02:46
hi, everyone..

i am trying to set up an app like so:

www.domain.com -> points to main php application..

subdomain.domain.com -> proxies to www.domain.com:8000
<- this is 
running on mongrel..

i just cannot figure out how to phrase this in my
httpd.conf...

does anyone have any ideas?

thanks!

-- 
Posted via http://www.ruby-forum.com
/.
_______________________________________________
Rails mailing list
Railslists.rubyonrails.org
h
ttp://lists.rubyonrails.org/mailman/listinfo/rails
mod_proxy and subdomains..
user name
2006-08-17 14:11:46
hi sergio!

Sergio Ruiz [17.08.2006 16:02]:
> i am trying to set up an app like so:
> 
> www.domain.com -> points to main php application..
> 
> subdomain.domain.com -> proxies to
www.domain.com:8000 <- this is
>  running on mongrel..
> 
> i just cannot figure out how to phrase this in my
httpd.conf...
what about this? (works perfectly good for me in a similar
setup)

----snip----

<VirtualHost *>
        ServerName subdomain.domain.com

        ProxyRequests Off  # is the default anyway...

        <Proxy *>
                Order allow,deny
                Allow from all
        </Proxy>

        ProxyPass        / http://www.domain.com:800
0/
        ProxyPassReverse / http://www.domain.com:800
0/

        # other virtual host stuff...

</VirtualHost>

----snip----

hth
jens

-- 
Jens Wille, Dipl.-Bibl. (FH)
prometheus - Das verteilte digitale Bildarchiv für
Forschung & Lehre
An St. Laurentius 4, 50931 Köln
Tel.: +49 (0)221 470-6668, E-Mail: jens.willeuni-koeln.de
http://www.prome
theus-bildarchiv.de/
_______________________________________________
Rails mailing list
Railslists.rubyonrails.org
h
ttp://lists.rubyonrails.org/mailman/listinfo/rails
mod_proxy and subdomains..
user name
2006-08-17 14:45:52
> 
> <VirtualHost *>
>         ServerName subdomain.domain.com

ah!

very good... i did not think to write a separate entry for
the 
subdomain..

i will try that..

thanks!

-- 
Posted via http://www.ruby-forum.com
/.
_______________________________________________
Rails mailing list
Railslists.rubyonrails.org
h
ttp://lists.rubyonrails.org/mailman/listinfo/rails
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )