ScriptAlias and Alias in httpd.conf at a glance

This Tutorial Has Been Viewed 1,386 Times.

Here i am gonna quickly explain you the difference between ScriptAlias and Alias
example:

ScriptAlias /cgi-bin / www/cgi-bin/

A request for http://mywebpage.com/cgi-bin/foobar would cause the server to run the script /www/cgi-bin/foobar. This configuration is essentially equivalent to:

Alias /cgi-bin/ /www/cgi-bin/
<Location /cgi-bin >
SetHandler cgi-script
Options +ExecCGI
</Location>

It is safer to avoid placing CGI scripts under the DocumentRoot in order to avoid accidentally revealing their source code if the configuration is ever changed.
The same is reflected in http://httpd.apache.org/docs/2.0/mod/ to know more :)

VN:F [1.9.13_1145]
Rating: 9.0/10 (1 vote cast)
VN:F [1.9.13_1145]
Rating: 0 (from 0 votes)

ScriptAlias and Alias in httpd.conf at a glance, 9.0 out of 10 based on 1 rating

Incoming search terms:





You will also be interested in ,

Tags: , ,

Leave a Reply

Spam protection by WP Captcha-Free

Proudly designed by Mistonline.in.
Affordable Seo PackagesSeo BlogEdu Backlinks
More in Apache, htaccess (13 of 26 articles)


Some times the AddHandler application/x-httpd-php .php .htm .html .my whatever if you put this in .htaccess file or in HTTPD.conf ...