Emma Wermstr�m (EMW) wrote:
> 
> I want to be able to access the unprotected documents(http://...) and from them, the 
>protected documents(https://) without having to write https explicitly.
> With the above configuration I can get as far as the login procedure, where I'm 
>asked for userid and passwd. After authenticating correctly I get a message from the 
>browser saying:
> 
> "Netscape is unable to locate the server (no name specified)
> Please check the server name and start again"

Are you acessing your server using an ip-address (e.g. 192.168.1.1) or
as localhost (127.0.0.1)? I'm not sure your %{localhost} is expanding
correctly.

Try using IP-based virtualhosts (which is what you nearly had...) e.g.

Listen 80
<VirtualHost ip-addr:80>
  DocumentRoot /bla/bla/htdocs
  etc..
</VirtualHost>

Listen 443
<VirtualHost ip-addr:443>
  DocumentRoot /bla/bla/htdocs/CIP
  etc..
</VirtualHost>

- Don't use NameVirtualHost since name-based virtual-hosting doesn't
work with SSL.
- I'm not sure your SSL rewrite rule is correct...

RewriteRule   ^/(.*):SSL https://%{localhost}/CIP$1 [R,L] 

will turn:

http://server/banana:SSL

into:

https://server/CIP/banana

which will expand to the path:

/bla/bla/htdocs/CIP/CIP/banana

(since the doc-root is /bla/bla/htdocs/CIP/)

Which I don't think is what you want.

Rgds,

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

Reply via email to