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 11-23-2005, 07:33 PM   #1
wwnexc
Member
 
Registered: Sep 2005
Location: California
Distribution: Slackware & Debian
Posts: 264

Rep: Reputation: 30
Lightbulb apache: ssl only for specific pages


Hi,

I was wondering how i can get apache to only serve one page (or multiple sites in one folder) with certificate validation. The rest of the site shouldn't be "certified".

Thanks!
 
Old 11-23-2005, 08:05 PM   #2
twsnnva
Member
 
Registered: Oct 2003
Location: Newport News, Va
Distribution: Debian
Posts: 246

Rep: Reputation: 30
I don't know how to to this with a single file...I've never really had a need to. However to secure a single directory is easy. First you need to configure apache to listen for http:// and https://. Then, in the directory that you would like to use ssl, create a .htaccess file and use a RewriteRule.

.htaccess
-----------------------------------------------------------
RewriteEngine On
RewriteCond %{SERVER_PORT} !443
RewriteRule (.*) https://www.yoursite.com/ [R]
-----------------------------------------------------------
 
Old 11-23-2005, 08:29 PM   #3
wwnexc
Member
 
Registered: Sep 2005
Location: California
Distribution: Slackware & Debian
Posts: 264

Original Poster
Rep: Reputation: 30
Is there any way to get it to work for only a single file or script?
 
  


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 1.3.33 (debian built) and Apache SSL does not respond to the proper ports lqorg_user Linux - Networking 0 11-06-2005 04:11 PM
apache and apache-ssl questions merana Debian 4 03-10-2005 10:10 AM
Suse 9.2 - Firefox - SSL (browser doesn't load secure pages) jclement30 SUSE / openSUSE 7 02-15-2005 01:49 AM
How to have SSL on two different pages/sites? Manuel-H Linux - General 1 08-05-2003 08:53 AM
Apache SSL started, pages won't display Manuel-H Linux - General 1 04-16-2003 11:04 AM

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

All times are GMT -5. The time now is 11:08 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