Forum Moderators: phranque

Message Too Old, No Replies

mod_proxy.. Dont work..

mod_proxy

         

jonsjo

12:49 pm on Mar 17, 2005 (gmt 0)



Hello everybody..

Got this small problem with a mod_proxy directive on one of my webserver.. (I whant my server that catches the subdomain.mydomain.com to proxy it to another computer (192.168.1.40 lying inside my NAT)...

Im running debian with apache2 ...

here is my /etc/apache2/mods-enabled/proxy.conf:

<IfModule mod_proxy.c>

ProxyRequests off
ProxyPass /app1/ [192.168.1.40...]
ProxyPass subdomain.mydomain.com [192.168.1.40...]

<Location /app1/>
ProxyPassReverse /
SetOutputFilter proxy-html
</Location>

<Location subdomain.mydomain.com >
ProxyPassReverse /
SetOutputFilter proxy-html
</Location>

</IfModule>

When this is done i can browse to my public ip and with the /app1/ and i come to that server..
but not to my subdomain.mydomain.com
Does anyone know what I have done wrong..?
Thankful for help,
-- Jon

sitz

2:58 am on Mar 25, 2005 (gmt 0)

10+ Year Member



I'm a little confused by your syntax here; can you step me through what you expect each section to do?