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

x
  • 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/"
    </IfModule>

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?
0
arndale65
Asked:
arndale65
  • 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?
0
 
arndale65Author Commented:
Yes i have that

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

changed :

ProxyPass / http://127.0.0.1:8080/

to

ProxyPass /push20 http://127.0.0.1:8080/push20

and works!
0
 
arndale65Author Commented:
my own config issue
0

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