Forum Moderators: phranque

Message Too Old, No Replies

VPS - Want to redirect only one domain to HTTPS

Apache question regarding https redirection in a VPS enviroment

         

Trace13

12:30 am on Feb 19, 2004 (gmt 0)



I currently am using a 3rd party VPS to handle all of our corporate domains. I want to redirect only one of the domains to HTTPS. SSL is running just for this domain and right now if you type in the domainname.com an HTTP error comes up, but if you type in [domainname.com...] everything works.

How can I set up the http.conf file to work properly?
Thanks!

dfaucet

4:35 am on Feb 21, 2004 (gmt 0)



I haven't tested this ... but depending on your configuration.. and what the underlying software is.. How about something like....

<VirtualHost 192.168.1.1:80>
ServerName domainname.com
RedirectPermanent / [domainname.com...]
</VirtualHost>

<VirtualHost 192.168.1.1:443>
ServerName domainname.com
blah
blah
blah
</VirtualHost>