WebSphere HTTP Server - use /QNTC/server/share in http-server mapping

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere HTTP Server > August 2004 > use /QNTC/server/share in http-server mapping





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author use /QNTC/server/share in http-server mapping
Patrick Goovaerts

2004-08-27, 6:46 pm

Anyone used a /qntc/server/share mapping before ?

I tried but always get following error:
===============>
Forbidden - by rule.
You do not have permission to access /myshare/mydocument.pdf on this server.
===============>

here is a code-snippet:
===============>
....
Alias /testmapping/ /qntc/myserver/myshare/
....
<Directory /qntc/myserver/myshare>
Order Allow,Deny
Allow From all
Require valid-user
AuthName myRealm
AuthType Basic
UserID %%CLIENT%%
PasswdFile %%SYSTEM%%
</Directory>
....
===============>


When I change the mapping to a home_folder (/home/myfolder), it works normal.

thanks.
Ray McVay

2004-08-27, 6:46 pm

Is qntc a domain? Wouldn't the unc then be ///qntc//server/share ?

Patrick Goovaerts wrote:
> Anyone used a /qntc/server/share mapping before ?
>
> I tried but always get following error:
> ===============>
> Forbidden - by rule.
> You do not have permission to access /myshare/mydocument.pdf on this server.
> ===============>
> here is a code-snippet:
> ===============>
> ...
> Alias /testmapping/ /qntc/myserver/myshare/
> ...
> <Directory /qntc/myserver/myshare>
> Order Allow,Deny
> Allow From all
> Require valid-user
> AuthName myRealm
> AuthType Basic
> UserID %%CLIENT%%
> PasswdFile %%SYSTEM%%
> </Directory>
> ...
> ===============>
>
> When I change the mapping to a home_folder (/home/myfolder), it works
> normal.
>
> thanks.

Patrick Goovaerts

2004-08-27, 6:46 pm

QNTC is not a domain. It is a filesystem on the iSeries (AS400) which
points to the
Integrated Windows2000 Server on the iSeries. The folders on the IWS are
accessed through:
/QNTC/server/share

Using this link, I can retrieve foldercontents from inside a jsp in our
Websphere Application Server but cannot do this through the IBM HttpServer
(powered by Apache).




"Ray McVay" <raymmailbox-news@yahoo.com> wrote in message
news:cgjm7v$69le$1@news.boulder.ibm.com...[vbcol=seagreen]
> Is qntc a domain? Wouldn't the unc then be ///qntc//server/share ?
>
> Patrick Goovaerts wrote:
server.[vbcol=seagreen]


Sunit Patke

2004-08-27, 6:46 pm

You are using Alias of /testmapping to point to this directory.
1. Does the user-id that the HTTP server runs with have read access to this
directory tree?
2. What is the URL that you are using to access this document? Can you post
associated lines from access_log and error_log?

Sunit

"Ray McVay" <raymmailbox-news@yahoo.com> wrote in message
news:cgjm7v$69le$1@news.boulder.ibm.com...[vbcol=seagreen]
> Is qntc a domain? Wouldn't the unc then be ///qntc//server/share ?
>
> Patrick Goovaerts wrote:
server.[vbcol=seagreen]


Patrick Goovaerts

2004-08-27, 6:46 pm

1) Yes, the user has full access to that specific folder
2) URL= www.oursystem.be:2021/mappedname/documentname.ext

After adding 'basic authentication' to the root-level (/qntc) too, it seems
the authentication process is running normal now. However, we receive an
HTTP 404 error now (file /qntc/myserver/share) does not exist...

Anyway, access to the top level is possible now so we started at the
top-level to follow the proccess step-by-step to check where/when it goes
wrong. Then we found out that access the toplevel of the tree '/QNTC' or
'/QNTC/myserver' goes without any problem but not the share-folder, although
we see this folder in the parent_folder!

example:
- we load the url which is mapped to the top_folder (qntc)
- we have to enter userid/password
- we receive an html-page indicating 'parent directory' and 'myserver'.
- we click on 'myserver' which returns another page with shares to which we
have access to
- we click on the share but now we receive a page_not_found

==> Error Log shows
[Fri Aug 27 14:22:59 2004] [error] [client 10.0.0.197] ZSRV_MSG0018: File
/QNTC/NTANT014/Conti7 does not exist, referer:
http://www.clippersupport.be:2021/TestFolder/NTANT014/
[Fri Aug 27 14:22:59 2004] [error] [client 10.0.0.197] ZSRV_MSG0016: URI in
request GET /TestFolder/NTANT014/Conti7/ HTTP/1.1 is not valid, referer:
http://www.clippersupport.be:2021/TestFolder/NTANT014/

==> Error Log shows
10.0.0.197 - LG [27/Aug/2004:14:22:46 +0200] "GET /TestFolder/ HTTP/1.1" 200
312 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
10.0.0.197 - LG [27/Aug/2004:14:22:49 +0200] "GET /TestFolder/NTANT014/
HTTP/1.1" 200 505 "http://www.clippersupport.be:2021/TestFolder/"
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
10.0.0.197 - LG [27/Aug/2004:14:22:59 +0200] "GET
/TestFolder/NTANT014/Conti7/ HTTP/1.1" 404 225
"http://www.clippersupport.be:2021/TestFolder/NTANT014/" "Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.0)"




"Sunit Patke" <supatke@nospam.com> wrote in message
news:cgl80j$6egi$1@news.boulder.ibm.com...
> You are using Alias of /testmapping to point to this directory.
> 1. Does the user-id that the HTTP server runs with have read access to

this
> directory tree?
> 2. What is the URL that you are using to access this document? Can you

post
> associated lines from access_log and error_log?
>
> Sunit
>
> "Ray McVay" <raymmailbox-news@yahoo.com> wrote in message
> news:cgjm7v$69le$1@news.boulder.ibm.com...
> server.
>
>



Sunit Patke

2004-08-27, 6:46 pm

Do you have index.html (or similar welcome file) in all folders (/QNTC and
/QNTC/myserver) except the last one (Conti7)?

Sunit

"Patrick Goovaerts" <p.goovaerts@clipper.be> wrote in message
news:cgn9su$3gtm$1@news.boulder.ibm.com...
> 1) Yes, the user has full access to that specific folder
> 2) URL= www.oursystem.be:2021/mappedname/documentname.ext
>
> After adding 'basic authentication' to the root-level (/qntc) too, it

seems
> the authentication process is running normal now. However, we receive an
> HTTP 404 error now (file /qntc/myserver/share) does not exist...
>
> Anyway, access to the top level is possible now so we started at the
> top-level to follow the proccess step-by-step to check where/when it goes
> wrong. Then we found out that access the toplevel of the tree '/QNTC' or
> '/QNTC/myserver' goes without any problem but not the share-folder,

although
> we see this folder in the parent_folder!
>
> example:
> - we load the url which is mapped to the top_folder (qntc)
> - we have to enter userid/password
> - we receive an html-page indicating 'parent directory' and 'myserver'.
> - we click on 'myserver' which returns another page with shares to which

we
> have access to
> - we click on the share but now we receive a page_not_found
>
> ==> Error Log shows
> [Fri Aug 27 14:22:59 2004] [error] [client 10.0.0.197] ZSRV_MSG0018: File
> /QNTC/NTANT014/Conti7 does not exist, referer:
> http://www.clippersupport.be:2021/TestFolder/NTANT014/
> [Fri Aug 27 14:22:59 2004] [error] [client 10.0.0.197] ZSRV_MSG0016: URI

in
> request GET /TestFolder/NTANT014/Conti7/ HTTP/1.1 is not valid, referer:
> http://www.clippersupport.be:2021/TestFolder/NTANT014/
>
> ==> Error Log shows
> 10.0.0.197 - LG [27/Aug/2004:14:22:46 +0200] "GET /TestFolder/ HTTP/1.1"

200
> 312 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
> 10.0.0.197 - LG [27/Aug/2004:14:22:49 +0200] "GET /TestFolder/NTANT014/
> HTTP/1.1" 200 505 "http://www.clippersupport.be:2021/TestFolder/"
> "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
> 10.0.0.197 - LG [27/Aug/2004:14:22:59 +0200] "GET
> /TestFolder/NTANT014/Conti7/ HTTP/1.1" 404 225
> "http://www.clippersupport.be:2021/TestFolder/NTANT014/" "Mozilla/4.0
> (compatible; MSIE 6.0; Windows NT 5.0)"
>
>
>
>
> "Sunit Patke" <supatke@nospam.com> wrote in message
> news:cgl80j$6egi$1@news.boulder.ibm.com...
> this
> post
works[vbcol=seagreen]
>
>



Patrick Goovaerts

2004-08-27, 6:46 pm

PROBLEM SOLVED!

I indicated a ServerUserID at <directory> </directory> level. This must be
at Global Level!

==> ServerUserID QTMHHTTP

must be changed to

==> ServerUserID anotheruser

thanks for your help folks!



"Sunit Patke" <supatke@nospam.com> wrote in message
news:cgne2s$82js$1@news.boulder.ibm.com...
> Do you have index.html (or similar welcome file) in all folders (/QNTC and
> /QNTC/myserver) except the last one (Conti7)?
>
> Sunit
>
> "Patrick Goovaerts" <p.goovaerts@clipper.be> wrote in message
> news:cgn9su$3gtm$1@news.boulder.ibm.com...
> seems
an[vbcol=seagreen]
goes[vbcol=seagreen]
or[vbcol=seagreen]
> although
> we
File[vbcol=seagreen]
> in
> 200
this[vbcol=seagreen]
> works
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com