Unconfigured Ad Widget

Collapse

Announcement

Collapse
No announcement yet.

FTP to host dir

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment

    Working...
    X