How to enable directory

This is a discussion on How to enable directory within the Apache Web Server forums, part of the Web Server and Related Forums category; I have Apache 2.x running on a home server. I want my perl scripts to run and access files ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-01-2006
123
 
Posts: n/a
Default How to enable directory

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>
  #2 (permalink)  
Old 07-01-2006
David
 
Posts: n/a
Default Re: How to enable directory

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/
  #3 (permalink)  
Old 07-02-2006
Die_spammers
 
Posts: n/a
Default Re: How to enable directory

David <youcantoo@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.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:18 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0