Welcome to the Linux Foundation Forum!

Failing to connect apache2 with ScriptAlias | Lab 8.1

Hi guys,

I'm trying to set up a ScriptAlias on an apache2 server, but when I try to connect to it using the alias, I get a Forbidden error:

This is my /etc/apache2/apache.conf:

cgi.load is enabled on /etc/apache2/mods-enabled/:

This is the /new-cgi/foo.cgi file and its permissions:

And if I do sudo su www-data -s /bin/bash, I can access the file and execute it without any problems.

There are some warnings (not fatal) in the logs plus a AH01630: client denied by server configuration which I believe is the cause of the problem but I can't figure out how to solve it:

My version of Apache2 is 2.4.41

Thanks in advance for any help!

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training