Differences between revisions 6 and 25 (spanning 19 versions)
Revision 6 as of 2009-07-01 07:52:52
Size: 821
Editor: 84-75-191-209
Comment:
Revision 25 as of 2020-09-02 09:52:33
Size: 892
Editor: pmeier
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#rev 2018-10-11 pmeier
#rev 2020-09-02 pmeier
Line 5: Line 8:
 * run `chmod a+rx ~/public_html/get/`
 * run `chmod a+rx ~/public_html/get/index.cgi`
 * run `chmod 755 ~/public_html/get/`
 * run `chmod 744 ~/public_html/get/index.cgi`
Line 8: Line 11:
 * you can restrict the access to the script with a `.htaccess` file in `~/public_html/get/`. Find more about this [[http://httpd.apache.org/docs/2.0/howto/htaccess.html|here]].  * you can restrict the access to the script with a `.htaccess` file in `~/public_html/get/`. Find more about this [[https://computing.ee.ethz.ch/Web/Homepage/Security|here]].
Line 10: Line 13:
 * now you can access the script via `http://people.ee.ethz.ch/~[USERNAME]/get`  * now you can access the script via `https://people.ee.ethz.ch/~[USERNAME]/get`
----
[[CategoryWEBS]]

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 755 ~/public_html/get/

  • run chmod 744 ~/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 https://people.ee.ethz.ch/~[USERNAME]/get


CategoryWEBS

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