LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 04-11-2008, 04:13 PM   #1
therapeias
LQ Newbie
 
Registered: Apr 2008
Posts: 8

Rep: Reputation: 0
Allow only ssl, https:// not http:// on apache2 webserver, Linux


I'm new to posting, will try to be brief. Apache has been configured on Linux, certs are working, relatively simple implementation for 1 website. System uses httpd.conf file for port 80 reference, httpd-ssl.conf file for ssl, namely port 443. Have been surfing, have found many references to include "RedirectPermanent / https://my.server.net/" within the httpd.conf file, but this doesn't work (still can access the site with both http:// and https://). Any help would be appreciated, thanks!
 
Old 04-11-2008, 05:03 PM   #2
p_s_shah
Member
 
Registered: Mar 2005
Location: India
Distribution: RHEL 3/4, Solaris 8/9/10, Fedora 4/8, Redhat Linux 9
Posts: 228
Blog Entries: 1

Rep: Reputation: 34
May be you should try this :

Link : http://www.cyberciti.biz/tips/howto-...nnections.html
Quote:
.htaccess File :
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Make sure you have something as follows in httpd.conf (mod_rewrite support):
LoadModule rewrite_module modules/mod_rewrite.so
 
  


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
Apache2 > single sign-on on both http and https server cbonar Linux - Server 11 11-03-2008 11:58 AM
Apache2 rewrite http to https gabsik Linux - Networking 3 10-26-2006 01:18 PM
redirect SquirrelMail from http to https using Apache2 cccc Linux - Server 3 09-23-2006 11:02 AM
Setting up secure apache2 webserver https access on suse linux 9.2 svanati Suse/Novell 4 12-21-2004 09:07 PM
Apache2, SSL, HTTPS... KneeLess Debian 3 09-02-2004 10:44 PM


All times are GMT -5. The time now is 04:09 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration