Hi,
This has nothing to do with your CGI program.
When you inclose URL's in your HTML it is the
Apache server (that runs under QTMHHTP1 as default)
that will access QNTC and not your CGI program that
only serves the HTML
Try something like this ....
#==================
# APACHE directives
#==================
# PART 1
#==================
ServerUserId USERFORWEB
If you are using resources through QNTC this will become the user
(and its password) other servers sees
Alias /filsrv01 /qntc/filsrv01
<Directory /qntc/filsrv01>
Options None
order allow,deny
allow from all
</Directory>
The ServerUserId will also become the user your CGI program runs under
instead of QTMHHTP1
rgds
henrik
"coryyellow"
<[EMAIL PROTECTED]
.com> To
Sent by: [email protected]
[EMAIL PROTECTED] cc
ogroups.com
Subject
[Easy400Group] Re: URL Linking with
12-12-2005 15:21 CGIDEV2
Please respond to
[EMAIL PROTECTED]
ogroups.com
First thanks all for your advice/responses. I tried it, but it still
doesn't work. Is accessing QNTC even "doable"? I've tried everyting,
and i still get:
_MSG0018: File /QNTC/SERVER1/datasheets does not exist
Is there something else i could be missing? Thanks again for any
input.
--- In [email protected], "Ken & Melissa Parks"
<[EMAIL PROTECTED]> wrote:
>
> I've had problems before accessing the QNTC file system before and
had to change the user in the cgi program to use a valid server
user.
>
> At the top of the CGI Program issue:
>
> C* CHANGE USER FOR QNTC
> C movel 'CLERKS ' NewUser 10
> C call 'CHGUSER'
> C parm NewUser
> C*
>
> --------------------------------------------------------------------
--------------------------------------------
> here is the CL "CHGUSER"
> --------------------------------------------------------------------
--------------------------------------------
> PGM PARM(&USER)
>
> DCL VAR(&USER) TYPE(*CHAR) LEN(10)
> DCL VAR(&HNDL) TYPE(*CHAR) LEN(12)
>
> CALL PGM(QSYGETPH) PARM(&USER '*NOPWDCHK' &HNDL)
> CALL PGM(QWTSETP) PARM(&HNDL)
> CALL PGM(QSYRLSPH) PARM(&HNDL)
>
> ENDPGM
> --------------------------------------------------------------------
--------------------------------------------
>
> Change it back before LR in CGI.
>
> Ken
> ----- Original Message -----
> From: coryyellow
> To: [email protected]
> Sent: Thursday, December 08, 2005 11:24 AM
> Subject: [Easy400Group] URL Linking with CGIDEV2
>
>
> I hope someone can help me. I am trying to create a URL link (to
open a
> PDF)from my HTML with CGIDEV2.I have my alias set up as such:
> Alias /pdf/ /QNTC/SERVER1/datasheets/PDF/
> And in the HTML I have:
> <td align="left"><a target=dsheet href="/%
S1URLI%/">Datasheet</a></td>
> (with ="/%S1URLI%/" containing the variable PDF file name>
> All I keep getting in the log is:
> MSG0018: File /QNTC/SERVER1/datasheets does not exist,
> But it does, and in the exact path that my Alias refers to. Any
and all
> help is appreciated .
>
>
>
>
>
> --------------------------------------------------------------------
----------
> YAHOO! GROUPS LINKS
>
> a.. Visit your group "Easy400Group" on the web.
>
> b.. To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>
> c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms
of Service.
>
>
> --------------------------------------------------------------------
----------
>
Yahoo! Groups Links
------------------------ Yahoo! Groups Sponsor --------------------~-->
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/wbFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Easy400Group/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/