[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 241
  • Last Modified:

ScriptAlias having no effect on ability to execute .cgi files

I have enabled alias_module and cgi_module in my apache 2.2 installation. I have added a section:

    <IfModule alias_module>
       ScriptAlias /digin-cgi/ "/opt/openbdjam/webroot1/push20/digin-cgi/"

my scripts are 'x' executable permissioned and live in the file system directory **/opt/openbdjam/webroot1/push20/digin-cgi**. However, when i go to my webserver (something like the address below) in a browser i just get a 404 not found:

 - http://myserver.com/digin-cgi/test.cgi

In case it matters - my server root is set to:

    DocumentRoot "/opt/openbdjam/webroot1"

no amount of restarting helps!

any ideas?
  • 2
1 Solution
Jan SpringerCommented:
Do you have this in your conf file:

AddHandler cgi-script .cgi

and what do your error logs say exactly?
arndale65Author Commented:
Yes i have that

Just realised that a proxy setting was overriding all my others:

changed :

ProxyPass /


ProxyPass /push20

and works!
arndale65Author Commented:
my own config issue

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now