Reputation: 1046
I'm trying to reverse proxy a bugzilla 4.2.3 site using Apache 2.4.
Bugzilla is on HTTP and I have no access to configuration.
This is my Apache config:
<VirtualHost bug.mydomain.com:443>
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/mydomain.crt
SSLCertificateKeyFile /etc/pki/tls/private/mydomain.key
ServerAdmin [email protected]
ServerName bug.mydomain.com
RequestHeader unset Accept-Encoding
ProxyPass "/" "http://192.168.x.x/bugzilla/"
ProxyPassReverse "/" "http://192.168.x.x/bugzilla/"
AddOutputFilterByType SUBSTITUTE text/html
Substitute "s|http://192.168.x.x/bugzilla/|https://bug.mydomain.com/|i"
</VirtualHost>
href
are successfully updated by Apache but bugzilla make internal usage of HTTP 30x redirects and those are not substituted by my rules.
This is my request:
This is the reply:
Is it possible to rewrite also those redirects ?
Upvotes: 1
Views: 147
Reputation: 1046
The only workaround I found is adding a HTTP
virtualhost:
<VirtualHost bug.mydomain.com:80>
ServerAdmin [email protected]
Redirect permanent /bugzilla/ https://bug.mydomain.com/
ServerName bug.mydomain.com
</VirtualHost>
Upvotes: 1