[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] Blocking http for just one directory?



On Tue, 2006-01-24 at 15:08 +0000, James Wallbank wrote:
> I'd like to stop access to this directory on port 80 - so people can 
> view the rest of the website WITHOUT having to use https, but people 
> using the control panel HAVE TO use https.

It would be nicer to redirect them to where they need to go, something
like:

<Directory "/svr/www/htdocs/panel">
        RewriteEngine on
        Options +FollowSymLinks
        Order allow, deny
        Allow from all
        RewriteCond %{SERVER_PORT} !^443$
        RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
</Directory>

I believe that's what Brian Boitano would do - less chance of support
queries re. "my web panel doesn't work".

Cheers,

Alex.

___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.