I am trying to use cgiemail by following the instructions at
http://web.mit.edu/wwwdev/cgiemail/user.html. Several other websites have listed this document and published the instructions with essentially no changes.
I created a form and placed it on my development subdomain. I also created an email template to match and placed it in the root directory for that subdomain. I then tried to use cgiecho to test it.
1. If I simply set the template in the root for the subdomain (call it my.sub.domain) and set the action in the form as follows:
http://my.sub.domain/email.txt, then when I submit the form, the email template is displayed as expected.
2. I created a subdirectory called cgi-bin and placed email.txt in that directory. I changed the action in the form to
http://my.sub.domain/cgi-bin/email.txt. Now when I submit the form I get Internal Server Error.
3. I changed the subdirectory to cgi and changed the form action to
http://my.sub.domain/cgi/email.txt. When I submit the form, I again get the email template as expected.
4. I copied cgiecho from /public_html/cgi-bin to the cgi directory and changed the form action to
http://my.sub.domain/cgi/cgiecho/cgi/email.txt as stated in the user manual. Now I get Page Not Found.
5. I changed the form action to
http://my.sub.domain/cgi/cgiecho/email.txt. Again, Page Not Found.
Why do I get Internal Server Error as soon as I attempt to reference any file in a subdirectory called cgi-bin?
What am I doing wrong?