logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Configuring httpd.conf to allow the GET requests access
Author
shug94



Joined: 27 Aug 2009
Posts: 9

PostPosted: Wed 02 Sep '09 10:33    Post subject: Configuring httpd.conf to allow the GET requests access Reply with quote

Hey guys,

I have a directory on my Apache Server, and inside are some logfiles which I want to make accessible.

I added the following line inside my <IfModule alias_module> tags of my httpd.conf file:
ScriptAlias /filesToGet/ "C:/Program Files/Apache Software Foundation/Apache2.2/filesToGet/"

Then I added the following directory info outside the IfModule tags:
<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/filesToGet">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

Now if I try to access the files, I get an error, as shown below:
[Wed Sep 02 16:31:08 2009] [error] [client 127.0.0.1] C:/Program Files/Apache Software Foundation/Apache2.2/filesToGet/DataLog01.txt is not executable; ensure interpreted scripts have "#!" first line
[Wed Sep 02 16:31:08 2009] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: C:/Program Files/Apache Software Foundation/Apache2.2/filesToGet/DataLog01.txt

It is like it is trying to run my log file as a script. What am I missing?

Cheers,

Cam
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Wed 02 Sep '09 12:14    Post subject: Reply with quote

Use only Alias and not ScriptAlias Wink

ScriptAlias is for Locations with cgi scripts inside.
Back to top
shug94



Joined: 27 Aug 2009
Posts: 9

PostPosted: Wed 02 Sep '09 12:27    Post subject: Reply with quote

Thankyou so much!

It all seems so easy once someone points it out, but I was entirely unsure of what to try next.

You are a champ.
Back to top


Reply to topic   Topic: Configuring httpd.conf to allow the GET requests access View previous topic :: View next topic
Post new topic   Forum Index -> Apache