Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerName example.com
  3. ScriptAlias "/cgi-bin/" "/opt/example/lib/"
  4. ProxyRequests Off
  5. <Proxy *>
  6. Order deny,allow
  7. Allow from all
  8. </Proxy>
  9. ProxyPreserveHost On
  10. ProxyPass /bar http://x.x.x.x/bar
  11. ProxyPassReverse /bar http://x.x.x.x/bar
  12. </VirtualHost>
  13.  
  14. Alias /foo /opt/example/script/fastcgi.pl/
  15.  
  16. <Directory "/opt/example/lib/">
  17. Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  18. Require all granted
  19. AddHandler cgi-script .pl
  20. SetHandler cgi-script
  21. </Directory>
  22.  
  23. FastCgiServer /opt/example/script/fastcgi.pl -processes 3 -idle-timeout 3600
  24.  
  25. <Directory "/opt/example/script/">
  26. Require all granted
  27. </Directory>
  28.  
  29. <VirtualHost *:80>
  30. ServerName example2.com
  31. ScriptAlias "/cgi-bin/" "/opt/example/lib/"
  32. </VirtualHost>
  33.  
  34. Alias /bar /opt/example/script/fastcgi.pl/
  35.  
  36. <Directory "/opt/example/lib/">
  37. Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  38. Require all granted
  39. AddHandler cgi-script .pl
  40. SetHandler cgi-script
  41. </Directory>
  42.  
  43. FastCgiServer /opt/example/script/fastcgi.pl -processes 3 -idle-timeout 3600
  44.  
  45. <Directory "/opt/example/script/">
  46. Require all granted
  47. </Directory>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement