wordpress-apache.conf 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. ##
  2. ## wordpress-apache.conf -- Wordpress Apache Custom Configuration
  3. ##
  4. ServerType standalone
  5. ServerRoot @l_prefix@
  6. ServerAdmin root@@l_hostname@.@l_domainname@
  7. ServerName @l_hostname@.@l_domainname@
  8. ServerTokens Prod
  9. User @l_rusr@
  10. Group @l_rgrp@
  11. Port 8080
  12. Listen 127.0.0.1:8081
  13. # runtime files
  14. PidFile @l_prefix@/var/wordpress/wordpress-apache.pid
  15. ScoreBoardFile @l_prefix@/var/wordpress/wordpress-apache.sb
  16. LockFile @l_prefix@/var/wordpress/wordpress-apache.lck
  17. # server behaviour
  18. Timeout 300
  19. KeepAlive on
  20. MaxKeepAliveRequests 100
  21. KeepAliveTimeout 15
  22. MinSpareServers 5
  23. MaxSpareServers 10
  24. StartServers 5
  25. MaxClients 15
  26. MaxRequestsPerChild 500
  27. HostnameLookups off
  28. UseCanonicalName on
  29. # access logging
  30. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  31. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  32. LogFormat "%{Referer}i -> %U" referer
  33. LogFormat "%{User-agent}i" agent
  34. CustomLog @l_prefix@/var/wordpress/wordpress-apache.access.log common
  35. # error logging
  36. LogLevel warn
  37. ErrorLog @l_prefix@/var/wordpress/wordpress-apache.error.log
  38. ServerSignature on
  39. # secure root directory
  40. <Directory />
  41. Options FollowSymLinks
  42. AllowOverride None
  43. </Directory>
  44. # browser specifics
  45. BrowserMatch "Mozilla/2" nokeepalive
  46. BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  47. BrowserMatch "RealPlayer 4\.0" force-response-1.0
  48. BrowserMatch "Java/1\.0" force-response-1.0
  49. BrowserMatch "JDK/1\.0" force-response-1.0
  50. # SSL/TLS support
  51. <IfModule mod_ssl.c>
  52. SSLRandomSeed startup builtin
  53. SSLRandomSeed connect builtin
  54. SSLMutex sem
  55. SSLSessionCache shmcb:@l_prefix@/var/wordpress/wordpress-apache.scache(512000)
  56. SSLSessionCacheTimeout 300
  57. SSLLog @l_prefix@/var/wordpress/wordpress-apache.ssl.log
  58. SSLLogLevel warn
  59. SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
  60. SetEnvIf User-Agent ".*MSIE.*" \
  61. nokeepalive ssl-unclean-shutdown \
  62. downgrade-1.0 force-response-1.0
  63. <Files ~ "\.(cgi|shtml|phtml|php?)$">
  64. SSLOptions +StdEnvVars
  65. </Files>
  66. <Directory "@l_prefix@/cgi">
  67. SSLOptions +StdEnvVars
  68. </Directory>
  69. </IfModule>
  70. # configure Drupal
  71. AddType application/x-httpd-php .php
  72. php_admin_flag magic_quotes_gpc 0
  73. php_admin_flag register_globals 0
  74. php_admin_flag session.auto_start 0
  75. DocumentRoot @l_prefix@/libexec/wordpress
  76. DirectoryIndex index.php
  77. ErrorDocument 404 /index.php
  78. ExpiresByType text/html A1
  79. <Directory "@l_prefix@/libexec/wordpress">
  80. Options -Indexes +FollowSymLinks
  81. AllowOverride None
  82. Order allow,deny
  83. Allow from all
  84. RewriteEngine on
  85. RewriteCond %{REQUEST_FILENAME} !-f
  86. RewriteCond %{REQUEST_FILENAME} !-d
  87. RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
  88. <Files ~ "(\.(inc|module|pl|sh|sql|theme|engine|xtmpl)|Entries|Repositories|Root|scripts|updates)$">
  89. Order deny,allow
  90. Deny from all
  91. </Files>
  92. </Directory>