I've been able to run slash on alternate ports with a great deal of success
in testing environments. I have used basically the same setup you have,=20
redirecting requests on port 80 to the alternate port within a vhost.
Ideally, you want Apache to redirect the first request to port 80 and have =
site make sure it doesn't generate any URLs that aren't referencing the=20
alternate port. The key within Slash is to make sure you update some=20
variables. The vars "basedomain", "imagedir" and "rootdir" need to include=
your alternate port for the generated pages to work properly. =20
For instance, if I had a Slash site running on "test.kill-hup.com" on port
8002, I'd set the above vars to:
basedomain -> test.kill-hup.com:8002
imagedir -> //test.kill-hup.com:8002/images
rootdir -> //test.kill-hup.com:8002
This config really comes in hand if you have multiple webservers NAT'ed beh=
a gateway (like a RoadRunner connection at home) and want to reach them fro=
outside with port forwarding. Obviously, they can't all use port 80 ;)
On Fri, Feb 28, 2003 at 06:24:09PM +1100, Matt McLeod wrote:
> I've got a slightly weird setup -- running slash 2.2.6 with Apache=20
> listening on a non-standard port (8002), and another Apache listening=20
> on 80 and doing redirects to the Apache on 8002.
> (This is to allow us to run a bunch of different web servers/content=20
> engines/whatever with just the one IP address allocated to them all.)
> So far most things seem to be working, but when one clicks "preview" or=
> "submit" from the "post comments" form what I presume is the discussion=
> index (list of existing discussions, form to create a new discussion)=20
> is returned.
> I'm not seeing any obviously-missed URLs in the access or error logs,=20
> so I'm not sure if this is a problem with my slash installation or=20
> something created by the port-redirection trickery.
> And while I'm on it -- is there some way to get Slash to either use=20
> relative URLs throughout or to append the port number? I imagine that=20
> performance might become an issue if every page view has to go through=20
> the redirection process...
Scott M. Sorrentino <scott@...>
Kill-HUP.com: What those evil hackers don't want you to know...
8:42am up 40 days, 17:00, 2 users, load average: 0.02, 0.04, 0.00