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



It looks like the aliasing is forcing everything to "seem" like it is in CGI-BIN, which prevents the use of relative paths (i.e. without the '/'). Normally you would not do that with a CGI app. Your aliasing would force calls to CGI programs to be in a specific library, but allow other resources (static html, css, js etc) to be referenced relative to the current directory - without a preceding '/'.

It does seem like the file was in the wrong place also. I couldn't really work out from the information provided where it was, so assumed it was correctly located, but was being scuppered by the aliasing.

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Dean, Robert
Sent: 17 January 2013 22:17
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] CSS file not being found

I'm confused by this reply, because the directory-relative link was clearly one of the two problems (the storage location of the CSS file being the other).
________________________________________
From: web400-bounces@xxxxxxxxxxxx [web400-bounces@xxxxxxxxxxxx] on behalf of Kevin Turner [kevin.turner@xxxxxxxxxxxxxxx]
Sent: Thursday, January 17, 2013 4:30 PM
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] CSS file not being found

If you are finding that it is looking in your CGI-BIN folder for CSS, rather then it suggests that you have some scriptalias directive(s) that are incorrect.

All these suggestions about putting a '/' at the beginning etc sound like red-herrings to me. There is no need for any of that. The way you are referencing the css file is fine, as long as the directives are OK.

Please post up you Apache config file.



-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Steve Richter
Sent: 17 January 2013 19:16
To: Web Enabling the AS400 / iSeries
Subject: [WEB400] CSS file not being found

Why would my css file not be found for the web page I am serving from a CGI-BIN AS400 library?

this is the url that I navigate to:
http://intranet400.sssss.com/cgi-bin/Dashbd02c

there is a program named dashbd02c in library CGI400 on the as400. This works.

But the CSS is not being found.
fiddler tells me the .css file is being looked for in /cgi-bin/dashbd02b.css

but cgi-bin in this apache config is an as400 library.
ScriptAlias /cgi-bin/ /qsys.lib/cgi400.lib/

Here is my apache config.

The name is INTRANET

the member INTRANET in QATMHINSTC contains the following:
-apache -d /www/intranet -f conf/httpd.conf -AutoStartY

so I would expect the server to search /www/intranet for the .css file. But it is not being found. Fiddler has the line marked in red.
"/cgi-bin/dashbd02b.css"

there are a few <Director> entries in the .CONFD file <Directory /www/steve/css>
order allow,deny
allow from all
</Directory>

currently I have the .CSS file in the /www/intranet directory. also the /www/steve directory.

here is my HTML code:

<html>
<head>
<meta http-equiv="refresh" content="120"> <link rel="stylesheet" href="dashbd02b.css" /> </head> <body> <H1>some heading text</H1> <P> some paragraph text.
</P>
<pre>
some pre text lines
line 1 line 1 line 1 line 1
line 2 line 2 line 2 line 2
line 3 line 3 line 3 line 3
</pre>

</body>
</html>
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.


NOTICE: The information in this electronic mail transmission is intended by CoralTree Systems Ltd for the use of the named individuals or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone, so that the sender's address records can be corrected.



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


CoralTree Systems Limited
25 Barnes Wallis Road
Segensworth East, Fareham
PO15 5TT

Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton, UK
SO15 2EA
VAT Registration Number 834 1020 74.
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.

--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.


NOTICE: The information in this electronic mail transmission is intended by CoralTree Systems Ltd for the use of the named individuals or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone, so that the sender's address records can be corrected.



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


CoralTree Systems Limited
25 Barnes Wallis Road
Segensworth East, Fareham
PO15 5TT

Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton, UK
SO15 2EA
VAT Registration Number 834 1020 74.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.