Forum OpenACS Development: Host-Node Map

Request notifications

Collapse
Posted by Iuri Sampaio on
Hi there,

How would I create such a alias as in

http://sub.domain.com where it point to domain.com/subsite

I've tried to use Host-Node Map

I found /admin/host-node-map/index on OACS admin section. Visually it seems to be a solution but I didn't get the result that I expected when I created the following hostname/url pair

atis.iurix.com 342694 /uzeda/

The goal is to allow the user to access iurix.com/uzeda through atis.iurix.com

I'm aware nginx is a solution. I want to know if there's one on the application level i.e. OpenACS

Best wishes

Collapse
2: Re: Host-Node Map (response to 1)
Posted by Benjamin Brink on
Hi Iuri,

iirc, the server must be restarted for the mapping to take effect.

host-node-map is working locally with different domains; I also recently had a subdomain set up and working as you describe --but closed it; so it's no longer available to show example.

cheers,
Benjamin

Collapse
3: Re: Host-Node Map (response to 2)
Posted by Iuri Sampaio on
Hi Ben,
I restarted Naviserver but the redirection is broken. It still doesn't work. The subdomain is present in the address bar, but the page, which displays is Mainsite default page ( i.e. acs-subsite/www/index).

I'm a using a proxy in front of Naviserver, and I wonder if NGINX could affect it somehow.

How could I track this error down to its root cause?

In parallel, It seems Host-Node map feature isn't completely developed. I found this old thread

https://openacs.org/forums/message-view?message_id=187226#msg_494834

Collapse
4: Re: Host-Node Map (response to 3)
Posted by Gustaf Neumann on
I would recommend to first try without nginx. The basic setup works - at least with recent versions of OpenACS. The following machines are setup as a single NaviServer + OpenACS with the hostnode mapping activated:
  • http://nm.wu.ac.at/
  • http;//iops.wu.ac.at/
  • http://dlux.wu.ac.at/
  • http://dada.wu.ac.at/