Apache Server configuration support - Re: SOLVED Question: How to make a SSL connection to a pass

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > December 2007 > Re: SOLVED Question: How to make a SSL connection to a pass





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: SOLVED Question: How to make a SSL connection to a pass
Timothy

2007-12-21, 7:26 pm

On Fri, 21 Dec 2007 23:24:01 +0000, Timothy wrote:
I figured it out. I needed a sub-domain. Here's the recipe I used:

<VirtualHost *:80>
DocumentRoot "/var/www/html"
ServerName host.com
ServerAlias *.host.com
ErrorDocument 404 /404.html

Redirect /protect https://www.secure.host.com
</VirtualHost>

<VirtualHost *:443>
DocumentRoot "/var/www/html/protect"
ServerName secure.host.com
ServerAlias *.secure.host.com

<Directory "/var/www/html/protect">
AuthUserFile /XXXX/XXXX/XXXX/.passwd
AuthName "FOAD"
AuthType Basic
Require valid-user
Satisfy All
</Directory>

</VirtualHost>

Don't know if this the best solution, but it's working for me atm.
Timothy

--
Posted via a free Usenet account from http://www.teranews.com

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com