vhost config file example

Discussion in 'Apache' started by redhits, Sep 1, 2009.

  1. #1
    My problem is very simple.

    Till now by going to 127.0.0.1 i could access all my directories and files from /www

    , but after i added this


    <VirtualHost *:80>
    DocumentRoot "C:/www/exgf"
    ServerName exgf.ip
    ServerAlias www.exgf.ip
    </VirtualHost>

    and activated that vhost file... iven if i type 127.0.1 i go to c:/www/exgf

    so what i can do ?

    also http://127.0.0.15/, everything goes to \www\exgf
     
    redhits, Sep 1, 2009 IP
  2. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #2
    Rather than using <VirtualHost *:80> assign separate IP address which you want to use. Like
    <VirtualHost 127.0.0.5:80>

    Kailash
     
    kailash, Sep 1, 2009 IP