Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 15th, 2001, 12:26 PM
Eric Anderson Eric Anderson is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 11 Eric Anderson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Turning HTTP calls into HTTPS connections??

How do I redirect an HTTP call on a page to an HTTPS connection?

Right now, a user can establish a connection on my web page through either port 80 or port 443. So:

http://www.something.com/dir/

and

https://www.something.com/dir/

both work.

What I want is when a client looks for http://www.something.com/dir/ they get redirected to https://www.something.com/dir/

I tried:

Redirect /dir https://www.something.com/dir

But that didn't work.

Any help would be mucho appreciated.

thanks,
e

Reply With Quote
  #2  
Old August 16th, 2001, 07:38 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Do you want just /dir or the entire site? If just /dir, how many dir?

Reply With Quote
  #3  
Old August 16th, 2001, 10:15 AM
Eric Anderson Eric Anderson is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 11 Eric Anderson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Just /dir and any files within that directory.

thanks,
e

Reply With Quote
  #4  
Old August 16th, 2001, 06:52 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Put the following within your port 80's www.something.com <VirtualHost>.
For example:

NameVirtualHost *

<VirtualHost *>
DocumentRoot "/www/htdocs"
ServerName www.something.com
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/dir(.*)
RewriteRule ^/icons/(.+) - [PT,L]
RewriteRule ^/dir(.*) https://www.something.com/dir$1 [R,L]
</VirtualHost>
<VirtualHost *>
...
another domain here
...
</VirtualHost>
<VirtualHost _default_:443>
...
...
</VirtualHost>

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Turning HTTP calls into HTTPS connections??


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT