So I have apache running... with cgi-bin in /apache/cgi-bin and htdocs in /apache/htdocs (all default config).
Now I have a html file in htdocs, and within that I am trying to call a perl document by using <form ... action="cgi-bin/xxx.pl">
However, if I do that, it would mean the cgi-bin directory would be relative to the htdocs dir (/apache/htdocs/cgi-bin) rather than accessing /apache/cgi-bin.
I tried using absolute path (probably not a good idea even if it works) and "../cgi-bin/xxx.pl".
So what should I put in <form ... action="...">? Or is there something that I can change in httpd.conf?
Now I have a html file in htdocs, and within that I am trying to call a perl document by using <form ... action="cgi-bin/xxx.pl">
However, if I do that, it would mean the cgi-bin directory would be relative to the htdocs dir (/apache/htdocs/cgi-bin) rather than accessing /apache/cgi-bin.
I tried using absolute path (probably not a good idea even if it works) and "../cgi-bin/xxx.pl".
So what should I put in <form ... action="...">? Or is there something that I can change in httpd.conf?