LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-08-2003, 03:30 AM   #1
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
apache, url play


i'd like to do this:

a user is at home and she wants to check her email on my webserver.
because she doesnt know about https, she simply types:

http://domain.com/mail

how do i take that and make it automatically point to:

https://domain.com/mail

also if possible i want http://domain.com/mail to not be a possibility
i want all users forced to log in securely.

the way it works on server that does this is....

if you type http://webmail.mail.gatech.edu
it sends you to
https://webmail.mail.gatech.edu/horde/imp/login.php

i'd like the same functionality....http://path being changed to https://path
automatically.


Thanks

Last edited by Robert0380; 06-08-2003 at 03:32 AM.
 
Old 06-08-2003, 08:20 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548
Have a look at Apache's docs. Look for the redirect directive (mod_alias).
 
Old 06-08-2003, 10:04 AM   #3
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
Or you could make a Rewriterule in your httpd.conf
 
Old 06-08-2003, 02:41 PM   #4
sopiaz57
Member
 
Registered: Apr 2003
Distribution: RH 8
Posts: 246

Rep: Reputation: 30
hey this is a useful thread. Let me know how u make out, i think the best way is to to make an alias in httpd.conf. However, another option would to throw a javascript redirect in your http://site

I would say thats a good thing to do while you figure out apache.
 
Old 06-08-2003, 02:46 PM   #5
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Original Poster
Rep: Reputation: 47
well, alias doesnt deal with URLS, the part where i did /mail is itself
an alias , it expands to /horde/imp/ and i dont think re-write will do it either.

i think i'll just have to go with a redirect.


edit:

well, now there is another issue, its all php code and i dont know php.
guess i'll have to figure sumthin out....maybe i can put in a .html file
and put in the meta tag for redirecting.

Last edited by Robert0380; 06-08-2003 at 02:57 PM.
 
Old 06-08-2003, 03:04 PM   #6
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Original Poster
Rep: Reputation: 47
yea, that worked...did a simple page re-direct with javascript:

Code:

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
window.location="http://www.yourdomain.com/";
// End -->
</script>
<noscript>



now i guess i'll run into the problem of what if they dont have a javascript enabled browser, guess i have to put in a link and some text that says something like:

Your browser sucks, click here

lol...that's not a link by the way, i just made it blue and underlined it.

Last edited by Robert0380; 06-08-2003 at 03:09 PM.
 
  


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
apache and url help cambie Linux - Software 1 08-11-2005 09:49 AM
How do i in XMMS play other formats than mp3 in url? Schopenhauer101 Linux - Software 3 02-01-2005 04:25 PM
Apache and non-existing URL Mn3moniC Linux - Networking 0 07-06-2004 02:00 PM
xmms won't play the url mohapi Fedora 5 06-05-2004 07:23 AM
Apache Url simquest Linux - Software 2 11-26-2002 04:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:20 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration