Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-23-2006, 01:28 PM
|
#1
|
Member
Registered: Aug 2006
Location: Mississauga, Ontario, Canada
Distribution: RHEL 5, CentOS 5
Posts: 64
Rep:
|
Force ssl in squirrelmail
Hi,
I have my squirrelmail up and running and my ssl certs installed and working for my site. I am using apache as my webserver. But here is what I want:
when someone types in http://domain.com/mail they get redirected to https://domain.com/mail
I am trying to figure out the mod_rewrite command in apache but just cannot figure it out.
Thanks in advance,
Steve
|
|
|
08-23-2006, 04:39 PM
|
#2
|
LQ Newbie
Registered: Jun 2004
Location: Germany
Distribution: Various Ubuntu LTS
Posts: 22
Rep:
|
|
|
|
08-23-2006, 04:53 PM
|
#3
|
Member
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Rep:
|
I've done that. You need to add three virtual hosts in Apache's httpd.conf file; one for www.domain.com, one for webmail.domain.com:80 and anotherone for webmail.domain.com:443. When they try http://webmail.domain.com it will redirect it to https://webmail.domain.com. You can do it with Apache's Redirect command. Make sure that your certs contain the name of the page or it'll prompt about it every time.
|
|
|
08-23-2006, 09:27 PM
|
#4
|
Member
Registered: Aug 2006
Location: Mississauga, Ontario, Canada
Distribution: RHEL 5, CentOS 5
Posts: 64
Original Poster
Rep:
|
it worked thanks
It worked, thanks guys
|
|
|
All times are GMT -5. The time now is 02:34 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|