Apache server on LAN

A

Andreas Boehmer

I have installed Apache on one of my machines on my LAN and would like to
make it available to the others as well. Currenty, to access it from my main
machine (Win 2000) I go to: http://127.0.0.1:8080.

Can anybody advise me how to set up my other machines (Win 98) to make the
Apache Server accessible from there as well?

My network is connected via a router. The IP addresses for the Win 98
machines are being automatically assigned.

Thanks for the help!
 
S

SteveC

Hello,

what's the IP address of you win2000 computer? Find this out by going to
Start > Run > cmd.exe, press enter.
type ipconfig, press enter.

that will show your ip address (ie 192.168.1.10)

From Win 98, point your browser to http://192.168.1.10:8080

127.0.0.1 is a "universal" address pointing to the computer you're on.
http://localhost:8080 will give you the same result

regards,

SteveC
======
If at first you don't succeed, forget skydiving
 
J

Jonathan Maltz [MS-MVP]

Hi Andreas,

On the server computer (the one running Apache) click Start -> Run...
Type "cmd.exe"
And in that window type "ipconfig". Write down the IP address, it will look
like "192.168.x.xxx" where x are numbers.

From the other computers on the network you should now be able to type:
http://192.168.x.xxx:8080
Where 192.168.x.xxx was the IP address from the server that you wrote down
before

I hope this helps!

--
--Jonathan Maltz [Microsoft MVP - Windows Server]
http://www.imbored.biz - A Windows Server 2003 visual, step-by-step
tutorial site :)
Only reply by newsgroup. If I see an email I didn't ask for, it will be
deleted without reading.
 
A

Andreas Boehmer

SteveC said:
Hello,

what's the IP address of you win2000 computer? Find this out by going to
Start > Run > cmd.exe, press enter.
type ipconfig, press enter.

that will show your ip address (ie 192.168.1.10)

From Win 98, point your browser to http://192.168.1.10:8080

127.0.0.1 is a "universal" address pointing to the computer you're on.
http://localhost:8080 will give you the same result

regards,

Steve, thanks for the quick response. My W2K IP is 192.168.0.195

I made a mistake when I explained my setup. The localhost is actually
127.0.0.1, but I created some virtual directories in Apache. So to access
one of my websites I have to go to http://127.0.0.6:8080. Or a different one
will be at http://127.0.0.5:8080.

Because I have got also Coldfusion and IIS running on this machine I had to
set my computer up this way.

Any idea how to access those virtual directories from the W98?
 
S

SteveC

Hello,

I use Apache on Linux, but I *think* it works the same.

You will need to assign static IP addresses to your Win2K box, and have
Apache listen on these new addresses instead of 127.0.0.x. You cannot use
127.0.0.x and have other computers connect to that IP address.

Decide on what static IP addresses you are going to use for your Win2K box.
I recommend something like this:
192.168.0.10 <- use for network, don't assign a virtual server (not needed,
but IP addresses are cheap)
192.168.0.11 <- virtual server 1
192.168.0.12 <- virtual server 2

Make sure your DHCP server does not assign those IP addresses.

Add the IP addresses you want to the Win 2K box (see below if needed).
Assign each virtual server to an IP addresses.
Test on Win2K box by going to http://192.168.0.11:8080 etc...
Test from Win98 box.

regards,

SteveC
======
If at first you don't succeed, forget skydiving


Run ipconfig /all
Note the gateway and DNS servers

Add your static IP address:

Right Click My Network Places. Choose properties.
Right Click your LAN card. Choose properties.
Highlight TCP/IP. Click properties.
Select Use Following IP address. Enter 1st IP address.
Enter DNS server ip addresses.

Click on Advanced.
Add as many IP addresses as you need virtual servers.
Add a default gateway.
Click OK to save all your changes.
 
P

Ph0eniX

Since your IP address is automatically assigned, it might change from time
to time so you shouldn't bind apache to a specific address. You need to set
the right options in your httpd.conf.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top