Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: Configuring httpd.conf to allow the GET requests access |
|
Author |
|
shug94
Joined: 27 Aug 2009 Posts: 9
|
Posted: Wed 02 Sep '09 10:33 Post subject: Configuring httpd.conf to allow the GET requests access |
|
|
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
|
Posted: Wed 02 Sep '09 12:14 Post subject: |
|
|
Use only Alias and not ScriptAlias
ScriptAlias is for Locations with cgi scripts inside. |
|
Back to top |
|
shug94
Joined: 27 Aug 2009 Posts: 9
|
Posted: Wed 02 Sep '09 12:27 Post subject: |
|
|
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 |
|
|
|
|
|
|