Results 1 to 2 of 2

Thread: Create virtual directory in apache?

  1. #1
    Join Date
    Mar 2005
    Location
    Austin
    Beans
    339
    Distro
    Ubuntu 7.04 Feisty Fawn

    Create virtual directory in apache?

    Hi, I was wondering if someone knew how to create a virtual directory like you can in IIS?

    I fouind this

    http://httpd.apache.org/docs/1.3/vhosts/name-based.html

    But itts a bit confusing, I use DHCP so I dont know what my IP address would be each time.

    Basically, I want so localhost/mysite to point to /home/idn/mysite




    Thanks in advance!

    Jon

  2. #2
    Join Date
    Oct 2005
    Location
    New Zealand
    Beans
    44
    Distro
    Kubuntu Breezy 5.10

    Re: Create virtual directory in apache?

    DHCP for a web server is generally not a good idea, as it will break if the dhcp server assigns a different ip to your web server.

    Anyway, it sounds like what you need to do is just change the DocumentRoot part of the http config file, so that Apache serves pages from that directory.

    You don't need a virtual host for that. Name based Virtual hosts are used when you want to serve two or more different sites from one IP address.
    No coffee...No workee

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
  •