Forcing All Content to Be Served Using SSL


<VirtualHost 192.168.200.4:80>     ServerName private.example.com     Redirect / https://private.example.com/ </Virtualhost>


If you have a particular website that you want only served under SSL, you can use a Redirect inside a <VirtualHost> container that listens for HTTP requests and redirects them to your secure website, as shown in the example. This is useful because users will not always remember to type https:// instead of http://.




Apache(c) Phrase Book(c) Essential Code and Commands
Apache Phrasebook
ISBN: 0672328364
EAN: 2147483647
Year: 2006
Pages: 254

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net