我正在尝试在Apache2反向代理后面设置SonarQube。点击http://server/sonar时获得404。服务器正在运行Ubuntu 16.04
我在/etc/apache2/sites-enabled/sonar.conf中的配置:
<Virtualhost *:80>
ServerName server
ProxyRequests Off
ProxyPreserveHost On
AllowEncodedSlashes NoDecode
<Proxy http://localhost:9000/*>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /sonar http://localhost:9000/sonar
ProxyPassReverse /sonar http://localhost:9000/sonar
</Virtualhost>
不确定我是否遗漏了某些东西。