TEXT   18

apache proxy

Guest on 21st May 2022 08:25:05 AM

  1. To add to Apache:
  2.  
  3. Edit httpd.conf
  4.  
  5.  
  6. (Apache/2)
  7. Uncomment these proxy modules at the beginning:
  8. -------------------------------------------------------------------
  9. LoadModule proxy_module modules/proxy.dll
  10. LoadModule proxy_connect_module modules/proxy_co.dll
  11. LoadModule proxy_ftp_module modules/proxy_ft.dll
  12. LoadModule proxy_http_module modules/proxy_ht.dll
  13.  
  14.  
  15. (Apache 1.3.x)
  16. Uncomment these proxy modules at the beginning:
  17. -------------------------------------------------------------------
  18. LoadModule proxy_module       libexec/libproxy.so
  19. AddModule mod_proxy.c
  20.  
  21.  
  22. Uncomment the following and add the ProxyPass and ProxyPassReverse
  23. lines as per example. Replace the IP with yours:
  24. -------------------------------------------------------------------
  25. #
  26. # Proxy Server directives. Uncomment the following lines to
  27. # enable the proxy server:
  28. #
  29. <IfModule mod_proxy.c>
  30. ProxyRequests On
  31.  
  32. #<Proxy *>
  33. #    Order deny,allow
  34. #    Deny from all
  35. #    Allow from .com
  36. #</Proxy>
  37.  
  38. ProxyPass /content http://192.168.xx.xx:8080/content
  39. ProxyPassReverse /content http://192.168.xx.xx:8080/content
  40. ProxyPass /misc_ http://192.168.xx.xx:8080/misc_
  41. ProxyPass /p_ http://192.168.xx.xx:8080/p_
  42.  
  43. #
  44. # Enable/disable the handling of HTTP/1.1 "Via:" headers.
  45. # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
  46. # Set to one of: Off | On | Full | Block
  47. #
  48. ProxyVia On
  49.  
  50. #
  51. # To enable the cache as well, edit and uncomment the following lines:
  52. # (no cacheing without CacheRoot)
  53. #
  54. #CacheRoot "/Apps/apache2/proxy"
  55. #CacheSize 5
  56. #CacheGcInterval 4
  57. #CacheMaxExpire 24
  58. #CacheLastModifiedFactor 0.1
  59. #CacheDefaultExpire 1
  60. #NoCache a-domain.com another-domain.edu joes.garage-sale.com
  61.  
  62. </IfModule>
  63. # End of proxy directives.
  64.  
  65.  
  66. Restart Apache
  67.  
  68.  
  69. You can now access your Zope Zserver in Apache via the directory /content
  70. as per example
  71.  
  72.  
  73. * NOTE *  If you are proxying your main server ie; Apache you will need to add
  74. a <base href=  > tag in your Zope pages for your internet url.
  75.  
  76.  
  77.   --
  78.   Ted Sikora
  79.   tsikora@ntplx.net
  80.  
  81.  
  82.  
  83. 

Raw Paste


Login or Register to edit or fork this paste. It's free.