Results 1 to 6 of 6

Thread: Running multiple sites on one server

  1. #1
    Join Date
    Jul 2015
    Beans
    10

    Running multiple sites on one server

    Hello. I'm trying to figure out if there is a way to host multiple sites on one pc running ubuntu server 14.04.2 but allowing ssl only to one of them eg. I want to host an owncloud installation with ssl and two sites without ssl. Is that possible?

    Thank u in advance!

  2. #2
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Running multiple sites on one server

    Yes, if you are using Apache2, set up multiple virtual hosts (vhosts) and apply SSL to only one of them.

    https://help.ubuntu.com/lts/serverguide/httpd.html
    https://www.digitalocean.com/communi...untu-14-04-lts
    http://httpd.apache.org/docs/2.4/vhosts/

  3. #3
    Join Date
    Jul 2015
    Beans
    10

    Re: Running multiple sites on one server

    But isn't SSL on one apache instance applied globally, ie if for example I have an SSL for say, owncloud this will be applied for the other sites as well, right?

  4. #4
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Running multiple sites on one server

    It's applied (or not) for each individual virtual host.

  5. #5
    Join Date
    Jul 2015
    Beans
    10

    Re: Running multiple sites on one server

    Thank you. I will give it a try on a virtual machine.

  6. #6
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Running multiple sites on one server

    A virtual machine would be different and inefficient. Try the links above for virtual hosts. A virtual host is where one machine is running multiple sites from a single installation of the web server.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •