Topic
  • 10 replies
  • Latest Post - ‏2010-09-15T12:00:06Z by SystemAdmin
SystemAdmin
SystemAdmin
3908 Posts

Pinned topic IHS 7- Creating a new Virtual Host

‏2010-09-14T11:23:33Z |
Hi All,
I need to create a new Virtual Host entry in my httpd.conf file. I've integrated IHS 7.0 with WebSphere Portal Server 6.1.5 (WAS 7). I'm able to login to Portal without entering the port number.
Now I need to create a new Virtual Host entry.I created the Host as follows

NameVirtualHost testhost.server.com <VirtualHost testhost.server.com:80> ServerAdmin webmaster@dummy-host.example.com DocumentRoot C:/Global/Portal_DocRoot ServerName testodc.server.com </VirtualHost>

The server name is my Host Name. I'm able to login to Portal using http://testodc.server.com/wps/myportal.
Now when I try http://testhost.server.com/wps/myportal it says Page Not Found.
I've an index.html file kept at 'C:/Global/Portal_DocRoot ". I need to load that file by typing http://testhost.server.com. Please help me to fix this.
Updated on 2010-09-15T12:00:06Z at 2010-09-15T12:00:06Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    3908 Posts

    Re: IHS 7- Creating a new Virtual Host

    ‏2010-09-14T11:47:09Z  
    Hi,

    Why didn't you add this virtual host to websphere application server itself?

    Regards,
    Ahmed
  • SystemAdmin
    SystemAdmin
    3908 Posts

    Re: IHS 7- Creating a new Virtual Host

    ‏2010-09-14T12:23:50Z  
    Hi,

    Why didn't you add this virtual host to websphere application server itself?

    Regards,
    Ahmed
    I added the host entry by directly modifying httpd.conf and through Admin console. The result was same.
  • SystemAdmin
    SystemAdmin
    3908 Posts

    Re: IHS 7- Creating a new Virtual Host

    ‏2010-09-14T12:27:39Z  
    I added the host entry by directly modifying httpd.conf and through Admin console. The result was same.
    Fine, now you need to propagate new IHS plugin to portal to read new virtual host info for hosted applications!
  • SystemAdmin
    SystemAdmin
    3908 Posts

    Re: IHS 7- Creating a new Virtual Host

    ‏2010-09-14T16:44:06Z  
    Fine, now you need to propagate new IHS plugin to portal to read new virtual host info for hosted applications!
    Hi Ahmed,
    I tried generating and propagating the plugin. Still it didn't work. I have one question. Suppose I stop my Application Server. I should be able to access the files in doc root through virtual host. It is not happening in my case. Please correct me if this assumption is wrong.
  • SystemAdmin
    SystemAdmin
    3908 Posts

    Re: IHS 7- Creating a new Virtual Host

    ‏2010-09-15T06:49:57Z  
    Hi Ahmed,
    I tried generating and propagating the plugin. Still it didn't work. I have one question. Suppose I stop my Application Server. I should be able to access the files in doc root through virtual host. It is not happening in my case. Please correct me if this assumption is wrong.
    When I comment the below line from httpd.conf file, I'm able to access index.html file by typing the host name.
    WebSpherePluginConfig "C:\Program Files\IBM\HTTPServer\Plugins\config\webserver1\plugin-cfg.xml"

    It doesn't work if I un comment. Please help me.
  • SystemAdmin
    SystemAdmin
    3908 Posts

    Re: IHS 7- Creating a new Virtual Host

    ‏2010-09-15T07:12:55Z  
    When I comment the below line from httpd.conf file, I'm able to access index.html file by typing the host name.
    WebSpherePluginConfig "C:\Program Files\IBM\HTTPServer\Plugins\config\webserver1\plugin-cfg.xml"

    It doesn't work if I un comment. Please help me.
    Now you are able to open index.html using virtual host with WAS plugin commented, correct?

    if so, this makes sense as IHS was searching for index page on WAS using that plugin!

    Did you try to use that virtual host opening portal server?
  • SystemAdmin
    SystemAdmin
    3908 Posts

    Re: IHS 7- Creating a new Virtual Host

    ‏2010-09-15T11:05:34Z  
    When I comment the below line from httpd.conf file, I'm able to access index.html file by typing the host name.
    WebSpherePluginConfig "C:\Program Files\IBM\HTTPServer\Plugins\config\webserver1\plugin-cfg.xml"

    It doesn't work if I un comment. Please help me.
    If a reuests URL-path, host, and port match the URI and host aliases in the plugin-cfg.xml it will be handled by the Plugin.

    By default. adding an IHS virtualhost on a new hostname but he same port won't cause the Plugin to somehow decline to handle it.

    You can always change your host aliases in the AppServer to not have wildcards for Hostnames, at which point you can create new vhosts and the plugin will ignore them.

    --
    Eric Covener
    IBM HTTP Server and Apache Development
  • SystemAdmin
    SystemAdmin
    3908 Posts

    Re: IHS 7- Creating a new Virtual Host

    ‏2010-09-15T11:18:40Z  
    If a reuests URL-path, host, and port match the URI and host aliases in the plugin-cfg.xml it will be handled by the Plugin.

    By default. adding an IHS virtualhost on a new hostname but he same port won't cause the Plugin to somehow decline to handle it.

    You can always change your host aliases in the AppServer to not have wildcards for Hostnames, at which point you can create new vhosts and the plugin will ignore them.

    --
    Eric Covener
    IBM HTTP Server and Apache Development
    Hi Eric,

    I removed the entry with * against port number 80 in default_host. Now I'm able to access the index.html file. But I'm not able to access http://hostname/wps/myportal. This is handled by IHS.I'm getting 404 there.
    Please help me.
  • SystemAdmin
    SystemAdmin
    3908 Posts

    Re: IHS 7- Creating a new Virtual Host

    ‏2010-09-15T11:21:16Z  
    Now you are able to open index.html using virtual host with WAS plugin commented, correct?

    if so, this makes sense as IHS was searching for index page on WAS using that plugin!

    Did you try to use that virtual host opening portal server?
    Hi Ahmed,
    I tried accessing portal server on that virtual host. It didn't work.
  • SystemAdmin
    SystemAdmin
    3908 Posts

    Re: IHS 7- Creating a new Virtual Host

    ‏2010-09-15T12:00:06Z  
    Hi Eric,

    I removed the entry with * against port number 80 in default_host. Now I'm able to access the index.html file. But I'm not able to access http://hostname/wps/myportal. This is handled by IHS.I'm getting 404 there.
    Please help me.
    I was able to solve the issue. Application server was handling urls with "/*". I removed it from the xml file and it worked. Thanks everyone for the help.