Questions tagged [scriptalias]

10 questions
3
votes
2 answers

Apache - Difference between ScriptAlias and WSGIScriptAlias

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 Options MultiViews ExecCGI MultiviewsMatch Handlers SetHandler wsgi-script …
Jiri Kadlec
  • 31
  • 1
  • 2
2
votes
1 answer

Is it safe to comment out the ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ directive?

I am setting up a server with php support. In few days on-line, I have been target (unsuccessfully) with the typical attack: "201.212.25.79 - - [29/Jan/2014:06:17:03 +0000] "POST…
2
votes
1 answer

Apache2 Virtual Host with ScriptAlias returning 403

I am trying to reference my libs directory which is a sibling directory to my DocumentRoot. I am using the following ScriptAlias to try to accomplish this. ScriptAlias /libs/ "../libs" But when I go to example.com/libs/ I get a the following…
sissonb
  • 207
  • 4
  • 9
0
votes
1 answer

Apache2 tries to access top-level directory when using ScriptAlias

I'm using Munin-cgi as my servers' monitoring system. One moment i realized that i have strange and very annoying notes in my error.log whilst everything kept running well and without errors. At the moment i commented out everything in my apache…
Diver
  • 1
  • 3
0
votes
1 answer

How can I password protect & let cgi-bin to work?

This is taken from sites-available directory. It's a virtual host setting for apache. Accessing myiphere/cgi-bin/ throws 403. The directory setting for /var/www2/ drwxrwxrwx 8 www-data www-data NameVirtualHost myiphere
jaaaaaaax
0
votes
1 answer

accessing /cgi-bin/ throws 403 forbidden

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all …
asdfasdf
0
votes
1 answer

Redirect to Python script in .htaccess while maintaining request URL

I have a website configured with Apache for http://www.example.com located in /var/www/example.com/. For an arbitrary sub-path of this website I would like to have all requests handled by a Python script. e.g. all requests for…
DanielGibbs
  • 573
  • 5
  • 13
  • 32
0
votes
1 answer

Changes in SetEnv directives not seen in scriptalias

I need to read an environment variable in a ScriptAlias script. So I have SetEnv directives to set these variables, in the following apache configuration. ServerName ... DocumentRoot /srv/www ServerAlias git DocumentRoot…
jolivier
  • 141
  • 1
  • 9
0
votes
1 answer

Different ScriptAliasMatch for domain, www.domain, and *.domain

My current httpd.conf uncludes: ScriptAliasMatch ^/$ /qsys.lib/something.lib/index.pgm ScriptAliasMatch /cgi/(.*) /qsys.lib/something.lib/$1.pgm We are soon going to have many subdomains, which we setup in a database, meaning that if someone goes…
0
votes
2 answers

attempt to invoke directory as script?

ScriptAlias /cgi-bin/ /var/www/cgi-bin/ AllowOverride None AddHandler cgi-script pl cgi Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from…
vvvvvvv