Koozali.org: home of the SME Server

PRoxyPass a directory - help needed

Offline ianhobson

  • **
  • 28
  • +0/-0
PRoxyPass a directory - help needed
« on: August 26, 2007, 06:09:18 PM »
Hi,

I wish to pass requests to a subdirectory on my SME7.2 server/firewall, on to an internal machine.

I added the following two lines to the /etc/httdp/conf/httpd.conf file, within the scope of the <virtualhost 0.0.0.0:80> directive.

    ProxyPass /tiki   http://192.168.0.68/tiki
    ProxyPassReverse /tiki http://192.168.0.68/tiki

And this achieves my goal, but will be lost next time the file is regenerated.

I've tried to set this up from a recent thread about ProxyPass, and the page on the wiki and got nowhere. Their was nothing after the first / in either line in the http.conf file, and errors on the screen from ProxyPass. 

When I tried to use another domain (tiki.ianhobson.co.uk) it lost the ability to respond to its old name, and server-manager stopped working! (I removed the entries in the DB and rebuilt - and all works again now - what a relief).

So what changes exactly do I need to make to the "db domains" and/or templates files?

Thanks for your input.

Ian

Offline raem

  • *
  • 3,972
  • +4/-0
Re: PRoxyPass a directory - help needed
« Reply #1 on: August 27, 2007, 01:36:25 AM »
...

Offline ianhobson

  • **
  • 28
  • +0/-0
Re: PRoxyPass a directory - help needed
« Reply #2 on: August 27, 2007, 01:18:58 PM »
Hi Ray,

That bug report and the entry in the wiki http://wiki.contribs.org/SME_Server:Documentation:FAQ#Proxy_Pass were what I had tried to follow.

Result was near disaster.

The templating system generated

    ProxyPass /
    ProxyPassReverse /

in the right place in httpd.conf. The result was errors all over the screen, and server-manager ceased to respond. I had to carefully remove the variables I had set.

Which is why I asked for help.

Regards

Ian

Offline raem

  • *
  • 3,972
  • +4/-0
Re: PRoxyPass a directory - help needed
« Reply #3 on: August 28, 2007, 04:03:19 AM »
ianhobson

You should tell us exactly what db commands you entered, copy & paste preferably so you don't make any transcribing errors (or inadvertant corrections).
If you open a Putty window you can copy & paste from that.
...