LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-07-2003, 08:12 PM   #1
Hube
Member
 
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55

Rep: Reputation: 15
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
 
Old 04-07-2003, 08:21 PM   #2
matt3333
Member
 
Registered: Dec 2002
Location: Winnipeg, Manitoba, Canada
Distribution: Slackware
Posts: 371

Rep: Reputation: 30
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

Matt3333
 
Old 04-07-2003, 08:34 PM   #3
Hube
Member
 
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55

Original Poster
Rep: Reputation: 15
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
 
Old 04-07-2003, 08:35 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,983
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
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
 
Old 04-07-2003, 08:39 PM   #5
Hube
Member
 
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55

Original Poster
Rep: Reputation: 15
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.
 
Old 04-07-2003, 08:46 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,451
Blog Entries: 54

Rep: Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893
Have a look at Apache's mod_rewrite.
 
Old 04-07-2003, 08:48 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,983
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
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

Last edited by Tinkster; 04-07-2003 at 08:50 PM.
 
Old 04-07-2003, 08:52 PM   #8
Hube
Member
 
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55

Original Poster
Rep: Reputation: 15
So many options

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't access https after including "SSLVerifyClient require 1" in httpd.conf javiergt Linux - Security 6 01-16-2014 02:22 PM
apache httpd.conf ilnli Linux - Software 9 01-11-2005 06:58 AM
Apache httpd.conf help BoardinBum Linux - Software 4 12-29-2004 12:59 PM
httpd chokes on ScriptAlias line in Apache httpd.conf lhoff Linux - Software 1 07-14-2003 10:32 PM
apache httpd.conf plisken Linux - Software 1 02-01-2003 02:01 PM


All times are GMT -5. The time now is 02:18 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration