Another 'quick' solution is mod_rewrite....I've encountered the same type of situation where a customer needs only one page secured and needs it now....not the best solution but it works ;)

RewriteEngine On
RewriteCond %{REQUEST_URi} ^/shop/whatever.html$
RewriteCond %{HTTPS} !=on
RewriteRule  ^/(.*) https://yourdomain.com/$1 [R]

This ensures that the whatever.html page is viewed securely regardless if it is accessed via http or not.

-Carlos
 
 

Nick Davies wrote:

Owen Boyle wrote:
>
> Nick Davies wrote:
> >
> > Can i use apache to just have one file on a secure server?
> >
> > Like
> >
> > ./shop/ - all on http
> > ./shop/whatever.html - on https
>
> Have you got a shortage of directories? It is much simpler to stick with
> the canonical methodology and define a separate virtual host for SSL.
> Then it is just like any other VH with a DocumentRoot and so on...
>
> Possibly you can do what you want, but what if you want to add another
> file in the future? You would have to change the configuration again
> instead of just sticking the file under the SSL DocumentRoot.
>
> Rgds,
>
> Owen Boyle

It's just to save me time really.  I have a few shop sites to move to a
new server and that's how its been setup.  I can't be bother tolling
through loads of code to change everything.

I'll do it properly some other time.

> ______________________________________________________________________
> Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
> User Support Mailing List                      [EMAIL PROTECTED]
> Automated List Manager                            [EMAIL PROTECTED]

--
Nick Davies
Technical Director
Magnitude Ltd
www.magnitude.co.uk
[EMAIL PROTECTED]
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

-- 
-----------------------------------------------------------------------
Carlos Ramirez + Boeing + Reusable Space Systems + 714.372.4181
-----------------------------------------------------------------------
My operat~1 system unders~1 long filena~1 , does yours?
 


Reply via email to