cgi-bin in your public_html directory. Use the
following command to create the "cgi-bin" directory first:
mkdir $HOME/public_html/cgi-bin |
http://teaching.ust.hk/cgi-bin/cgiwrap/~course_code/CGI_program_name |
The URL for course comp123 with the program "testprog.cgi" is
http://teaching.ust.hk/cgi-bin/cgiwrap/~comp123/testprog.cgi |
http://teaching.ust.hk/cgi-bin/cgiwrap/comp123/testprog.cgi |
To execute the same script but get debugging/unformated output:
http://teaching.ust.hk/cgi-bin/cgiwrapd/comp123/testprog.cgi |
To query the imagemap "mymap.map" in the public_html directory of the course "comp123":
http://teaching.ust.hk/cgi-bin/imagemap/~comp123/mymap.map |
http://teaching.ust.hk/~comp123/mymap.map (for image map only and file extension must be .map) |
http://teaching.ust.hk/cgi-bin/auth/cgiwrap/course_code/CGI_program_name |
http://teaching.ust.hk/cgi-bin/auth/cgiwrap/~course_code/CGI_program_name |
AuthName HKUST AuthType Basic <Limit GET POST> require valid-user </Limit> |