logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Virtual Host not using its web root doc folder
Author
bazianm



Joined: 01 Jul 2014
Posts: 11
Location: Passaic, NJ

PostPosted: Tue 29 Jul '14 15:16    Post subject: Virtual Host not using its web root doc folder Reply with quote

Hi,

I use Webmin (1.69) to work on my development environment. I am using Ubuntu Desktop 14.04 right now. I am not exactly an Ubuntu newbie but I would not call myself an expert either.

I created a virtual host (newdomain.local) with webmin. I filled in all the fields and saved the new VH definition. I added newdomain.local to my hosts file with an ip address of 127.0.0.1 and restarted apache.

When I go to http://newdomain.local, it is not taking me to the VH's home page but to the default home page.

Any ideas on why this might be happening?
Back to top
AdrianK_IT



Joined: 30 May 2013
Posts: 34
Location: Scottish Borders, UK

PostPosted: Wed 30 Jul '14 11:08    Post subject: Reply with quote

Hi bazianm

I have no experience of Webmin or Ubuntu! However, might it be a DNS cache problem ie you need to flush it to get the new hosts file entry to work? (I've no idea how to flush the DNS cache in Ubuntu, sorry!)
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7294
Location: Germany, Next to Hamburg

PostPosted: Wed 30 Jul '14 14:44    Post subject: Re: Virtual Host not using its web root doc folder Reply with quote

bazianm wrote:


When I go to http://newdomain.local, it is not taking me to the VH's home page but to the default home page.


Check the path of the document root. If that is ok, did you restart apache?
Back to top


Reply to topic   Topic: Virtual Host not using its web root doc folder View previous topic :: View next topic
Post new topic   Forum Index -> Apache