Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Issues Creating Virtual Hosts: Ubuntu Linux 11.04

  1. #11
    Join Date
    Aug 2007
    Beans
    42

    Re: Issues Creating Virtual Hosts: Ubuntu Linux 11.04

    Quote Originally Posted by CharlesA View Post
    +1



    That really isn't the "proper" way to do it, even if it works.

    See here: http://ubuntuforums.org/showthread.php?t=1977192
    What specifically about it isn't "proper" ?

  2. #12
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Issues Creating Virtual Hosts: Ubuntu Linux 11.04

    Quote Originally Posted by nowashburn View Post
    What specifically about it isn't "proper" ?
    If you are running multiple virtual hosts, it is easier to manage by using a separate site for each.

    If you are only running one - using the default site would work, but it can get messy/unorganized if you add more sites.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  3. #13
    Join Date
    Aug 2007
    Beans
    42

    Re: Issues Creating Virtual Hosts: Ubuntu Linux 11.04

    Quote Originally Posted by CharlesA View Post
    If you are running multiple virtual hosts, it is easier to manage by using a separate site for each.

    If you are only running one - using the default site would work, but it can get messy/unorganized if you add more sites.
    I believe that is what I am actually doing now? Sorry if I wasn't full clear on how it is setup now:


    apache2/ports.conf:

    NameVirtualHost *:80
    Listen 80

    (no more ip address listed)

    __________________________

    sites-available/default:

    NameVirtualHost *
    <VirtualHost *>

    __________________________

    sites-available/virtualhost1.com:

    <VirtualHost *:80>
    ServerName virtualhost1.com

    __________________________

    sites-available/virtualhost2.com:

    <VirtualHost *:80>
    ServerName virtualhost2.com

  4. #14
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Issues Creating Virtual Hosts: Ubuntu Linux 11.04

    That looks right.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

Page 2 of 2 FirstFirst 12

Tags for this Thread

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
  •