Problem running Stash behind apache2 mod_proxy



I set up apache2 as a reverse proxy for stash, setting up a context path stash.

Unfortuantely it does not work but gives a Internal server error 500. In the error log I find:

[Tue Jul 29 20:22:32 2014] [error] proxy: ap_get_scoreboard_lb(1) failed in child 27166 for worker proxy:reverse
[Tue Jul 29 20:22:32 2014] [error] proxy: ap_get_scoreboard_lb(0) failed in child 27166 for worker http://localhost:7990/stash<br< a="">>[Tue Jul 29 20:22:39 2014] [crit] [client <my_ip>] configuration error: couldn't perform authentication. AuthType not set!: /stash/

The only thing I can think of is that you need to put some Location or Directory around those Proxy* Commands.

from my apache vhost:

<IfModule mod_proxy.c>
ProxyRequests Off
<Proxy *>
Order deny,allow
allow from all
# Order deny,allow
# Deny from all
# Allow from localhost
# ProxyVia On
ProxyPass /stash/
http://localhost:7990/stashconnectiontimeout=5 timeout=300
ProxyPassReverse /stash/ http://localhost:7990/stash<br< a="">> </IfModule>

<Location /stash>
Order allow,deny
Allow from all
Require all granted

Without the line "require all granted", I get Forbidden errors like

[client <my_ip>] client denied by server configuration: proxy:http://localhost:7990/stash

from my server.xml:

<Connector port="7990" protocol="HTTP/1.1"

1 answer

the machine is running debian 7 so apache is at 2.2.22

This means the Require command is probably not needed. That is for apache 2.4

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

266 views 0 12
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you