View Webserver Form Internal and Extenal

Discussion in 'Web Server' started by just4net, Dec 3, 2012.

  1. just4net

    just4net New Member

    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Hi
    I use centos 5.8 + kloxo for my webserver and publish site in the internet , every thing is fine when people see my website from internet.
    But problem is :
    In my office and lan network [ip range : 192.168.170.0-254] when we are want see website go from internet and show website (In dns manager I set WAN ip address)
    If I set Lan IP address in dns , nobody can see website from internet .

    My Lan network is windows base with active directory and centos server is Separate pc with DSL line

    How can I set wen user in my office want see website open it from local network and outside of my office see website with my WAN IP address

  2. nixsavy

    nixsavy Member

    Messages:
    65
    Likes Received:
    17
    Trophy Points:
    8
    You need point website on server IP in your local network just try as, edit "hosts" file of main node of network as below then can browse website. I hope it will help you.

    Code:
    server IP    website name
    
    For example:
    65.182.x.x        testsite.com
  3. Rodrigo

    Rodrigo New Member

    Messages:
    22
    Likes Received:
    9
    Trophy Points:
    3
    Are you using a private IP for your webserver or a public IP? if you are using a private IP and you had forwarded the ports from your router to webserver. I recommend you configure a local DNS to set the local IP for your Web server.

Share This Page