LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 03: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, 04: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: 237
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



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 10:58 AM
Apache2 rewrite http to https gabsik Linux - Networking 3 10-26-2006 12:18 PM
redirect SquirrelMail from http to https using Apache2 cccc Linux - Server 3 09-23-2006 10:02 AM
Setting up secure apache2 webserver https access on suse linux 9.2 svanati SUSE / openSUSE 4 12-21-2004 08:07 PM
Apache2, SSL, HTTPS... KneeLess Debian 3 09-02-2004 09:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:52 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
Open Source Consulting | Domain Registration