Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

WSGIScriptAlias is a parameter used for the python module and they can't be used interchangeably.

share|improve this answer

ScriptAlias is for cgi-script handler in Apache. WSGIScriptAlias is equivalent for wsgi-script. If you want to mix them in the same directory, don't use either, use Alias, Options ExecCGI, AddHandler directives instead. See:

http://code.google.com/p/modwsgi/wiki/ConfigurationGuidelines#The_Apache_Alias_Directive

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.