Advertisement
Guest User

Untitled

a guest
Jul 4th, 2017
505
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.12 KB | None | 0 0
  1. ProxyPass /app1/ http://internal1.example.com/
  2. ProxyPass /app2/ http://internal2.example.com/
  3.  
  4. ProxyPassReverse /app1/ http://internal1.example.com/
  5. ProxyPassReverse /app2/ http://internal2.example.com/
  6.  
  7. HTTP/1.1 302 Found
  8. Location: http://internal.example.com/foo/
  9. //ProxyPass lets this through to user browser as-is!
  10.  
  11. HTTP/1.1 302 Found
  12. Location: http://www.example.com/foo/
  13.  
  14. 77.38.177.177 - - [30/Jun/2017:19:21:48 +0000] "CONNECT auth.api.sonyentertainmentnetwork.com:443 HTTP/1.1" 400 226 "-" "-"
  15. 138.201.29.228 - - [30/Jun/2017:19:21:48 +0000] "CONNECT www.stoiximan.gr:443 HTTP/1.1" 200 - "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1409.70 Safari/537.36"
  16. 94.122.39.35 - - [30/Jun/2017:19:21:49 +0000] "A" 400 226 "-" "-"
  17. 77.108.80.2 - - [30/Jun/2017:19:20:48 +0000] "CONNECT artiwell.com:443 HTTP/1.1" 200 - "-" "-"
  18. 138.201.19.161 - - [30/Jun/2017:19:21:48 +0000] "CONNECT www.bet-at-home.com:443 HTTP/1.1" 200 - "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/17.0.1232.63 Safari/537.36"
  19. 77.108.80.2 - - [30/Jun/2017:19:21:48 +0000] "GET http://sea-tools.com.ua/oborudovanie/betonomeshalki/filter/287-k-werk HTTP/1.1" 200 25537 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.87 Safari/537.36"
  20. 94.158.152.58 - - [30/Jun/2017:19:21:49 +0000] "A" 400 226 "-" "-"
  21. 138.201.19.161 - - [30/Jun/2017:19:21:48 +0000] "GET http://sports.titanbet.com/en/e/5260805/Ansan-Police-v-Ansan-Greeners?mkt_grp_code=TMWIN HTTP/1.1" 200 25023 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.604.118 Safari/537.36"
  22. 117.1.114.50 - - [30/Jun/2017:19:21:49 +0000] "GET http://static.doubleclick.net/instream/ad_status.js HTTP/1.1" 200 29 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36"
  23. 94.158.152.58 - - [30/Jun/2017:19:21:49 +0000] "CONNECT static.doubleclick.net:443 HTTP/1.0" 200 - "-" "-"
  24. 185.71.186.147 - - [30/Jun/2017:19:21:49 +0000] "CONNECT static.sportsinteraction.net:443 HTTP/1.1" 200 - "-" "-"
  25.  
  26. NameVirtualHost *:80
  27.  
  28. <Directory "/data/websource">
  29. DirectoryIndex index.html index.php
  30. AllowOverride All
  31. # Allow open access:
  32. Require all granted
  33. </Directory>
  34. <VirtualHost *:80>
  35. ServerName subdomain1.my.domain
  36. DocumentRoot "web_root/subdomain1/source/www"
  37. ServerAdmin postmaster@dummy-host2.localhost
  38. ErrorLog "logs/subdomain1-error.log"
  39. CustomLog "logs/subdomain1-access.log" combined
  40.  
  41. #turn on proxy
  42.  
  43. ProxyPreserveHost On
  44. ProxyRequests On
  45.  
  46. ProxyPass /classroom1 http://xyz.my.other.ip/classroom1
  47. ProxyPassReverse /classroom1 http://xyz.my.other.ip/classroom1
  48.  
  49. ProxyPass /bigbluebutton/ http://xyz.my.other.ip/bigbluebutton/
  50. ProxyPassReverse /bigbluebutton/ http://xyz.my.other.ip/bigbluebutton/
  51.  
  52. ProxyPass /client/ http://xyz.my.other.ip/client/
  53. ProxyPassReverse /client/ http://xyz.my.other.ip/client/
  54.  
  55. ProxyPass /bbb http://xyz.my.other.ip/
  56. ProxyPassReverse /bbb http://xyz.my.other.ip/
  57.  
  58. ProxyPass /demo/ http://xyz.my.other.ip/demo/
  59. ProxyPassReverse /demo/ http://xyz.my.other.ip/demo/
  60.  
  61. ProxyPass /streams.xml http://xyz.my.other.ip/streams.xml
  62. ProxyPassReverse /streams.html http://xyz.my.other.ip/streams.html
  63.  
  64. ProxyPass /testjava.html http://xyz.my.other.ip/testjava.html
  65. ProxyPassReverse /testjava.html http://xyz.my.other.ip/testjava.html
  66.  
  67. ProxyPass /myngleapi/ http://xyz.my.other.ip/myngleapi/
  68. ProxyPassReverse /myngleapi/ http://xyz.my.other.ip/myngleapi/
  69.  
  70. ProxyPass /myngleapi http://xyz.my.other.ip/myngleapi
  71. ProxyPassReverse /myngleapi http://xyz.my.other.ip/myngleapi
  72.  
  73. ProxyPass /help.html http://xyz.my.other.ip/help.html
  74. ProxyPassReverse /help.html http://xyz.my.other.ip/help.html
  75.  
  76. ProxyPass /call.php http://www.source/mynglevline/call.php
  77. ProxyPassReverse /call.php http://www.source/mynglevline/call.php
  78.  
  79. </VirtualHost>
  80. <VirtualHost *:80>
  81. ServerName subdomain2.my.domain
  82. DocumentRoot "web_root/subdomain1/source/admin"
  83. ServerAdmin postmaster@dummy-host2.localhost
  84. ErrorLog "logs/subdomain1-admin-error.log"
  85. CustomLog "logs/subdomain1-admin-access.log" combined
  86.  
  87. </VirtualHost>
  88. <VirtualHost *:80>
  89. ServerName subdomain3.my.domain
  90. DocumentRoot "web_root/subdomain3/source/www"
  91. ServerAdmin postmaster@dummy-host2.localhost
  92. ErrorLog "logs/subdomain3-error.log"
  93. CustomLog "logs/subdomain3-access.log" combined
  94.  
  95. #turn on proxy
  96.  
  97. ProxyPreserveHost On
  98. ProxyRequests On
  99.  
  100. ProxyPass /classroom1 http://xyz.my.other.ip/classroom1
  101. ProxyPassReverse /classroom1 http://xyz.my.other.ip/classroom1
  102.  
  103. ProxyPass /bigbluebutton/ http://xyz.my.other.ip/bigbluebutton/
  104. ProxyPassReverse /bigbluebutton/ http://xyz.my.other.ip/bigbluebutton/
  105.  
  106. ProxyPass /client/ http://xyz.my.other.ip/client/
  107. ProxyPassReverse /client/ http://xyz.my.other.ip/client/
  108.  
  109. ProxyPass /bbb http://xyz.my.other.ip/
  110. ProxyPassReverse /bbb http://xyz.my.other.ip/
  111.  
  112. ProxyPass /demo/ http://xyz.my.other.ip/demo/
  113. ProxyPassReverse /demo/ http://xyz.my.other.ip/demo/
  114.  
  115. ProxyPass /streams.xml http://xyz.my.other.ip/streams.xml
  116. ProxyPassReverse /streams.html http://xyz.my.other.ip/streams.html
  117.  
  118. ProxyPass /testjava.html http://xyz.my.other.ip/testjava.html
  119. ProxyPassReverse /testjava.html http://xyz.my.other.ip/testjava.html
  120.  
  121. ProxyPass /myngleapi/ http://xyz.my.other.ip/myngleapi/
  122. ProxyPassReverse /myngleapi/ http://xyz.my.other.ip/myngleapi/
  123.  
  124. ProxyPass /myngleapi http://xyz.my.other.ip/myngleapi
  125. ProxyPassReverse /myngleapi http://xyz.my.other.ip/myngleapi
  126.  
  127. ProxyPass /help.html http://xyz.my.other.ip/help.html
  128. ProxyPassReverse /help.html http://xyz.my.other.ip/help.html
  129.  
  130. ProxyPass /call.php http://www.source/mynglevline/call.php
  131. ProxyPassReverse /call.php http://www.source/mynglevline/call.php
  132.  
  133. </VirtualHost>
  134. <VirtualHost *:80>
  135. ServerName subdomain4.my.domain
  136. DocumentRoot "web_root/subdomain3/source/admin"
  137. ServerAdmin postmaster@dummy-host2.localhost
  138. ErrorLog "logs/subdomain3-admin-error.log"
  139. CustomLog "logs/subdomain3-admin-access.log" combined
  140.  
  141. </VirtualHost>
  142. <VirtualHost *:80>
  143. ServerName subdomain5.my.domain
  144. DocumentRoot "web_root/subdomain5/source/www"
  145. ServerAdmin postmaster@dummy-host2.localhost
  146. ErrorLog "logs/release-error.log"
  147. CustomLog "logs/release-access.log" combined
  148.  
  149. #turn on proxy
  150.  
  151. ProxyPreserveHost On
  152. ProxyRequests On
  153.  
  154. ProxyPass /classroom1 http://xyz.my.other.ip/classroom1
  155. ProxyPassReverse /classroom1 http://xyz.my.other.ip/classroom1
  156.  
  157. ProxyPass /bigbluebutton/ http://xyz.my.other.ip/bigbluebutton/
  158. ProxyPassReverse /bigbluebutton/ http://xyz.my.other.ip/bigbluebutton/
  159.  
  160. ProxyPass /client/ http://xyz.my.other.ip/client/
  161. ProxyPassReverse /client/ http://xyz.my.other.ip/client/
  162.  
  163. ProxyPass /bbb http://xyz.my.other.ip/
  164. ProxyPassReverse /bbb http://xyz.my.other.ip/
  165.  
  166. ProxyPass /demo/ http://xyz.my.other.ip/demo/
  167. ProxyPassReverse /demo/ http://xyz.my.other.ip/demo/
  168.  
  169. ProxyPass /streams.xml http://xyz.my.other.ip/streams.xml
  170. ProxyPassReverse /streams.html http://xyz.my.other.ip/streams.html
  171.  
  172. ProxyPass /testjava.html http://xyz.my.other.ip/testjava.html
  173. ProxyPassReverse /testjava.html http://xyz.my.other.ip/testjava.html
  174.  
  175. ProxyPass /myngleapi/ http://xyz.my.other.ip/myngleapi/
  176. ProxyPassReverse /myngleapi/ http://xyz.my.other.ip/myngleapi/
  177.  
  178. ProxyPass /myngleapi http://xyz.my.other.ip/myngleapi
  179. ProxyPassReverse /myngleapi http://xyz.my.other.ip/myngleapi
  180.  
  181. ProxyPass /help.html http://xyz.my.other.ip/help.html
  182. ProxyPassReverse /help.html http://xyz.my.other.ip/help.html
  183.  
  184. ProxyPass /call.php http://www.source/mynglevline/call.php
  185. ProxyPassReverse /call.php http://www.source/mynglevline/call.php
  186.  
  187. </VirtualHost>
  188. <VirtualHost *:80>
  189. ServerName subdomain6.my.domain
  190. DocumentRoot "web_root/subdomain5/source/admin"
  191. ServerAdmin postmaster@dummy-host2.localhost
  192. ErrorLog "logs/subdomain5-admin-error.log"
  193. CustomLog "logs/subdomain5-admin-access.log" combined
  194.  
  195. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement