I configured appace through source file.
In that i enabled http and https and Name based virtual
http://maniannam.com
https://secure.maniannam.com
my requirement is, if i type
http://maniannam.com then this will be redirect to
https://secure.maniannam.com
I enabled the rule but its not redirect.
my config httpd.conf
<VirtualHost 192.168.237.166:80>
servername
www.maniannam.com
DocumentRoot /home/mani/pythian
</VirtualHost>
<VirtualHost 192.168.237.166:443>
servername secure.maniannam.com
DirectoryIndex index.html_https
DocumentRoot /home/mani/pythian/test
SSLEngine on
SSLCertificateFile /usr/local/apache2/conf/server.crt
SSLCertificateKeyFile /usr/local/apache2/conf/server.key
</VirtualHost>
RewriteLog "logs/rewrite.log"
RewriteLogLevel 9
<Directory /home/mani/pythian>
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
RewriteEngine on
#RewriteLogLevel 3
#RewriteCond %{SERVER_PORT} ^80$
#RewriteRule ^/(.*)
https://secure.maniannam.com
RewriteRule ^/$
https://secure.maniannam.com
</Directory>
rewrite log is :
192.168.237.166 - - [02/Jan/2009:16:55:45 +051800] [maniannam.com/sid#8f1cf88][rid#8f86d70/initial] (3) [perdir /home/mani/pythian/] strip per-dir prefix: /home/mani/pythian/ ->
192.168.237.166 - - [02/Jan/2009:16:55:45 +051800] [maniannam.com/sid#8f1cf88][rid#8f86d70/initial] (3) [perdir /home/mani/pythian/] applying pattern '^/$' to uri ''
192.168.237.166 - - [02/Jan/2009:16:55:45 +051800] [maniannam.com/sid#8f1cf88][rid#8f86d70/initial] (1) [perdir /home/mani/pythian/] pass through /home/mani/pythian/
192.168.237.166 - - [02/Jan/2009:16:55:45 +051800] [maniannam.com/sid#8f1cf88][rid#8f8ad80/subreq] (3) [perdir /home/mani/pythian/] strip per-dir prefix: /home/mani/pythian/index.html -> index.html
192.168.237.166 - - [02/Jan/2009:16:55:45 +051800] [maniannam.com/sid#8f1cf88][rid#8f8ad80/subreq] (3) [perdir /home/mani/pythian/] applying pattern '^/$' to uri 'index.html'
192.168.237.166 - - [02/Jan/2009:16:55:45 +051800] [maniannam.com/sid#8f1cf88][rid#8f8ad80/subreq] (1) [perdir /home/mani/pythian/] pass through /home/mani/pythian/index.html
Can any one help to me..... please...