× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Sorry for not replying to keep this thread alive. For some reason I don't
actually receive copies of my own posts. This is also posted on
comp.sys.ibm.as400.misc for archival purposes:

Alright, figured this out myself..

So, i5 is running 2 sites using Virtual hosts. PC running Apache running 3
sites.

i5 is the main server receiving requests through one static IP.

For the 3 servers running on the PC, I used the RewriteRule and a couple
other directives to pass those requests from the i5 to the PC.

<VirtualHost i5.ip.address:80>
ServerName domain1.com
ServerAlias *.domain1.com
ProxyPreserveHost On
RewriteEngine On
RewriteRule ^(.*)$ http://xx.xx.xx.xx$1 [P]
</VirtualHost>

Replace "xx.xx.xx.xx" with with the local IP address of the PC running
the apache server for the other 3 sites. Repeat the above virtualhost block
for each additional server running on the PC.

Works like a charm! The ProxyPreserveHost directive is needed so that the
headers in the original request are forwarded on to the PC server, otherwise
it won't quite work. IBM docs say that is only for ReverseProxy, but it's
not. :)

Brad
www.bvstools.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.