David <youcantoo.TakeThisOut@findmoore.net> wrote:
>123 wrote:
>> I have Apache 2.x running on a home server. I want my perl scripts to run and
>> access files in a directory that is not under Apache directory tree.
>>
>> Currenty I have Apache to run scripts at
>> C:\Program Files\Apache Group\Apache2\htdocs
>>
>> Scripts can access file there but not anywhere else.
>>
>> For example:
>>
>> <html>
>> <p>Test</p>
>> <p>
>> <form action="testing.pl" method="post">
>> <input type="text" name="testing1" value="Hello world">
>> </form>
>> </html>
>>
>> Above works fine but I'd like to keep my perl script at c:\pfiles on my computer.
>>
>> I've set:
>> <Directory "C:/pfiles">
>> AllowOverride None
>> Options None
>> Order allow,deny
>> Allow from all
>> </Directory>
>>
>> in httpd.conf but below does not run:
>>
>> <html>
>> <p>Test</p>
>> <p>
>> <form action="c:\\pfiles\\testing.pl" method="post">
>> <input type="text" name="testing1" value="Hello world">
>> </form>
>> </html>
>
>
>add the following to your VirtualHost container in the httpd.conf file
>
>ScriptAlias /cgi-bin/ /path/to/directory/where/cgi/files/are/
Does not help:
I added:
ScriptAlias /cgi-bin/ /C:/pfiles/
<Directory "C:/pfiles">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
Neither does this:
ScriptAlias /cgi-bin/ /pfiles/
<Directory "C:/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
What else can I try? I am running out of iterations. Apache seems to recognise
only pl files under Apache directory branch somewhere.
>> Stay informed about: How to enable directory