Solved

How to make Apache 2.0 work in my LAN?

Posted on 2004-09-03
4
391 Views
Last Modified: 2010-03-04
Greetings to all experts,

I have a little quesion to ask. For my situation, i use DSL3100R adsl modem to connect all my PC. Now, i have install Apache 2.0 in one of my PC, XP environment. For localhost, it works fine with PHP 4.3.8. However, i can't configure other computer to browse at that PC with apache (coz i wan it to be LAN web server).

Just for information, the adsl modem, the IP is 10.0.0.2(using web browser to configure the modem), the PC with apache is 10.0.0.4(using DHCP-automatic assign)

Can anyone give me a clue?

Thanks.
0
Comment
Question by:J_J
  • 2
  • 2
4 Comments
 
LVL 15

Accepted Solution

by:
samri earned 60 total points
ID: 11980356
On the machine apache is running, could you browse by using http://10.0.0.4/ ?

What about your client TCP/IP setting.  All the pc IP address would be 10.0.0.x, and the gateway?  is it the ADSL modem/router - 10.0.0.2 ?  If this is the case, check you ADSL router configuration/firewall setting to allow port-80 from LAN to LAN to be routed.

Cheers,
0
 

Author Comment

by:J_J
ID: 11983199
Yes, i can browse from the machine using 10.0.0.4, but just limit to that local pc. when i try to use 10.0.0.4 at other computer, they all show "we can't find 10.0.0.4"

Ok, the adsl modem IP fixed to 10.0.0.2, every PC can access it well, to make configuration. I wonder would this be the problem that the adsl modem uses it's own web server to make configuration, then other web server can't run??

what i hv done now is for Port Forwarding, i add a new rules, start port 80, end port 80, port type TCP, host IP 10.0.0.4, BUT it not working too...

also, since it is dynamic IP, it will change the IP everytime. so now maybe 10.0.0.4, next time could be 10.0.0.14

For your information, there is LAN & DHCP, NAT, Port Forwarding, Port Triggers, Dynamic DNS at the adsl modem configuration, anyone can give me a clue for it?

thanks!
0
 
LVL 15

Assisted Solution

by:samri
samri earned 60 total points
ID: 11983470
hi J_J,

The promlem now is, the ADSL router is accepting connection on port 80, and the router itself had it's internal webserver (for configuration purpose) running on port 80.  So if you wan to redirect port 80 to another machine on your LAN (which is 10.0.0.4), then then two thing could happen;

1.  It would not be possible since the router will not activate the rule since port 80 is already bound to it's webserver. OR
2.  You would lost connection to the router web server -- then you could not do any configuration at all.  BE careful.

What I can suggest is.

1.  Try to get you apache to run on ports other than 80, Let say 8000.  -- simplest thing to do.  Just edit your apache and locate for "Listen" directive.

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 8000
-- this would cause apache to accept connection on port 8000, ie. your client would need to browse by http://10.0.0.4:8000/


2.  OR, get you ADSL router webserver to run on different port.  This should be possible.  Check you ADSL router config for this.


HTH.



0
 

Author Comment

by:J_J
ID: 11986690
Gosh....i make a mistake....a careless mistake...

i forgot that i hv on my firewall, which run at the background! now.. when i set a rules for it...then...php and apache run with no problem!  (>.<)

anyway, thanks for giving me advise. i will give the marks for u.

cheers!
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now