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: How to configure Apache web server for 2 computers ?
Author
archerkadathur



Joined: 02 Mar 2012
Posts: 3
Location: Sweden,Blekinge

PostPosted: Mon 05 Mar '12 22:18    Post subject: How to configure Apache web server for 2 computers ? Reply with quote

Hi,

I have 2 computer connected by LAN. I want to install Apache web server on one computer and need to access the web server from another computer.

for example : http://localcomputer1.com

I don't know how to configure. If you have the configuration idea please share with me, It will be really helpful

Thank you
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Mon 05 Mar '12 23:34    Post subject: Reply with quote

Server

in httpd.conf
under ServerName localhost add;

ServerAlias server1

For Vista, 2008 & Win7 (not needed on XP or 2003)
right click on the Wordpad (or your favorite text editor) icon and chose "Run as Administrator"

Open file c:\Windows\System32\drivers\etc\hosts <- no file extension

Add to the file the save:

127.0.0.1 server1


Other computer

Open file c:\Windows\System32\drivers\etc\hosts

Add to the file then save:

xxx.xxx.xxx.xxx server1

[xxx.xxx.xxx.xxx should be the LAN IP of the server machine]

Now, from either computer
http://server1

Will show you what you want to see
Back to top
archerkadathur



Joined: 02 Mar 2012
Posts: 3
Location: Sweden,Blekinge

PostPosted: Mon 05 Mar '12 23:49    Post subject: Server Reply with quote

Hi Glsmith,

Thank you for your information.

I have one computer with windows7 and another computer with Linux OS. I want to configure the webserver on Windows OS, Later I want it to use the webserver access from Linux OS.

If I configue the webserver as you mentioned, then is it possible to access the webserver from linux machine to windows machine?.

Thank you
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Tue 06 Mar '12 0:24    Post subject: Reply with quote

sure, it's over TCP and both are on the same LAN yes?
Linux has a hosts file as well, I cannot point you to where it is however.
Back to top
James Blond
Moderator


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

PostPosted: Wed 07 Mar '12 18:15    Post subject: Reply with quote

glsmith wrote:

Linux has a hosts file as well, I cannot point you to where it is however.


In 99,8% it is /etc/hosts. The syntax is the same as for windows.
Back to top


Reply to topic   Topic: How to configure Apache web server for 2 computers ? View previous topic :: View next topic
Post new topic   Forum Index -> Apache