Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

How to enable directory

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  403 Forbidden error  
Author Message
user

External


Since: Jul 01, 2006
Posts: 1



(Msg. 1) Posted: Sat Jul 01, 2006 11:08 am
Post subject: How to enable directory
Archived from groups: alt>apache>configuration (more info?)

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>

 >> Stay informed about: How to enable directory 
Back to top
Login to vote
David

External


Since: Apr 06, 2006
Posts: 40



(Msg. 2) Posted: Sat Jul 01, 2006 11:08 am
Post subject: Re: How to enable directory [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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/

 >> Stay informed about: How to enable directory 
Back to top
Login to vote
Die_spammers

External


Since: Jun 15, 2006
Posts: 2



(Msg. 3) Posted: Sun Jul 02, 2006 7:08 pm
Post subject: Re: How to enable directory [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Enable directory browsing? - Hi I get the following error message when I call my public webdir without an index.html: --- Forbidden You don't have permission to access /~moeller/ on this server. Apache/2.0.47 (Unix) mod_ssl/2.0.47 OpenSSL/0.9.7 Server --- This worked in the past...

cant enable cgi - Hi, I've got Mandrake 9.2 installed and apache 2 Server Version: Apache-AdvancedExtranetServer/1.3.28 (Mandrake Linux/3mdk) mod_perl/1.28 Server Built: Sep 15 2003 07:33:36 I've got a line in my html file: &lt;!--#exec..

How to enable SSL? - I can access my apache server 2.0.46 via http://mydomain.com. However, I cannot access https://mydomain.com. I've obtained a temporary cert from VeriSign, configured the ssl.conf like: SSLCertificateFile /etc/httpd2/conf/ssl.crt/public.crt..

Haw to enable cookies - Hi, I`ve just compiled apache 1.3.29 with SSL support. Everythings works fine except cookies. I tried to enabled mod_usertrack but It doesn`r work. What should I do ?? regards, Paul

How to enable cookie in the server - Hi, I am trying setup the Apache 2.0.40 on the RedHat 10. I can't seem to store the cookie. I checked all the environment variables on the server from the browser, HTTP_COOKIE is not listed. The codes for listing the environment are placed after..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]