LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   apache httpd.conf https (https://www.linuxquestions.org/questions/linux-software-2/apache-httpd-conf-https-53927/)

Hube 04-07-2003 08:12 PM

apache httpd.conf https
 
Anybody know how I can configure a virtual host to take me to a secure page aka https....

Say I type mail.blah.com, I want it to take me to:

https://mail.blah.com

My virtual host at the moment looks like this:

<VirtualHost *:80>
ServerName mail.blah.com
DocumentRoot /xxx/yyy/zzz/mail
ServerAdmin depp@blah.com
</VirtualHost>

Thanks for any good ideas :)

Hube

matt3333 04-07-2003 08:21 PM

Im not too sure about what ur talking about but if u wanna modify ur conf files u can use webmin i think u can get it at webmin.com sorry if this is not what u mean :confused:

Matt3333

Hube 04-07-2003 08:34 PM

Nah...

I can just edit the httpd.conf file using vi, I'm more interested in what to put in the file. I tried playing around with this using no-ip.org i.e change the target so that a user typing http://mail.blah.com would get routed to https://mail.blah.com (notice the addition of the 's') but for some reason it didn't like that...

Hube

Tinkster 04-07-2003 08:35 PM

Quote:

Anybody know how I can configure a virtual host to take me to a secure page aka https....

Say I type mail.blah.com, I want it to take me to:

https://mail.blah.com
Umm ... I tend to believe that the protocol-
selection is a matter of the browser, mate.

If you want to be "forced" into a secure
connection you'll have to put a link to
the secure page on a normal http-page,
maybe with a invisible, automatic
redirection ... but that, again, is not a
thing of your httpd.conf, but of your
index.html.


Not quite sure what you want, though.

Cheers,
Tink

Hube 04-07-2003 08:39 PM

OK, That's fine, just curious if there was an 'easy' way to do it, I kind of want to enforce that a user can only login using https (ssl), telling users to use mail.blah.com is better than www.blah.com then hit this button (one less step!).

Thanks for helping.

unSpawn 04-07-2003 08:46 PM

Have a look at Apache's mod_rewrite.

Tinkster 04-07-2003 08:48 PM

Quote:

Originally posted by Hube
OK, That's fine, just curious if there was an 'easy' way to do it, I kind of want to enforce that a user can only login using https (ssl), telling users to use mail.blah.com is better than www.blah.com then hit this button (one less step!).

Thanks for helping.

It's easy, really :)

All you need is
index.html
Code:

<head>
<meta http-equiv="refresh" content="0; URL=https://mail.blah.com/index2.html">
</head>


Cheers,
Tink

Hube 04-07-2003 08:52 PM

So many options :D

Thanks, I can crack it from there. I appreciate the quick responses, this is COOL :)


All times are GMT -5. The time now is 07:55 AM.