Forum OpenACS Development: Response to ns_returnredirect and virtual hosts: (minor) problems with bootstrap code

The problem is not with ns_returnredirect. You need to add the location parameter to your config file. I think ns_returnredirect actually does construct a full url and I never understood aD's fix.

ns_section "ns/server/${servername}/module/nssock"
ns_param  port      8000              ;# Actualprivate port 
ns_param  hostname  www.mydomain.com  ;# Internet Hostname
ns_param  address   192.168.1.2       ;# Actual private ip
ns_param  location  http://www.mydomain.com ;#Protocol://Hostname

Slightly more info on running AOLserver behind a proxy can be found in my tclvhr module at http://zmbh.com/discussion/tclvhr/tclvhr.txt.