Differences between revisions 2 and 4 (spanning 2 versions)
Revision 2 as of 2009-06-16 11:49:08
Size: 837
Editor: 77-56-110-124
Comment:
Revision 4 as of 2009-07-01 07:50:30
Size: 808
Editor: 84-75-191-209
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
 * download this script as [[attachment:public_uploadscript_via_perl|index.cgi]]  * download this script as [[attachment:index.cgi]]

Providing a public http upload script on your website with perl

  • download this script as index.cgi

  • copy it to ~/public_html/get/index.cgi

  • run chmod a+rx ~/public_html/get/

  • run chmod a+rx ~/public_html/get/index.cgi

  • create a directory mkdir ~/public_upload/ writable only for you chmod go-rwx ~/public_upload. The script will run with the rights of your account (through apache's suexec mechanism).

  • you can restrict the access to the script with a .htaccess file in ~/public_html/get/. Find more about this here.

  • the files will now be uploaded to ~/public_upload/

  • now you can access the script via http://people.ee.ethz.ch/~[USERNAME]/get

Web/Homepage/Upload (last edited 2020-09-02 09:52:33 by pmeier)