virtual hosts in apache

BODBOD
edited September 2004 in Software
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
hhtpd.conf wrote:
<VirtualHost *>
ServerName https://bod.no-ip.org
DocumentRoot /www/webmail
</virtualhost *>

Comments

  • you cannot use a virtual host to refer to https:// it will just go over https when its a secure doc.

    as far as i know you cannot do virtual hosts with dyndns or no-ip domains
  • damn! oh well thanks topher....
  • www.uni.cc domains make virtual hosts out of top level directories

    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
  • i got that bit working, but its the https:// thats the problem
  • BOD wrote:
    i got that bit working, but its the https:// thats the problem

    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.
  • i can access it if i got to https;//bod,no-ip.org etc.... but its diverting it...
  • in uni.cc, you can port foward if that helps
  • You can redirect it. As long as it's on the same system or local network you can redirect it. Heres a example.

    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.
  • actually it doesnt matter much now as i put SME back on which does it by deafault
  • You can use specific vhosts coming in only on https:// by doing <VirtualHost *:443>, and using <VirtualHost *:80> for vhosts on regular http://

    Bad explanation, but you get the point.
Sign In or Register to comment.