Results 1 to 4 of 4

Thread: From localhost to example.com In Apache ?

  1. #1
    Join Date
    Sep 2009
    Beans
    101
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    From localhost to example.com In Apache ?

    Hello
    In some web applications related tutorials I noticed that the introducer use something like www.example.com to access the local apache server on his computer.

    I wonder, how could he able to do that?

    In addition I need to know, does it possible to access my local Apache web server on my Ubuntu computer from multiple addresses beside localhost, for examle:
    myproject.com
    theblog.net
    etc

    and each domain has its own document root.
    Best Regards,
    Said Bakr
    AMD Athlon XP 1800+, Shuttle AK31 V3.1, 1.25 GB DDR RAM, ATI Radeon 9550 with 128 MB DDR and Viewsonic VA1912w wide screen with 1440 X 900 resoultion.

  2. #2
    Join Date
    Feb 2010
    Location
    /dev/null
    Beans
    129
    Distro
    Ubuntu

    Re: From localhost to example.com In Apache ?

    I imagine he is probably using Virtual hosts in apache http://httpd.apache.org/docs/1.3/vhosts/name-based.html

    example:
    <VirtualHost 127.0.0.1>
    DocumentRoot /www/example
    ServerName www.example.com
    </VirtualHost>

    <VirtualHost 127.0.0.1>
    DocumentRoot /www/testing
    ServerName www.testing.com
    </VirtualHost>

    Don't know too much about this myself, but have fun!
    Last edited by Kakers; February 25th, 2010 at 02:44 PM.

  3. #3
    Join Date
    Feb 2010
    Location
    /dev/null
    Beans
    129
    Distro
    Ubuntu

    Re: From localhost to example.com In Apache ?


  4. #4
    Join Date
    Sep 2009
    Beans
    101
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: From localhost to example.com In Apache ?

    Quote Originally Posted by Kakers View Post
    In the tutorial you regarded something about creating symbolic links in some folders. Does it correct to use right mouse click then choose make link then copy the link file to the targeted directory?
    Best Regards,
    Said Bakr
    AMD Athlon XP 1800+, Shuttle AK31 V3.1, 1.25 GB DDR RAM, ATI Radeon 9550 with 128 MB DDR and Viewsonic VA1912w wide screen with 1440 X 900 resoultion.

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
  •