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: Apache2 domain name/ virtual hosts question
Author
The Invincibles



Joined: 14 Sep 2014
Posts: 1
Location: Glasgow

PostPosted: Sun 14 Sep '14 20:30    Post subject: Apache2 domain name/ virtual hosts question Reply with quote

I’m trying a complete newb to web server management & I am trying to teach myself a little about Linux servers.

I’m running Ubuntu 14.04 on a virtual machine with an IP address of 192.168.0.101 & my host is on 192.168.0.3

I’ve configured my test website in the var/www folder & I can access it from the host machine by putting in the servers IP address.

I’ve looked at setting up virtual hosts & editing the hosts file, in all of the videos & tutorials I have looked at, inside the hosts file the domain name corresponds to a loopback address, should this not be the servers IP address?

To get my host machine to load the website that is running on the web server simply by typing www.website1.com, what would I have to do differently?

Any help would be appreciated.
Back to top
James Blond
Moderator


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

PostPosted: Tue 16 Sep '14 19:08    Post subject: Reply with quote

Use namebased virtual hosts and set the listen to port 80
Back to top


Reply to topic   Topic: Apache2 domain name/ virtual hosts question View previous topic :: View next topic
Post new topic   Forum Index -> Apache