Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WAS IBMIHS and VirtualHosts

Status
Not open for further replies.

dvsweden

Technical User
Feb 15, 2005
20
US
Hello,

We are currently testing WAS (6 - patched up to 6.0.2.5 and are running it with IBMIHS 6. All on AIX 5.3. The application in WAS that we are using is ColdFusion MX7.

I have the pieces working OK but as we are brand new to WAS I am having trouble understanding some of the connectivity between the three pieces.

In httpd.conf we have virtualhosts defined. I can get an index.cfm to work as expected when I have the virtual host in WAS set to *:80 - in this case all httpd defined virtual hosts process with ColdFusion but point to the root war directory, so I get the same page for example.foo.bar and test.foo.bar even though they have different roots in httpd.conf.

I can also get any one specific host to work i.e., example.foo.bar works when set in the WAS virtual hosts area but then virtual host test.foo.bar from httpd.conf gets text output rather than being processed through ColdFusion.

So what I am having trouble understanding is how virtual hosts set up in httpd.conf interact with WAS.

Is it possible to have example.foo.bar and test.foo.bar each have their own directory (within the war directory hierarchy) and still have them processed by my application (ColdFusion)?

Thanks in advance for any insight you may have for me.
David
 
Rewrite Rule is the answer. If anyone out there ever runs into the same scenerio.

<VirtualHost ServerAdmin webadmin@foo.bar
DocumentRoot / ServerName ErrorLog logs/ CustomLog logs/ common
ReWriteEngine on
RewriteRule ^/(.*) / [PT]
</VirtualHost>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top