At 2004-12-10 20:58:24 +0530, [EMAIL PROTECTED] wrote:
>
> I want to how can enforce ssl (https pages only,  stop users to access
> plain http pages and if possible re-direct them to https if they enter
> http url)

The following configuration will ensure HTTPS access to anything under
http://example.org/foo. Play with the Redirect /foo line for different
effects.

<VirtualHost *:80>
 ServerName example.org
 DocumentRoot /home/www/example.org
 Redirect /foo https://example.org/foo
</VirtualHost>

<VirtualHost *:443>
 SSLEngine On
 SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
 SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
 ServerName example.org
 DocumentRoot /home/www/example.org
</VirtualHost>

-- ams

_______________________________________________
ilugd mailinglist -- [EMAIL PROTECTED]
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/[email protected]/

Reply via email to