virtual hosts in apache
does anyone know how to divert traffic to a different server/port on apache?
cos i want to divert webmail to the https:// address... by putting /mail at the end of my dns
EDIT: i tried the instructions on apahce's site and it didnt work
cos i want to divert webmail to the https:// address... by putting /mail at the end of my dns
EDIT: i tried the instructions on apahce's site and it didnt work
hhtpd.conf wrote:
Comments
as far as i know you cannot do virtual hosts with dyndns or no-ip domains
so say you have www.bod.uni.cc
and u have your mail in bod.uni.cc/mail
that should be mail.bod.uni.cc
ok for https you need openssl and modssl installed, and u need a certificate (just generate your own).
you also gotta do some config for the ssl too, and i dunno how to do that.
Say you have a HTTPD based email that uses it's own HTTPD that runs on port 3000. Your standard HTTPD for your website uses port 80. You can just make a link that will redirect it to the mail server though Apache.
Like so.
Redirect /mail http://www.domain.com:3000
Just add it to the buttom of the HTTPD.CONF file.
This way instead of having peole typing in http://www.domain.com:3000 they can just put in http://www.domain.com/mail
=================================================
I think you can do the same thing your're trying but with the localhost address and the port number. That's if you have Apache set to listen on all IPs.
Bad explanation, but you get the point.