Added reverseproxy script
This commit is contained in:
20
server/reverseproxy
Normal file
20
server/reverseproxy
Normal file
@@ -0,0 +1,20 @@
|
||||
<VirtualHost *:80>
|
||||
ProxyPreserveHost On
|
||||
DocumentRoot /home/pi/www/html/
|
||||
|
||||
|
||||
# Enable proxying WebSockets
|
||||
ProxyPass /ws ws://localhost:8001/
|
||||
ProxyPassReverse /ws ws://localhost:8001/
|
||||
# Enable proxying HTTP
|
||||
ProxyPass /http http://localhost:8080/
|
||||
|
||||
ProxyPass /putData http://localhost:5000/putData
|
||||
ProxyPassReverse /putData http://localhost:5000/putData
|
||||
ProxyPass /flask http://localhost:5000/
|
||||
ProxyPassReverse /flask http://localhost:5000/
|
||||
ProxyPreserveHost On
|
||||
# Logging
|
||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||
</VirtualHost>
|
Reference in New Issue
Block a user