Forum Discussion

Srini_Vaiyapuri's avatar
Srini_Vaiyapuri
Icon for Nimbostratus rankNimbostratus
Jun 13, 2016

URL not working via F5 VIP but works via direct access to the server.

Web server is assigned as node to a VIP in LTM on port 80. When we access the server directly it works ( but its not working when we access via VIP URL ( We I ran tcpdump, the client request is hitting the web server and we re getting 404 Server error.

 

Any help would be appreciated.

 

    • Srini_Vaiyapuri's avatar
      Srini_Vaiyapuri
      Icon for Nimbostratus rankNimbostratus
      quick question on this, when you say virtual host configuration, you mean F5 VIP IP or hostname configuration on the webserver? Could you please clarify on this?
    • Yann_Desmarest's avatar
      Yann_Desmarest
      Icon for Cirrus rankCirrus
      I was talking about the host configuration on the backend webserver. By default, there is no host restriction on the bigip.
  • Hi,

     

    Do you have some virtual host configuration set up on your webserver ?

     

    • Srini_Vaiyapuri's avatar
      Srini_Vaiyapuri
      Icon for Nimbostratus rankNimbostratus
      quick question on this, when you say virtual host configuration, you mean F5 VIP IP or hostname configuration on the webserver? Could you please clarify on this?
    • Yann_Desmarest_'s avatar
      Yann_Desmarest_
      Icon for Nacreous rankNacreous
      I was talking about the host configuration on the backend webserver. By default, there is no host restriction on the bigip.
  • Can you try the following command from the cli on your f5 system ?

    curl -H "Host: VIPIP" http://backend_Serverip/VendorProd/pcas/request.aspx

    You can add -I to check for response headers :

    curl -I -H "Host: VIPIP" http://backend_Serverip/VendorProd/pcas/request.aspx

    • Srini_Vaiyapuri's avatar
      Srini_Vaiyapuri
      Icon for Nimbostratus rankNimbostratus
      Below is the output. server url doesn't work with IP, it only works with hostname http://testwa84/VendorProd/pcas/request.aspx HTTP/1.1 404 Not Found Content-Length: 315 Content-Type: text/html; charset=us-ascii Server: Microsoft-HTTPAPI/2.0 Date: Mon, 13 Jun 2016 15:55:55 GMT Connection: close ---------------------------- Not Found Not Found

      HTTP Error 404. The requested resource is not found.

       

  • Can you try the following command from the cli on your f5 system ?

    curl -H "Host: VIPIP" http://backend_Serverip/VendorProd/pcas/request.aspx

    You can add -I to check for response headers :

    curl -I -H "Host: VIPIP" http://backend_Serverip/VendorProd/pcas/request.aspx

    • Srini_Vaiyapuri's avatar
      Srini_Vaiyapuri
      Icon for Nimbostratus rankNimbostratus
      Below is the output. server url doesn't work with IP, it only works with hostname http://testwa84/VendorProd/pcas/request.aspx HTTP/1.1 404 Not Found Content-Length: 315 Content-Type: text/html; charset=us-ascii Server: Microsoft-HTTPAPI/2.0 Date: Mon, 13 Jun 2016 15:55:55 GMT Connection: close ---------------------------- Not Found Not Found

      HTTP Error 404. The requested resource is not found.

       

  • This error indicates that you're asking for something that the server thinks does not exist.There can be a myriad of reasons why an application server might generate this message, aside from an actual "file not found". The best way forward, I believe, is to:

     

    First validate that requests are actually making it to the web server through the F5. This is a simple tcpdump to watch traffic on the internal getting to the server. If that's good, then

     

    Inspect the client side of the HTTP dialog. Look at what the client is asking for and what the server is sending. You may find that the server is sending references to page objects using an internal URL.

     

    Finally, look at the web server logs. You should see the requested object and the 404 status.

     

    • richard_lyonnel's avatar
      richard_lyonnel
      Icon for Nimbostratus rankNimbostratus

      I have the same error and it's because the internal ressource is called with the IP adress and not the vHost name spécified in the bachend server. How to call the internaml server with the vHost name in place of the IPadress (in ltp policy or with irule)

       

  • Even am facing the same issue, every configuration seems to be fine. I can ping to the webserver from my F5 GUI as well as from CLI. Able to ping both the interface 1.1 and 1.2 SELF IP's, changed the SNAT to automap too. I tried to ping my external gateway (in my case it is ) 192.168.1.1 where my Virtual IP is 192.168.1.177. Reply received as Destination host not reachable. Please help me with this issue I have been stuck with this issue for past two days.