http to https on other ip

Posted November 27, 2016 4k views
ApacheUbuntu 16.04

hello, as the title says
i have a apache server with ip and a owncloud server with ip and a emby server with ip, i already redirect with to owncloud ip and to emby ip but i want to redirect using https. anyone can help or give me an example how to do this with apache?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

DO has a nice tutorial on installing an ssl certificate on your server here:

It goes on to show how you can setup domains to redirect from http to https ie by including a Redirect permanent line on the domain config file:

<VirtualHost *:80>
   Redirect permanent /
by Mitchell Anicas
This tutorial will show you how to acquire and install an SSL certificate from a trusted, commercial Certificate Authority (CA). SSL certificates allow web servers to encrypt their traffic, and also offer a mechanism to validate server identities to their visitors. The...
  • thanks is a great tut but this is an example what i have on my apache to redirect port 80(http)
    <VirtualHost *:80>
    <Proxy *>
    Order deny,allow
    Allow from all
    <Location />

    and what i want is to redirect to to https on ip and i don’t know to do that

    • Do you already have an SSL certificate installed on the owncloud server? Assuming that you have, you now need to setup the redirect on the apache server with IP like below:

      <VirtualHost *:80>
         Redirect permanent /

      This should redirect all incoming http request on to Make sure connections to port 443 (https) on the server with IP are allowed

no one can help me? if someone can help or work with me i can help with some $$$

  • In this case, I would suggest you to use Cloudflare to redirect subdomain between, and

    You can easily install custom SSL or free SSL on all subdomain using Cloudflare and it will works.