Advertisement
Guest User

Untitled

a guest
Sep 20th, 2015
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.63 KB | None | 0 0
  1. ProxyRequests Off
  2. ProxyPreserveHost On
  3. <Proxy *>
  4. Order deny,allow
  5. Allow from all
  6. </Proxy>
  7. ProxyPass / http://WhichIPand:Port/
  8. ProxyPassReverse / http://WhichIPand:Port/
  9.  
  10. Server 1 will have: domain1.com, domain2.com
  11. Server 2 will have: domain3.com, domain4.com
  12.  
  13. 127.0.01 domain1.com
  14. 127.0.01 domain2.com
  15. 127.0.01 domain3.com
  16. 127.0.01 domain4.com
  17.  
  18. NameVirtualHost *
  19.  
  20. <VirtualHost *:80>
  21. ServerName domain1.com
  22. ServerAlias www.domain1.com
  23. ServerAdmin admin@domain1.com
  24. DocumentRoot "/Library/WebServer/joomla"
  25. ErrorLog /Library/WebServer/joomla/error_domain1.log
  26. <Directory "/Library/WebServer/joomla">
  27. Options Indexes FollowSymLinks MultiViews
  28. AllowOverride All AuthConfig
  29. Order allow,deny
  30. Allow from all
  31. </Directory>
  32. ProxyRequests Off
  33. ProxyPreserveHost On
  34. <Proxy *>
  35. Order deny,allow
  36. Allow from all
  37. </Proxy>
  38. ProxyPass / http://10.1.10.2:8080/
  39. ProxyPassReverse / http://10.1.10.2:8080/
  40. </VirtualHost>
  41.  
  42.  
  43. <VirtualHost *:80>
  44. ServerName domain2.com
  45. ServerAlias www.domain2.com
  46. ServerAdmin admin@domain2.com
  47. DocumentRoot "/Library/WebServer/webb"
  48. ErrorLog /Library/WebServer/webb/error_domain2.log
  49. <Directory "/Library/WebServer/webb">
  50. Options Indexes FollowSymLinks MultiViews
  51. AllowOverride None
  52. Order allow,deny
  53. Allow from all
  54. </Directory>
  55. ProxyRequests Off
  56. ProxyPreserveHost On
  57. <Proxy *>
  58. Order deny,allow
  59. Allow from all
  60. </Proxy>
  61. ProxyPass / http://10.1.10.2:8080/
  62. ProxyPassReverse / http://10.1.10.2:8080/
  63. </VirtualHost>
  64.  
  65.  
  66.  
  67. My Server 2 on LAN IP: 10.1.10.2, OSX Snow setup on virtual host: httpd-vhost.conf
  68.  
  69. <VirtualHost *:80>
  70. ServerName domain3.com
  71. ServerAlias www.domain3.com
  72. ServerAdmin admin@domain3.com
  73. DocumentRoot "/Library/WebServer/domain3"
  74. ErrorLog /Library/WebServer/domain3/error_cj.log
  75. <Directory "/Library/WebServer/domain3">
  76. Options Indexes FollowSymLinks MultiViews
  77. AllowOverride All AuthConfig
  78. Order allow,deny
  79. Allow from all
  80. </Directory>
  81. </VirtualHost>
  82.  
  83.  
  84. <VirtualHost *:80>
  85. ServerName domain4.org
  86. ServerAlias www.domain4.org
  87. ServerAdmin admin@domain4.org
  88. DocumentRoot "/Library/WebServer/domain4"
  89. ErrorLog /Library/WebServer/domain4/error_fn.log
  90. <Directory "/Library/WebServer/domain4">
  91. Options Indexes FollowSymLinks MultiViews
  92. AllowOverride All AuthConfig
  93. Order allow,deny
  94. Allow from all
  95. </Directory>
  96. </VirtualHost>
  97.  
  98. ProxyRequests Off
  99. ProxyPreserveHost On
  100. NameVirtualHost *
  101.  
  102. <VirtualHost *:80>
  103. ServerName domain1.com
  104. ServerAlias www.domain1.com
  105. ServerAdmin admin@domain1.com
  106. DocumentRoot "/Library/WebServer/joomla"
  107. ErrorLog /Library/WebServer/joomla/error_domain1.log
  108. <Directory "/Library/WebServer/joomla">
  109. Options Indexes FollowSymLinks MultiViews
  110. AllowOverride All AuthConfig
  111. Order allow,deny
  112. Allow from all
  113. </Directory>
  114. </VirtualHost>
  115.  
  116. <VirtualHost *:80>
  117. ServerName domain2.com
  118. ServerAlias www.domain2.com
  119. ServerAdmin admin@domain2.com
  120. DocumentRoot "/Library/WebServer/webb"
  121. ErrorLog /Library/WebServer/webb/error_domain2.log
  122. <Directory "/Library/WebServer/webb">
  123. Options Indexes FollowSymLinks MultiViews
  124. AllowOverride None
  125. Order allow,deny
  126. Allow from all
  127. </Directory>
  128. </VirtualHost>
  129.  
  130. <VirtualHost *:80>
  131. ServerName domain3.com
  132. ServerAlias www.domain3.com
  133. ServerAdmin admin@domain3.com
  134. ProxyPass / http://10.1.10.2:80/
  135. ProxyPassReverse / http://10.1.10.2:80/
  136. </VirtualHost>
  137.  
  138. <VirtualHost *:80>
  139. ServerName domain4.com
  140. ServerAlias www.domain4.com
  141. ServerAdmin admin@domain4.com
  142. ProxyPass / http://10.1.10.2:80/
  143. ProxyPassReverse / http://10.1.10.2:80/
  144. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement