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

Thread: Setting up name-based virtual hosts on Apache Apache/2.4.6 (Ubuntu 12)

  1. #11
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Setting up name-based virtual hosts on Apache Apache/2.4.6 (Ubuntu 12)

    Quote Originally Posted by vsiege2 View Post
    I was modifying the ubuntu server hosts file over ssh from my osx box
    You need to modify the hosts file of whatever machine you are accessing the test machine from, as it is local only.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

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

  2. #12
    Join Date
    Oct 2013
    Beans
    20

    Thumbs up Re: Setting up name-based virtual hosts on Apache Apache/2.4.6 (Ubuntu 12)

    Thank you. I have it up and running now. The only thing thats not getting picked up from the hosts file is the wildcard I have added for any subdomains for *.days.com

    Code:
    127.0.0.1      localhost
    
    
    # The following lines are desirable for IPv6 capable hosts
    ::1     ip6-localhost ip6-loopback
    fe00::0 ip6-l   ocalnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    iff02::2 ip6-allrouters
    
    
    #Virtual Hosts
    127.0.0.1       days.com www.days.com *.days.com
    Last edited by vsiege2; December 17th, 2013 at 12:46 AM.

  3. #13
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Setting up name-based virtual hosts on Apache Apache/2.4.6 (Ubuntu 12)

    Quote Originally Posted by vsiege2 View Post
    Thank you. I have it up and running now. The only thing thats not getting picked up from the hosts file is the wildcard I have added for any subdomains for *.days.com

    Code:
    127.0.0.1      localhost
    
    
    # The following lines are desirable for IPv6 capable hosts
    ::1     ip6-localhost ip6-loopback
    fe00::0 ip6-l   ocalnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    iff02::2 ip6-allrouters
    
    
    #Virtual Hosts
    127.0.0.1       days.com www.days.com *.days.com
    As far as I know, you can't use wildcards in the hosts file, so you would need to reference each subdomain individually.
    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

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
  •