m***@gmail.com
2016-10-17 18:40:04 UTC
Hello, I havent setup reverse proxy before and am having some problems
we have a webserver (Centos 6.8) running httpd and currently serving a single TeamCity app via a port#
our current reverse proxy setting is like this
cat /etc/httpd/conf.d/app01.conf
LoadModule headers_module /usr/lib64/httpd/modules/mod_headers.so
LoadModule proxy_wstunnel_module /usr/lib64/httpd/modules/mod_proxy_wstunnel.so
ProxyRequests Off
RewriteEngine On
<VirtualHost *:80>
Redirect / https://teamcity.xxx.local/
</VirtualHost>
<VirtualHost *:443>
ServerAlias teamcity.xxx.local
ServerAlias team-city.xxx.local
RewriteCond %{HTTP_HOST} !=teamcity.xxx.local [NC]
RewriteRule (.*) https://teamcity.xxx.local%{REQUEST_URI} [R,L]
SSLCertificateKeyFile "/etc/pki/tls/private/myhost.xxx.local.pem"
SSLCertificateFile "/etc/pki/tls/certs/myhost.xxx.local.pem"
SSLCertificateChainFile "/etc/pki/ca-trust/source/anchors/xxx_intermediate_ca.crt"
ProxyPass /app/subscriptions ws://localhost:8111/app/subscriptions connectiontimeout=240 timeout=1200
ProxyPassReverse /app/subscriptions ws://localhost:8111/app/subscriptions
ProxyPass / http://localhost:8111/ connectiontimeout=5 timeout=300
ProxyPassReverse / http://localhost:8111/
</VirtualHost>
I want to add anther reverse proxy for another application running on port 8850 (SSL rev proxy). Wondering if anyone can provide an example of how to set this up.
I tried copiying the existing TeamCity setup, changing ports, etc, but its not working correctly.
Thanks
we have a webserver (Centos 6.8) running httpd and currently serving a single TeamCity app via a port#
our current reverse proxy setting is like this
cat /etc/httpd/conf.d/app01.conf
LoadModule headers_module /usr/lib64/httpd/modules/mod_headers.so
LoadModule proxy_wstunnel_module /usr/lib64/httpd/modules/mod_proxy_wstunnel.so
ProxyRequests Off
RewriteEngine On
<VirtualHost *:80>
Redirect / https://teamcity.xxx.local/
</VirtualHost>
<VirtualHost *:443>
ServerAlias teamcity.xxx.local
ServerAlias team-city.xxx.local
RewriteCond %{HTTP_HOST} !=teamcity.xxx.local [NC]
RewriteRule (.*) https://teamcity.xxx.local%{REQUEST_URI} [R,L]
SSLCertificateKeyFile "/etc/pki/tls/private/myhost.xxx.local.pem"
SSLCertificateFile "/etc/pki/tls/certs/myhost.xxx.local.pem"
SSLCertificateChainFile "/etc/pki/ca-trust/source/anchors/xxx_intermediate_ca.crt"
ProxyPass /app/subscriptions ws://localhost:8111/app/subscriptions connectiontimeout=240 timeout=1200
ProxyPassReverse /app/subscriptions ws://localhost:8111/app/subscriptions
ProxyPass / http://localhost:8111/ connectiontimeout=5 timeout=300
ProxyPassReverse / http://localhost:8111/
</VirtualHost>
I want to add anther reverse proxy for another application running on port 8850 (SSL rev proxy). Wondering if anyone can provide an example of how to set this up.
I tried copiying the existing TeamCity setup, changing ports, etc, but its not working correctly.
Thanks