Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. <Virtualhost 0.0.0.0:8181>
  2.  
  3. ServerName test
  4. DocumentRoot /srv/www/test.pro/www
  5. ErrorLog /srv/www/test.pro/logs/error.log
  6.  
  7. <Directory "/srv/www/test.pro/www">
  8. Options MultiViews FollowSymLinks
  9. AllowOverride all
  10. Require all granted
  11. </Directory>
  12.  
  13. ScriptAlias /cgi-bin /srv/www/test.pro/www/cgi-bin
  14. <Directory "/srv/www/test.pro/www/cgi-bin">
  15. AddHandler cgi-script .cgi
  16. AllowOverride None
  17. Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  18. Require all granted
  19. SetHandler cgi-script
  20. </Directory>
  21.  
  22. <Location />
  23. LimitRequestBody 5242880
  24. </Location>
  25. </VirtualHost>
  26.  
  27. <Virtualhost 0.0.0.0:8181>
  28.  
  29. LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so
  30.  
  31. ServerName test
  32. DocumentRoot /srv/www/test.pro/www
  33. ErrorLog /srv/www/test.pro/logs/error.log
  34.  
  35. #######
  36. # Added for the mod_perl - startup.pl runs fine when run in command line manually
  37. # All the modules also exist
  38. PerlRequire /srv/www/test.pro/startup.pl
  39. PerlModule Apache2::Reload
  40. PerlInitHandler Apache2::Reload
  41. PerlModule Apache2::RequestRec
  42. #######
  43.  
  44. <Directory "/srv/www/test.pro/www">
  45. Options MultiViews FollowSymLinks
  46. AllowOverride all
  47. Require all granted
  48. </Directory>
  49.  
  50. ScriptAlias /cgi-bin /srv/www/test.pro/www/cgi-bin
  51. <Directory "/srv/www/test.pro/www/cgi-bin">
  52. AddHandler perl-script .cgi
  53. AllowOverride None
  54. Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  55. Require all granted
  56. </Directory>
  57.  
  58. <Location />
  59. LimitRequestBody 5242880
  60. </Location>
  61.  
  62. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement