Jump to content

Apache Reverse Proxy Not Working


pokmiuhy

Recommended Posts

pokmiuhy

I'm new here and to Emby, but love it so far. 

 

I'm trying to get it set up behind a reverse proxy and cannot get it working to save my life. I've ready this thread multiple times and still can't get it working. 

 

My .conf file is below. All the applications get passed to the correct internal server with exception of Emby and Grafana. Is there anything I'm missing or doing wrong? I'm pulling out my hair trying to get it working. 

<IfModule mod_ssl.c>
	<VirtualHost _default_:443>
		ServerAdmin webmaster@[member="Localhost"]

		DocumentRoot /var/www/html
		
		ProxyRequests off

		ErrorLog ${APACHE_LOG_DIR}/error.log
		CustomLog ${APACHE_LOG_DIR}/access.log combined

		SSLEngine on
		SSLProxyEngine on

		SSLCertificateFile	/etc/apache2/ssl/apache.crt
		SSLCertificateKeyFile /etc/apache2/ssl/apache.key

		
		
		<FilesMatch "\.(cgi|shtml|phtml|php)$">
				SSLOptions +StdEnvVars
		</FilesMatch>
		<Directory /usr/lib/cgi-bin>
				SSLOptions +StdEnvVars
		</Directory>

		BrowserMatch "MSIE [2-6]" \
				nokeepalive ssl-unclean-shutdown \
				downgrade-1.0 force-response-1.0
		# MSIE 7 and newer should be able to use keepalive
		BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
		
		ErrorDocument 404 /errors/404.html

		<Proxy *>
			Order deny,allow
			Allow from all
		</Proxy>

		ProxyPass /zoneminder http://192.168.1.71/zm
		ProxyPassReverse /zoneminder http://192.168.1.71/zm
		
		ProxyPass /mysql http://192.168.1.73/phpmyadmin
		ProxyPassReverse /mysql http://192.168.1.73/phpmyadmin
		
		ProxyPass /owncloud http://192.168.1.74/owncloud
		ProxyPassReverse /owncloud http://192.168.1.74/owncloud

		ProxyPass /helpdesk http://192.168.1.76/helpdesk
		ProxyPassReverse /helpdesk http://192.168.1.76/helpdesk

		ProxyPass /helpdesk/scp http://192.168.1.76/helpdesk/scp
		ProxyPassReverse /helpdesk/scp http://192.168.1.76/helpdesk/scp

		ProxyPass /guacamole http://192.168.1.77:8080/guacamole
		ProxyPassReverse /guacamole http://192.168.1.77:8080/guacamole

		ProxyPass /grafana http://192.168.1.78:3000/login
		ProxyPassReverse /grafana http://192.168.1.78:3000/login/

		ProxyPass /emby http://192.168.1.79:8096/emby/
		ProxyPassReverse /emby http://192.168.1.79:8096/emby/

		ProxyPass /mediawiki http://192.168.1.80/mediawiki
		ProxyPassReverse /mediawiki http://192.168.1.80/mediawiki

	</VirtualHost>
</IfModule>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...