Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

WAS4 - Virtual Host Puzzle

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am having a program which makes a "http socket" connection to AppServer using the HTTP Transport Port like 9080. I modified the virtual host to
have the port entry like:
*:9080 (Asterik colon then port number)
Everything works fine if the virtual host entry is *:9080. But I would like to restrict this socket connection only from certain IP, so I modified the virtual host to:
11.1.11.111:9080
Now if I execute my program its able to make conneciton but giving following error:
Response: HTTP/1.1 404 Not Found
Server: WebSphere Application Server/4.0
Content-Type: text/html
Content-Length: 140
Connection: close
<H1>Virtual Host or Web Application Not Found</H1>
<H3>The host ibm9 has not been defined</H3>
IBM WebSphere Application Server
I am unable to understand why its not working. As per my understanding if I don't specify the IP address in virtual host then anybody can connect to the clone, whethere this will cause any security threat.
Thanks in advance.
SK
 
Ranch Hand
Posts: 179
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The chances are that WebSphere is trying to resolve the ip address to a host name. Do a ping 11.111.11.11 on the server and check the response. If it does not resolve WebSphere cannot find the virtual host. Define a host name for the IP address in your host file and use this in the virtual host definition. Make sure there is a similar virtual hos entry in the Apache config file.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic