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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

24,969 views 26 12
Join discussion

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