Apache - Difference between ScriptAlias and WSGIScriptAlias
Posted
by
Jiri Kadlec
on Server Fault
See other posts from Server Fault
or by Jiri Kadlec
Published on 2012-10-18T12:18:24Z
Indexed on
2012/10/18
23:04 UTC
Read the original article
Hit count: 380
I'm using apache on RHEL Linux server In my /etc/httpd/conf.d/httpd.conf there are two directives:
WSGIScriptAlias /apps /var/www/apps
<Directory /var/www/apps >
Options MultiViews ExecCGI
MultiviewsMatch Handlers
SetHandler wsgi-script
Order allow, deny
allow from all
</Directory>
ScriptAlias /scripts /var/www/scripts
<Directory /var/www/scripts >
Options MultiViews ExecCGI
MultiviewsMatch Handlers
SetHandler wsgi-script
Order allow, deny
allow from all
</Directory>
What is the difference? I understand that WSGIScriptAlias is restricted for running Python scripts and ScriptAlias also allows running perl scripts.
Can I always use ScriptAlias instead of WSGIScriptAlias? Are there any performance advantages of using WSGIScriptAlias instead of ScriptAlias?
© Server Fault or respective owner