Advertisement
capitannemo

apache2-httpd.include.conf

Nov 4th, 2012
1,223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. # --
  2. # added for OTRS (http://otrs.org/)
  3. # $Id: apache2-httpd.include.conf,v 1.25 2011/11/05 17:39:09 mb Exp $
  4. # --
  5.  
  6. # agent, admin and customer frontend
  7. ScriptAlias /otrs/ "C:/OTRS/OTRS/bin/cgi-bin/"
  8. Alias /otrs-web/ "C:/OTRS/OTRS/var/httpd/htdocs/"
  9.  
  10. # activate this if you are using an Oracle database
  11. #SetEnv ORACLE_HOME /path/to/your/oracle/
  12. #SetEnv ORACLE_SID YOUR_SID
  13. #SetEnv NLS_LANG AMERICAN_AMERICA.UTF8
  14. #SetEnv NLS_DATE_FORMAT 'YYYY-MM-DD HH24:MI:SS'
  15.  
  16. # if mod_perl is used
  17. <IfModule mod_perl.c>
  18.  
  19. # load all otrs modules
  20. Perlrequire C:/OTRS/OTRS/scripts/apache2-perl-startup.pl
  21.  
  22. # Apache::Reload - Reload Perl Modules when Changed on Disk
  23. PerlModule Apache2::Reload
  24. PerlInitHandler Apache2::Reload
  25. PerlModule Apache2::RequestRec
  26.  
  27. # set mod_perl2 options
  28. <Location /otrs>
  29. # ErrorDocument 403 /otrs/customer.pl
  30. ErrorDocument 403 /otrs/index.pl
  31. SetHandler perl-script
  32. PerlResponseHandler ModPerl::Registry
  33. Options +ExecCGI
  34. PerlOptions +ParseHeaders
  35. PerlOptions +SetupEnv
  36. Order allow,deny
  37. Allow from all
  38. </Location>
  39.  
  40. # set mod_perl2 option for generic interface
  41. <Location /otrs/nph-genericinterface.pl>
  42. PerlOptions -ParseHeaders
  43. </Location>
  44.  
  45. </IfModule>
  46.  
  47. # directory settings
  48. <Directory "C:/OTRS/OTRS/bin/cgi-bin/">
  49. AllowOverride None
  50. Options None
  51. Order allow,deny
  52. Allow from all
  53.  
  54. AuthName "OTRS"
  55. AuthType SSPI
  56. SSPIAuth On
  57. SSPIAuthoritative On
  58. SSPIUsernameCase lower
  59. SSPIOmitDomain On
  60. require valid-user
  61.  
  62. Options +ExecCGI -Includes
  63.  
  64. </Directory>
  65. <Directory "C:/OTRS/OTRS/var/httpd/htdocs/">
  66. AllowOverride None
  67. Order allow,deny
  68. Allow from all
  69. </Directory>
  70.  
  71. <IfModule mod_headers.c>
  72. <Directory "C:/OTRS/OTRS/var/httpd/htdocs/skins/*/*/css-cache">
  73. <FilesMatch "\.(css|CSS)$">
  74. Header set Cache-Control "max-age=2592000 must-revalidate"
  75. </FilesMatch>
  76. </Directory>
  77.  
  78. <Directory "C:/OTRS/OTRS/var/httpd/htdocs/js/js-cache">
  79. <FilesMatch "\.(js|JS)$">
  80. Header set Cache-Control "max-age=2592000 must-revalidate"
  81. </FilesMatch>
  82. </Directory>
  83. </IfModule>
  84.  
  85. # MaxRequestsPerChild (so no apache child will be to big!)
  86. MaxRequestsPerChild 4000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement