Windows Server TechCenter > Windows Server Forums > Hyper-V > Internal Web Server is not available externally

Answered Internal Web Server is not available externally

  • Saturday, February 11, 2012 6:46 PM
     
     

    Hi,

    I am new to networking and just want to setup webservers for testing purpose.

    I have a Windows 2008 server system. and the nic has IP 192.168.0.2. I have forwarded port 80 to this IP. I have a router provided by ISP and a wireless router before the server. DHCP is disabled on the WLAN and the router is configured for the static IP. This server has AD, DNS, FileServer, RD roles installed.

    I am able to successfully access websites mycompany.com which is hosted on Win2008 server on IIS by adding "A" record to "External Static IP".

    Now I have installed Hyper V and ubuntu as a guest os. ubuntu has ip : 192.168.0.31.

    Now, I created a domain domain1.com in Win2008 server and added "A" record to 192.168.0.31. I have also configured ubuntu to act as a webserver (installed apache). 

    I am able to access domain1.com in my internal network, But I am not able to access it externally.

    I am getting IIS page of Win2008 Server. It seems that It is not forwarding the request to internal ubuntu server. 

    Any help in this will be appreciated.

    Thanks,

Answers

  • Monday, February 13, 2012 12:33 PM
     
     Answered

    " How can I forward the same port to 2 different internal IPs " --- You can't. You would need two separate internet connections.

    If you have a router with a little more advanced configuration options, you might be able to forward a different port, example 81 externally to port 80 on apache server internally. Otherwise you can change listening port on the apache server and forward that port on your router instead.

    Example: http://domain.com:81

All Replies

  • Saturday, February 11, 2012 7:45 PM
     
     

    Windows 2008 server system...the nic has IP 192.168.0.2
    I have forwarded port 80 to this IP.
    ....
    This server has AD, DNS, FileServer, RD roles installed.

    I am able to successfully access websites mycompany.com which is hosted on Win2008 server on IIS by adding "A" record to "External Static IP"

    Now I have installed Hyper V and ubuntu as a guest os. ubuntu has ip : 192.168.0.31.

    Now, I created a domain domain1.com in Win2008 server and added "A" record to 192.168.0.31. I have also configured ubuntu to act as a webserver (installed apache). 

    I am able to access domain1.com in my internal network, But I am not able to access it externally.

    I am getting IIS page of Win2008 Server. It seems that It is not forwarding the request to internal ubuntu server. 

    Any help in this will be appreciated.

    Thanks,


    Hi,
    when you say Internal or External, do you mean Hyper-V Virtual Networks ?
    If so can you list or provide more details about each VM's configured network(s).

    Thanks.

    MCTS Windows Server Virtualization, Configuration

  • Saturday, February 11, 2012 11:28 PM
     
     

    Hi,

    If you can access to your website in your internal network,you don't have any problem in your hyper-v 

    If you have not already bought an external domain,and you want to make your internal resources (internal domain) used by some users i suggest  using VPN connection.

    the link bellow show you how configure internal and external domains

    Creating Internal and External Domains


    Best Regards

  • Sunday, February 12, 2012 3:18 PM
     
     

    Hi Guys,

    Thanks for the reply.

    @yassine : Internal means on LAN. Extern means accessing the website outside that network, through internet. 

    I don't have problem in Hyper V as I can access the websites configured on ubuntu within the LAN, also I can access internet on ubuntu.

    @Bourbita :

    I have already bougt external domain and pointed it to my IP.

    I can access the website, If I host it on IIS on WIN2008 server. but if I don't create the website in IIS and want that the WIn2008 server should forward the request to ubuntu and serve the website, it displays default page of IIS on windows2008 server. it does not forward the requests.

    Please help asap.


  • Monday, February 13, 2012 7:04 AM
    Moderator
     
     

    Hi,

    it displays default page of IIS on windows2008 server. it does not forward the requests.

    >> According to the description, it seems that everythings worked properly except the forwarding of the IIS in Windows Server 2008 server. If so, it is recommended that you perform the furhte research in IIS corresponding community so that you can get the most qualified pool of respondents. Thanks for your understanding.
     
    For your convenience, I have list the related link as followed.
     
    Forums : The Official Microsoft IIS Site
    http://forums.iis.net/


    Best regards,
    Vincent Hu

  • Monday, February 13, 2012 8:29 AM
     
     

    Hi Vince,

    Thanks for the reply and the link.

    Please read my full description

     If I host it on IIS on WIN2008 server, I can access the website. but if I don't create the website in IIS and want that the WIn2008 server should forward the request to ubuntu and serve the website, it displays default page of IIS on windows2008 server.

    I don't want to host the websites on IIS, I want it to host on ubuntu and run through Apache. 

    Let me know if you can help me.

    Thanks

  • Monday, February 13, 2012 8:56 AM
     
     

    Hi!

    From your description it sounds like you've attached your Ubuntu VM to an internal virtual network, which means that the VM is only reachable from your Hyper-V host and other VM's.

    Without knowing more about your current Hyper-V configuration, you should create an external virtual network bound to a physical adapter connected to your physical network. Connect your Ubuntu VM to that network, configure your Ubuntu server with a static IP and with Linux VM's you should always set a static MAC address in the VM's settings.

    On your router forward port 80 (or whatever port you sopecified in apache) to the IP configured on your Ubuntu VM.

  • Monday, February 13, 2012 12:29 PM
     
     

    Hi Mike,

    Thanks for your answer.

    I have only one router and I have forwarded port 80 to Win2008 server which is acessible from outside word.

    I have also attached Ubuntu to physical adapter and given it a static address (Win2008 has 2 NIC). Apache is running on Port 80.

    Now, How can I forward the same port to 2 different internal IPs or Do I need another router / different connection ?

  • Monday, February 13, 2012 12:33 PM
     
     Answered

    " How can I forward the same port to 2 different internal IPs " --- You can't. You would need two separate internet connections.

    If you have a router with a little more advanced configuration options, you might be able to forward a different port, example 81 externally to port 80 on apache server internally. Otherwise you can change listening port on the apache server and forward that port on your router instead.

    Example: http://domain.com:81