Guest User

Untitled

a guest
Mar 22nd, 2023
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.76 KB | None | 0 0
  1. ┌─[root][kanapa][/etc/apache2/sites-enabled]
  2. └─▪ cat 999-default.conf
  3. #https://www.prettifier.net/apache/
  4. <IfModule mod_ssl.c>
  5. SSLStaplingCache shmcb:/var/run/apache2/stapling_cache(128000)
  6. <VirtualHost _default_:443>
  7. ServerAdmin webmaster@localhost
  8. use SSLed
  9. ServerName XXX.TLD
  10. DocumentRoot /var/www/html
  11.  
  12. ErrorLog ${APACHE_LOG_DIR}/proxy_error.log
  13. CustomLog ${APACHE_LOG_DIR}/proxy_access.log combined
  14. ProxyRequests Off
  15. ProxyPreserveHost Off
  16. DirectoryIndex index.html index.php /_h5ai/public/index.php
  17.  
  18. <Proxy *>
  19. Order deny,allow
  20. Allow from all
  21. </Proxy>
  22.  
  23. ########################################################### migrated to dockerz ##############
  24. # qbit - 2nd kill zone !!!!!
  25. RewriteEngine On
  26. RewriteRule ^/command/?(.*)$ /torrent/command/$1 [P]
  27.  
  28. <Location /qbt/>
  29. ProxyPass http://192.168.88.219:9092/
  30. ProxyPassReverse http://192.168.88.219:9092/
  31. </Location>
  32. # end of killzone !!!!
  33.  
  34. <Location /radarr>
  35. ProxyPass http://192.168.88.219:7878/radarr connectiontimeout=5 timeout=300
  36. ProxyPassReverse http://192.168.88.219:7878/radarr
  37. </Location>
  38.  
  39. <Location /seriale>
  40. ProxyPass http://192.168.88.219:8998/seriale connectiontimeout=5 timeout=300
  41. ProxyPassReverse http://192.168.88.219:8998/seriale
  42. </Location>
  43.  
  44. <Location /anime>
  45. ProxyPass http://192.168.88.219:8999/anime connectiontimeout=5 timeout=300
  46. ProxyPassReverse http://192.168.88.219:8999/anime
  47. </Location>
  48.  
  49. # portainer zone - touch and will kill on sight !
  50. <Location /portainer/>
  51. ProxyPass http://192.168.88.219:9000/
  52. ProxyPassReverse http://192.168.88.219:9000/
  53. </Location>
  54.  
  55. <Location /portainer/api/websocket/>
  56. RequestHeader set Upgrade $http_upgrade;
  57. RequestHeader set Connection "upgrade"
  58. ProxyPass ws://192.168.88.219:9000/api/websocket/
  59. </Location>
  60. # end of killzone
  61.  
  62. <Location /filebrowser/>
  63. ProxyPass http://192.168.88.219:8585/filebrowser
  64. ProxyPassReverse http://192.168.88.219:8585/filebrowser
  65.  
  66. ProxyPreserveHost On
  67. RewriteEngine On
  68. RewriteCond %{HTTP:Connection} Upgrade [NC]
  69. RewriteCond %{HTTP:Upgrade} websocket [NC]
  70. RewriteRule (.*) ws://192.168.88.219:8585/$1 [P,L]
  71. </Location>
  72.  
  73. <Location /octoprint/>
  74. RequestHeader set X-SCRIPT-NAME /octoprint/
  75. RequestHeader set X-SCHEME https
  76. ProxyPassReverse http://192.168.88.218:5000/
  77.  
  78. RewriteEngine on
  79. RewriteCond %{HTTP:UPGRADE} =websocket [NC]
  80. RewriteRule /octoprint/(.*) ws://192.168.88.218/$1 [P,L]
  81. RewriteCond %{HTTP:UPGRADE} !=websocket [NC]
  82. RewriteRule /octoprint/(.*) http://192.168.88.218/$1 [P,L]
  83. </Location>
  84. ........
  85. </VirtualHost>
  86. </IfModule>
  87.  
Add Comment
Please, Sign In to add comment