It doesn't require recompiling Aolserver, or anything really that complicated, and lets you share an IP address among multiple servers. You don't even need another instance of Aolserver. Just the main server needs to have OpenACS on it.
The only downside is that you get the port numbers in the address.
Try it with http://rubick.com
You get redirected to http://rubick.com:8002
Here's how it works:
- you have a main server that does the redirects (this has to have OpenACS on it). Let's call this abc.com
- go to /admin/
- set up a package mounted at any old directory. Let's say /redirect
- go to Host-Node Map on the admin page
- set up def.com to go to the /redirect directory
- unmount the application in the redirect directory
- create a /redirect directory under /www/redirect
- inside this directory, put an index.vuh file.
Copy this inside it:
--------------
ad_page_contract {
redirect
@author Jade Rubick
@creation-date 2003-04-24
Helpful .vuh example at
http://www.arsdigita.com/bboard/q-and-a-fetch-msg?msg_id=000JTn
} {
}
set path [ad_conn path_info]
set page_body "http://def.com:8002/$path"
ad_returnredirect $page_body
Substitute your port in for 8002.
Anyone see any security problems with this?