Apache 2.2: Execute CGI script from user directory
Hi all,
I try to execute a CGI script in a user directory, but all my browser is displaying is the source code! The same script works when called from the main cgi scripts location. After searching in the apache documentation, I think it's a user configuration problem but I can't fix it. Here's the revelant (I think)parts of my httpd.conf : Code:
... What do I miss? |
Change the following part of your config:
Quote:
Code:
<Directory /home/*/html/cgi-bin> |
You need this
Code:
ScriptAlias /cgi-bin/ "/home/*/html/cgi-bin/" |
Well, thanks but neither of your answer work! Any more ideas?
|
What is the filename extension of the cgi script you're trying to run? If it's not .cgi or .pl, you should add it in the "AddHandler ..." directive.
|
To Bathory: my scripts are .cgi ended.
To Datopdog: If I SciptAlias "/cgi-bin/" to "/home/*/html/cgi-bin/" I can't run script from the main cgi location (/var/www/cgi-bin/), I have seen on boot up messages that there's a ScriptAlias overlap problem, but I can't found it in any httpd/log files! Can I have only one SrciptAlias directive? To all: I add a change "<Directory /home/*/html/cgi-bin>" into "<Directory /home/*/html/cgi-bin/>" without more success. After some google'ing, I found that It could be caused by SELinux, but as far as I know SELinux isn't loaded on my box, I'll look on that way. |
Quote:
Check again the config file and also make sure that you don't have a .htaccess file in ~/ or ~/cgi-bin, that overwrites the httpd.conf settings. |
All times are GMT -5. The time now is 04:51 PM. |