LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   unbound redirect domain (https://www.linuxquestions.org/questions/linux-newbie-8/unbound-redirect-domain-4175581200/)

!! hack-back !! 06-01-2016 11:18 AM

unbound redirect domain
 
Hello,
i want to redirect
http://site.com to https://site.com
and
http://www.site.com to https://www.site.com
can i do this in unbound or how ?
Thanks.

bathory 06-02-2016 02:13 AM

Quote:

Originally Posted by !! hack-back !! (Post 5554058)
Hello,
i want to redirect
http://site.com to https://site.com
and
http://www.site.com to https://www.site.com
can i do this in unbound or how ?
Thanks.

Hi,

unbound is a dns server, and as such it can only resolve hostnames
If you want to redirect http requests to https, you should use your webserver capabilities.
For example for apache see this

Regards


All times are GMT -5. The time now is 06:45 AM.