Forum OpenACS Q&A: Re: aolserver ip and hosts file settings for home dsl server behind a router

In addition, make sure you have the following in your nssock section:

# If you want your web domain name to be www.example.com
# set up the following in you nsd.tcl file:
# ns_section "ns/server/${servername}/module/nssock"
# ns_param        port     8000 ;# private port
# ns_param        hostname www.example.com ;# external hostname
# ns_param        address  192.168.1.2 ;# Actual private ip
# ns_param        location http://www.example.com 
# The location parameter is essential for automatic redirects and for proper
# use of [ns_conn location], otherwise redirect would go to 
# http://www.example.com:8000
#