PDA

View Full Version : file management 101


dgehan
03-27-2007, 04:06 AM
I've uploaded a file to a newly-created subdirectory in CGI-BIN. What is the exact URL address I'm to type in from a remote computer to access the file?

Will I need to go through CNC to access it?

Thanks.

Arthur
03-27-2007, 05:03 AM
The URL would be http://yourdomain/cgi-bin/subdirectory/filename.ext

However, I noticed a couple of things when I took a peek; PowerPoint files are not CGI scripts and if you want someone to be able to download them, you would need to place them in the www directory (or a subdirectory of it). Also, the .ppt file is in the cgi-bin directory, not in the subdirectory you created there.

-Arthur

dgehan
03-27-2007, 05:23 AM
Thanks for getting back.

Ok, I've created a subdirectory within www, and placed the file there. Would the URL then be http://domain/www/subdirectory/filename.ext? I'm getting 404 file not found when I try that.

Appreciate your help.

Arthur
03-27-2007, 05:29 AM
Ok, I've created a subdirectory within www, and placed the file there. Would the URL then be http://domain/www/subdirectory/filename.ext? No, you should not add the 'www', the URL would be something like;

http://domain/subdirectory/filename.ext

Another thing to remember is that filenames are case-sensitive, Filename.ppt and filename.ppt for example are not the same.

-Arthur