From: Digest <deadmail>
To: "OS/2GenAu Digest"<deadmail>
Date: Sun, 7 Dec 2008 00:00:31 AET-10EDT,10,1,0,7200,4,1,0,7200,3600
Subject: [os2genau_digest] No. 1754
Reply-To: <deadmail>
X-List-Unsubscribe: www.os2site.com/list/

**************************************************
Saturday 06 December 2008
 Number  1754
**************************************************

Subjects for today
 
1   Apache Migration Help : Chris Graham [WarpSpeed]" <chrisg at warpspeed dot com dot au>
2  Re:  Java programming : Chris Graham [WarpSpeed]" <chrisg at warpspeed dot com dot au>

**= Email   1 ==========================**

Date:  Sat, 06 Dec 2008 16:38:56 +1100 (EDT)
From:  "Chris Graham [WarpSpeed]" <chrisg at warpspeed dot com dot au>
Subject:   Apache Migration Help

Hi All.

	I'm in the process of migrating IHS (really Apache 1.3 to 2.0).

This is how I've set up virtual hosts in the existing 1.3 httpd.conf, it is
all fine.

If they come in on http://firedragon.warpspeed dot com dot au/ they are redirected
to http://firedragon.warpspeed dot com dot au/firedragon/, which is correct, as it
is the root of the web app. All of the ErrorDocument enteries are so that
you get a reasonable error page when the websphere webapp is misbehaving or
is down for a deployment.

This is the 1.3 config:

NameVirtualHost firedragon.warpspeed dot com dot au:80

<VirtualHost firedragon.warpspeed dot com dot au:80>
    ServerName     firedragon.warpspeed dot com dot au
    Port           80
    CustomLog      logs/firedragon/firedragon.log combined
    ErrorLog       logs/firedragon/firedragon_error.log
    LogLevel       warn
    Redirect       permanent /
http://firedragon.warpspeed dot com dot au/firedragon/

    ErrorDocument 400
http://inet3.warpspeed dot com dot au/error/firedragon/400.htm
    ErrorDocument 401 /error/firedragon/401.htm
    ErrorDocument 402
http://inet3.warpspeed dot com dot au/error/firedragon/402.htm
    ErrorDocument 403
http://inet3.warpspeed dot com dot au/error/firedragon/403.htm
    ErrorDocument 404
http://inet3.warpspeed dot com dot au/error/firedragon/404.htm
    ErrorDocument 405
http://inet3.warpspeed dot com dot au/error/firedragon/405.htm
    ErrorDocument 406
http://inet3.warpspeed dot com dot au/error/firedragon/406.htm
    ErrorDocument 407
http://inet3.warpspeed dot com dot au/error/firedragon/407.htm
    ErrorDocument 408
http://inet3.warpspeed dot com dot au/error/firedragon/408.htm
    ErrorDocument 409
http://inet3.warpspeed dot com dot au/error/firedragon/409.htm
    ErrorDocument 410
http://inet3.warpspeed dot com dot au/error/firedragon/410.htm
    ErrorDocument 411
http://inet3.warpspeed dot com dot au/error/firedragon/411.htm
    ErrorDocument 412
http://inet3.warpspeed dot com dot au/error/firedragon/412.htm
    ErrorDocument 413
http://inet3.warpspeed dot com dot au/error/firedragon/413.htm
    ErrorDocument 414
http://inet3.warpspeed dot com dot au/error/firedragon/414.htm
    ErrorDocument 415
http://inet3.warpspeed dot com dot au/error/firedragon/415.htm
    ErrorDocument 500
http://inet3.warpspeed dot com dot au/error/firedragon/500.htm
    ErrorDocument 501
http://inet3.warpspeed dot com dot au/error/firedragon/501.htm
    ErrorDocument 502
http://inet3.warpspeed dot com dot au/error/firedragon/502.htm
    ErrorDocument 503
http://inet3.warpspeed dot com dot au/error/firedragon/503.htm
    ErrorDocument 504
http://inet3.warpspeed dot com dot au/error/firedragon/504.htm
    ErrorDocument 505
http://inet3.warpspeed dot com dot au/error/firedragon/505.htm

</VirtualHost> 

Now for the 2.0 bit. If I uncomment the Redirect (and/or the ErrorDocument)
entries and enter:

http://hudson.warpspeed dot com dot au

It goes into an infinite loop and attempts to load:

http://hudson.warpspeed dot com dot au/hudson/hudson/hudson/hudson/... 

So things have changed enough (not to mention the use of Listen) that I'm
in a world of hurt.

Can anyone suggest how to rework this?

This is the 2.0 config:

NameVirtualHost hudson.warpspeed dot com dot au:80

<VirtualHost hudson.warpspeed dot com dot au:80>
    ServerName     hudson.warpspeed dot com dot au
    CustomLog      logs/hudson/hudson.log combined
    ErrorLog       logs/hudson/hudson_error.log
    LogLevel       warn
#    Redirect       permanent / http://hudson.warpspeed dot com dot au/hudson/

#    ErrorDocument 400 http://inet3.warpspeed dot com dot au/error/hudson/400.htm
#    ErrorDocument 401 /error/hudson/401.htm
#    ErrorDocument 402 http://inet3.warpspeed dot com dot au/error/hudson/402.htm
#    ErrorDocument 403 http://inet3.warpspeed dot com dot au/error/hudson/403.htm
#    ErrorDocument 404 http://inet3.warpspeed dot com dot au/error/hudson/404.htm
#    ErrorDocument 405 http://inet3.warpspeed dot com dot au/error/hudson/405.htm
#    ErrorDocument 406 http://inet3.warpspeed dot com dot au/error/hudson/406.htm
#    ErrorDocument 407 http://inet3.warpspeed dot com dot au/error/hudson/407.htm
#    ErrorDocument 408 http://inet3.warpspeed dot com dot au/error/hudson/408.htm
#    ErrorDocument 409 http://inet3.warpspeed dot com dot au/error/hudson/409.htm
#    ErrorDocument 410 http://inet3.warpspeed dot com dot au/error/hudson/410.htm
#    ErrorDocument 411 http://inet3.warpspeed dot com dot au/error/hudson/411.htm
#    ErrorDocument 412 http://inet3.warpspeed dot com dot au/error/hudson/412.htm
#    ErrorDocument 413 http://inet3.warpspeed dot com dot au/error/hudson/413.htm
#    ErrorDocument 414 http://inet3.warpspeed dot com dot au/error/hudson/414.htm
#    ErrorDocument 415 http://inet3.warpspeed dot com dot au/error/hudson/415.htm
#    ErrorDocument 500 http://inet3.warpspeed dot com dot au/error/hudson/500.htm
#    ErrorDocument 501 http://inet3.warpspeed dot com dot au/error/hudson/501.htm
#    ErrorDocument 502 http://inet3.warpspeed dot com dot au/error/hudson/502.htm
#    ErrorDocument 503 http://inet3.warpspeed dot com dot au/error/hudson/503.htm
#    ErrorDocument 504 http://inet3.warpspeed dot com dot au/error/hudson/504.htm
#    ErrorDocument 505 http://inet3.warpspeed dot com dot au/error/hudson/505.htm

</VirtualHost>

Thanks for any assistance offered.

-Chris

WarpSpeed Computers - The Graham Utilities for OS/2.
Voice:  +61-3-9395-1504   Internet:   chrisg at warpspeed dot com dot au
FAX:    +61-3-9395-7633   Web Page:   http://www.warpspeed dot com dot au
Postal: WarpSpeed Computers, PO Box 4293, Hoppers Crossing DC, VIC 3029, AUSTRALIA



----------------------------------------------------------------------------------
 

**= Email   2 ==========================**

Date:  Sat, 06 Dec 2008 19:24:24 +1100 (EDT)
From:  "Chris Graham [WarpSpeed]" <chrisg at warpspeed dot com dot au>
Subject:  Re:  Java programming

On Sun, 30 Nov 2008 22:53:18 +1100, Peter Moylan wrote:

>Peter Moylan wrote:
>> That still leaves a puzzle. My CLASSPATH is now
>>
>> SET 
>> CLASSPATH=.;C:\JAVA11\LIB\SecMa.jar;C:\java11\Swing\swingall.jar;C:\java11\lib\classes.zip;.\.;C:\OS2\JAVAAPPS\LVMGUI.ZIP;C:\TCPIP\java;
>Aha! I've just noticed something that perfectly illustrates what I 
>mentioned in another message. This CLASSPATH includes the LVMGUI 
>directory. In other words, EVERY Java application gets to search a 
>directory that belongs to one project. A directory that should have been 
>private to LVMGUI project. There is nothing global about that directory. 
>It should have been omitted from the global CLASSPATH.
>
>I have argued elsewhere that environment variables are a symptom of 
>obsolescent operating systems. Why? Because they promote 
>PROJECT-SPECIFIC data to the status of GLOBAL variables. That's bad for 
>two reasons. First, because once you've installed a few applications 
>your PATH blows out to an unreasonable size. (That's very obvious in 
>older versions of Windows. In newer versions you instead put 
>program-specific data into a global registry, which is just as bad; but 
>that's another subject.) Second, because information that is supposed to 
>be private is instead made public. That's not merely a confidentiality 
>violation; it's much worse. It means that EVERY application has to worry 
>about conflicts with every other application. Not just the presently 
>installed applications, but every conceivable future application.
>
>Now, Java is supposed to be a modern programming language. For that 
>reason, I refuse to believe that it uses environment variables. Whoever 
>ported it to OS/2 has screwed up.

You can always use:

java -cp ... blah.class

or

java -classpath (for older versions from memory).

-Chris

WarpSpeed Computers - The Graham Utilities for OS/2.
Voice:  +61-3-9395-1504   Internet:   chrisg at warpspeed dot com dot au
FAX:    +61-3-9395-7633   Web Page:   http://www.warpspeed dot com dot au
Postal: WarpSpeed Computers, PO Box 4293, Hoppers Crossing DC, VIC 3029, AUSTRALIA


----------------------------------------------------------------------------------
 

