× 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.



Aaron,

This is how you might do a redirect using Relational-Web:

Select
When wsCo = 'co1'
CallP     webHdrSet('Location' : 'http://cso.co1.com')
When wsCo = 'co2'
CallP     webHdrSet('Location' : 'http://cso.co2.com')
When wsCo = 'co3'
CallP     webHdrSet('Location' : 'http://cso.co3.com')
Other
CallP     webHdrSet('Location' : 'http://cso.co0.com')
EndSl

Actually, you might just build the location string in RPG then call the
webHdrSet() procedure, but you get the idea, hopefully ;-)

Nathan M. Andelin
www.relational-data.com


----- Original Message -----
From: "Bartell, Aaron L. (TC)" <ALBartell@taylorcorp.com>
To: <web400@midrange.com>
Sent: Friday, June 14, 2002 1:15 PM
Subject: RE: [WEB400] Redirecting requests


> >Now, I'm assuming that since you do not indicate a port number for either
> URL that they are not both being hosted on the same 400?
>
> Yes, they are both on the same 400.  One is on default port 80 and the
other
> is on default SSL port 443.
>
> Ok now I need to tell you more of the story.  I can't do as you have said
> because I have about 35 cso.xxxxxxx.com sites being run in this instance;
so
> if I do this:
>
> redirect /* https://cso.aaron.com
>
> all of the sites will go there which is not what I want.
>
> The whole story behind this is that we have programs written to do the
> virtual hosting for us.  So we will have 35 cso.xxxxxx.com sites point to
> one server instance on our 400 and then our program will get the domain
name
> and port from the environment variables and display the appropriate index
> page.
>
> So if I can't do a redirect within the server instance config, can I do a
> Server Side Include in the index.html that will "redirect" me to
> https://cso.aaron.com?
>
> I have tried this SSI in my index.html file for https://cso.aaron.com but
I
> get an error.
>
> <!--#exec cgi="https://cso.aaron.com"-->
>
> gives me . .
>
>
> [an error occurred while processing this directive] EXEC failed: var =
> "https://cso.aaron.com";, value = ""
>
>
>
> [an error occurred while processing this directive] INCLUDE failed: var =
> "/login.html", value = ""
>
>
> Or can somebody tell me how I can redirect with javaScript as soon as the
> page loads?
>
> Aaron Bartell
>
>
>
> -----Original Message-----
> From: Joel R. Cochran [mailto:jrc@masi-brac.com]
> Sent: Friday, June 14, 2002 1:49 PM
> To: 'web400@midrange.com'
> Subject: RE: [WEB400] Redirecting requests
>
>
> I don't think you enter the full URL on the 'from' section.  I think you
> enter just the directory, so if this HTTP configuration handles
> http://cso.aaron.com, and you want all that traffic to go to
> https://cso.aaron.com, I think you would just enter the slash to indicate
> all like so...
>
> redirect  /  https://cso.aaron.com
>
> This is the IBM example from the default configuration...
>
> Redirect  /wsg    http://hostname:5061/WSG
>
>
> Now, I'm assuming that since you do not indicate a port number for either
> URL that they are not both being hosted on the same 400?
>
> Joel R. Cochran
> Director of Internet Services
> VamaNet.com
> (800)480-8810
> mailto:webmaster@vamanet.com
>
>
> > -----Original Message-----
> > From: Bartell, Aaron L. (TC) [mailto:ALBartell@taylorcorp.com]
> > Sent: Friday, June 14, 2002 12:49 PM
> > To: 'web400@midrange.com'
> > Subject: [WEB400] Redirecting requests
> >
> >
> > Hi All,
> >
> > I am trying to redirect http://cso.aaron.com to
> > https://cso.aaron.com with
> > the IBM HTTP Server Original using the REDIRECT directive but
> > it doesn't
> > seem to be working.  Here is the redirect that I used.
> >
> > REDIRECT http://cso.aaron.com https://cso.aaron.com
> >
> > But it doesn't redirect me at all; I just stay at
> http://cso.aaron.com.
>
> This precedes any other MAP's PASS's and EXEC's in my config file so
nothing
> else is getting to it first.
>
> I have also tried the above scenario with a MAP and with a PASS.
>
> Thanks in advance,
> Aaron Bartell
> _______________________________________________
> This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
> To post a message email: WEB400@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/web400
> or email: WEB400-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/web400.
> _______________________________________________
> This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
> To post a message email: WEB400@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/web400
> or email: WEB400-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/web400.
> _______________________________________________
> This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
> To post a message email: WEB400@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/web400
> or email: WEB400-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/web400.
>



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.