Forum OpenACS Q&A: Port forwarding issue in bboard

Collapse
Posted by Dave Manginelli on
I recently set up OACS 4.5 behind a firewall which forwards the
external port 80 to a "non-standard" port on my OACS box.  The setup
functions perfectly except that the bboard "reply to" e-mail address
picks up the (internal) port number from [ad_conn location], which is
inappropriate behavior for my setup.

I've solved the problem by regsubbing out the port # but I'm afraid
this will bite me in other modules too.  Is there a better way to do
this that I should look into???

Collapse
Posted by Rich Graves on
Well, if you do your regsub (or string map) in ad_conn (or more likely rp_handler_preauth), you probably don't need to worry about other modules.

I don't know enough about 4.5 to know if telling ad_conn(url) to lie will break anything else.

Collapse
Posted by Dave Manginelli on
Thanks Rich.

I was a little paranoid about modifying ad_conn but you are correct in that it would provide the most "comprehensive" solution.

Collapse
Posted by Jeff Davis on
setting ad_conn url breaks ns_returnnotfound and several related
routines so I suggest you not do it.

I just half fixed a bug related to this although if you use hostname based subsites you will still have problems.
(see https://openacs.org/sdm/one-baf.tcl?baf_id=1586 for the details).