+ Reply to Thread
Results 1 to 2 of 2

Thread: FTP to host dir

  1. #1
    Guest.Visitor Guest

    Default FTP to host dir

    I have a subdirectory in root called "public". I can successfully put a file to root but not to the subdirectory. When "/" is current directory, I cannot further specify "public" because I get an error - Specified directory does not exist or cannot be accessed. If, on my PUT, I specify /public/ in front of my file name I get an error - 426 - Unable to open or create file /public to receive data. Is this an authority issue or do I have a FTP command syntax problem? I know that I have successfully put the file to root because when I use the DIR command when "/" is current directory I can see that the file is there. I have several files in my "public" directory already because when I key my URL from a Web browser - http://myas400host.com/public/ I can see an index of things in Public listed. Thanks

  2. #2

    Default FTP to host dir

    When "/" is current directory, I cannot further specify "public" because I get an error - Specified directory does not exist or cannot be accessed. If, on my PUT, I specify /public/ in front of my file name I get an error - 426 - Unable to open or create file /public to receive data. That says that you don't have a /public folder in your root directory, Gary. I have several files in my "public" directory already because when I key my URL from a Web browser - http://myas400host.com/public/ I can see an index of things in Public listed. That doesn't necessarily mean that you have a /public directory, Gary. In fact, it probably does NOT meant that - it probably means you have a /public folder somewhere else in your IFS. It depends on the Pass directives in your configuration file. The default configuration file is in file QTCP/QATMHTTPC, member CONFIG. Take a look at that file, and look for Pass directives, such as the following: Pass /public/* /QIBM/ProdData/HTTP/public/* The above line will "Pass" (that is, redirect) any requests to http://myas400.com/public to http://myas400.com/QIBM/ProdData/HTTP/public. When you are looking at your directory for /public, you are most likely looking at a directory for the folder /public somewhere else in your IFS. You will almost always use redirection, because you NEVER want to give anyone access to your root directory; this then gives them access to the QSYS file system and provides the potential for all kinds of problems. Also, Pass directives can be more generic. Take a look at the following line: Pass /* /QIBM/ProdData/HTTP/* This line will do the exact same thing as the first line for a request to "/public", basically putting "/QIBM/ProdData/HTTP" on the front of the file name, because "/*" is a wildcard that will match anything. Anyway, take a look at your QATMHTTPC file and see if you can find the Pass statements. Hope this helps. src="//www.zappie.net/java/_derived/index.htm_cmp_zero110_vbtn_p.gif" width="140" height="60" border="0" alt="Java400.net - Java/400 Freeware" align="middle"> Java400.Net - where the AS/400 speaks Java with an RPG accent Home of PBD2.0, the color=red>FREE Java/400 Client/Server color=blue>Revitalization Toolkit

+ Reply to Thread

Similar Threads

  1. Cannot Find Host...........
    By R.Daugherty in forum General
    Replies: 8
    Last Post: 04-24-2007, 08:18 AM
  2. FTP to the host name
    By S.Mildenberger in forum General
    Replies: 2
    Last Post: 10-02-2002, 12:49 PM
  3. Host On-Demand anyone???
    By David Abramowitz in forum Programming
    Replies: 7
    Last Post: 06-13-2001, 01:17 PM
  4. FTP - Cannot resolve host name
    By Guest.Visitor in forum Networking
    Replies: 2
    Last Post: 04-05-2000, 11:22 AM
  5. PC host vs. AS/4 host
    By Guest.Visitor in forum Analysis
    Replies: 0
    Last Post: 01-01-1995, 02:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts