Forum OpenACS Q&A: Re: ns_conn location returning odd location

Posted by Gustaf Neumann on
The short answer is: is there a good reason not using "util_current_location"?

Determining the "location" is complex (the same server might be reached over different domain names and drivers) and depends to a great deal on the virtual hosting setup or whether the server runs behind a reverse proxy.

Make sure, the OpenACS config file uses global modules (in ns/modules, see e.g. [1]). A quick test on shows the right domain name.