httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: [users@httpd] help with directory accesses
Date Sun, 26 Jan 2003 18:59:49 GMT
I did , as you told me to do, but I am getting into the loop (it redirects 
from nonsecure to secure address and then keeps redirecting the same page).

"Original message"

On Sun, 26 Jan 2003 wrote:

> I have 5 dirs inside my DocumentRoot, 2 of them suppose to have
> encrypted security (implemented using OpenSSL ) and 3 don't.
> What is the directive for my "main" host to recognise that this
> particular directory shall be secure or unsecure and to change ports and
> toggle SSLEngine accordingly:
> eg.  choose from  http://.../root/dir:80
>                    and  https://.../root/dir:443
> the actual problem is that both hosts have same DocumentRoot,which is
> /user/apache2/htdocs,
> eg                             htdocs
>     |         |        |         |
>                  dir1      dir2    dir3      dir4
> dir1 and dir3  must be secure and dir 2 and dir4 must be unsecure.
> There 2 ports:
> 5800 non-secure port
> 4800 secure port
> if  I am now at http://www... :5800/dir2    and want to get to dir 1 I
> have to switch to SSL and change ports , the request should be
> https://www... :4800/dir1
> How can I achieve this ?

SSL is not on or off per directory, but per port, as you seem to already

Probably the easiest way to accomplish what you seem to be trying is
just with a redirect.

Redirect /path/dir2/ https://servername:4800/path/dir2/

You really should think of them, not as the same server, but as
different web servers.

And everyone said, "If we only live,
We too will go to sea in a Sieve -
To the hills of the Chankly Bore!"
(The Jumblies, by Edward Lear)

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message