Find the answer to your Linux question:
Results 1 to 3 of 3
I have this setup Code: <VirtualHost *&#58;80> ServerName fdd.no-ip.com DocumentRoot /opt/lampp/htdocs/ </VirtualHost> <VirtualHost *&#58;80> ServerName beavers.no-ip.biz DocumentRoot /opt/lampp/htdocs/beavers </VirtualHost> But when you go to beavers.no-ip.biz it points to the wrong ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2004
    Location
    SLC, UT
    Posts
    67

    Apache Name Server (Virtual Host) Issues


    I have this setup

    Code:
    <VirtualHost *&#58;80>
            ServerName fdd.no-ip.com
            DocumentRoot /opt/lampp/htdocs/
    </VirtualHost>
    <VirtualHost *&#58;80>
            ServerName beavers.no-ip.biz
            DocumentRoot /opt/lampp/htdocs/beavers
    </VirtualHost>
    But when you go to beavers.no-ip.biz it points to the wrong directory.

    What am I doing wrong?

  2. #2
    Linux User
    Join Date
    Feb 2005
    Posts
    290
    http://httpd.apache.org/docs-2.0/vhosts/name-based.html

    did you include the "NameVirtualHost" directive as well?

  3. #3
    Linux Engineer adrenaline's Avatar
    Join Date
    Aug 2004
    Location
    Seattle, Washington
    Posts
    1,058
    Mine only worked like this for some reason
    <VirtualHost www.4x4specialty.com:80>

    And this is the set up
    NameVirtualHost 63.43.52.144:80 #IP is fake here for example sake
    I hope this helps
    Mike
    Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
    -- Linus Torvalds

  4. $spacer_open
    $spacer_close

Posting Permissions

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