Hello,
I have a question about the configuration of Apache and Smallwiki to
do some things on my server, and I am hoping that some of you more
experienced web-serving people can help me out...
This is the problem:
- I have one server (lit7.ulb.ac.be)
- There are two DNS aliases for this machine: decomp.ulb.ac.be and
restructuring.ulb.ac.be
- I have two Smallwiki's running on the machine, under two different
ports:
8081 runs the 'FRFC' wiki
8082 runs the deComp wiki
- users can currently access these websites by explicitly appending
the portnumber:
http://decomp.ulb.ac.be:8081/ (or http://
restructuring.ulb.ac.be:8081 )
http://restructuring.ulb.ac.be:8082 (or http://
decomp.ulb.ac.be:8082 )
What I want is to be able to get rid of the port addresses, so that
users can do:
http://decomp.ulb.ac.be --> get the decomp Smallwiki site
http://restructuring.ulb.ac.be --> get the restruturing
Smallwiki site
I think I can accomplish this by configuring my Apache2 in the
following (clumsy) way:
- set up two virtual hosts:
one for decomp.ulb.ac.be that hosts to some other
portnumber, let's say 9092
one for restructuring.ulb.ac.be that hosts to 9091
- set up redirects in the site served on port 9091 to http://
decomp.ulb.ac.be:8081/
- set up redirects in the site served on port 9092 to http://
decomp.ulb.ac.be:8082/
I am pretty sure that this will do the trick, but it will be rather
clumsy, not very efficient (redirects all the time), and the user
will type
http://decomp.ulb.ac.be/, hit Return, and then see the
address bar change to
http://decomp.ulb.ac.be:8081/ . Still, if this
is the only way ...
--
Roel Wuyts