• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 209
  • Last Modified:

apache access from local

I have set up a apache server in my company which is behind a router. My router have been set up a port forwards (that is 203.xxx.xxx.xxx to 192.168.0.1) so I can access my apache server anywhere. But I can't access my apache server in local by the ip 203.xxx.xxx.xxx. I can just access it by the ip 192.168.0.1. Why is it? Should I set something for my apache server?
0
huang_ck
Asked:
huang_ck
  • 2
1 Solution
 
manav_mathurCommented:
Usually, routers do not route traffic internal to a subnet. Hence, your router forwarding won't work on web-requests generated bt a machine inside your company. Inside the subnet, your apache machine is recognized as 192.168.0.1.
0
 
pdub79Commented:
So, if you Apache server is on 192.168.0.1, just direct your systems on your LAN to that IP. Any systems outside your LAN will have to be directed to the router first.
0
 
manav_mathurCommented:
for a class B network, your routing tables on each machine should have entries for 192.168.0.0/16 for accessing local subnet, and a default entry for your router IP as the default gateway. Can you post the output of 'route' command??
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now