rtapache.conf 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. ##
  2. ## rtapache.conf -- RT Apache Custom Configuration
  3. ## ______________________________________________________
  4. ##
  5. ServerType standalone
  6. ServerRoot @l_prefix@
  7. ServerAdmin root@@l_hostname@.@l_domainname@
  8. ServerName @l_hostname@.@l_domainname@
  9. ServerTokens Prod
  10. User @l_rusr@
  11. Group @l_rgrp@
  12. Port 8380
  13. Listen 127.0.0.1:8380
  14. # runtime files
  15. PidFile @l_prefix@/var/rt/run/apache.pid
  16. ScoreBoardFile @l_prefix@/var/rt/run/apache.sb
  17. LockFile @l_prefix@/var/rt/run/apache.lock
  18. # server behaviour
  19. Timeout 300
  20. KeepAlive on
  21. MaxKeepAliveRequests 100
  22. KeepAliveTimeout 15
  23. MinSpareServers 5
  24. MaxSpareServers 10
  25. StartServers 5
  26. MaxClients 15
  27. MaxRequestsPerChild 500
  28. HostnameLookups off
  29. UseCanonicalName on
  30. # access logging
  31. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  32. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  33. LogFormat "%{Referer}i -> %U" referer
  34. LogFormat "%{User-agent}i" agent
  35. CustomLog @l_prefix@/var/rt/log/access.log common
  36. # error logging
  37. LogLevel warn
  38. ErrorLog @l_prefix@/var/rt/log/error.log
  39. ServerSignature on
  40. # secure root directory
  41. <Directory />
  42. Options FollowSymLinks
  43. AllowOverride None
  44. </Directory>
  45. # browser specifics
  46. <IfModule mod_setenvif.c>
  47. BrowserMatch "Mozilla/2" nokeepalive
  48. BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  49. BrowserMatch "RealPlayer 4\.0" force-response-1.0
  50. BrowserMatch "Java/1\.0" force-response-1.0
  51. BrowserMatch "JDK/1\.0" force-response-1.0
  52. </IfModule>
  53. # SSL/TLS support
  54. <IfModule mod_ssl.c>
  55. SSLRandomSeed startup builtin
  56. SSLRandomSeed connect builtin
  57. SSLMutex sem
  58. SSLSessionCache shmcb:@l_prefix@/var/rt/run/ssl_scache(512000)
  59. SSLSessionCacheTimeout 300
  60. SSLLog @l_prefix@/var/rt/log/ssl.log
  61. SSLLogLevel warn
  62. SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
  63. SetEnvIf User-Agent ".*MSIE.*" \
  64. nokeepalive ssl-unclean-shutdown \
  65. downgrade-1.0 force-response-1.0
  66. <Files ~ "\.(cgi|shtml|phtml|php?)$">
  67. SSLOptions +StdEnvVars
  68. </Files>
  69. <Directory "@l_prefix@/cgi">
  70. SSLOptions +StdEnvVars
  71. </Directory>
  72. </IfModule>
  73. # configure global document root
  74. DocumentRoot @l_prefix@/libexec/rt/WebRT/html
  75. <Directory "@l_prefix@/libexec/rt/WebRT/html">
  76. Options FollowSymLinks
  77. AllowOverride None
  78. Order allow,deny
  79. Allow from all
  80. </Directory>
  81. <IfModule mod_perl.c>
  82. PerlModule Apache::DBI
  83. PerlRequire @l_prefix@/cgi/rt/webmux.pl
  84. <Location />
  85. SetHandler perl-script
  86. PerlHandler RT::Mason
  87. </Location>
  88. </IfModule>
  89. <LocationMatch "/NoAuth/images">
  90. SetHandler None
  91. </LocationMatch>