| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- ##
- ## wordpress-apache.conf -- Wordpress Apache Custom Configuration
- ##
- ServerType standalone
- ServerRoot @l_prefix@
- ServerAdmin root@@l_hostname@.@l_domainname@
- ServerName @l_hostname@.@l_domainname@
- ServerTokens Prod
- User @l_rusr@
- Group @l_rgrp@
- Port 8081
- Listen 127.0.0.1:8081
- # runtime files
- PidFile @l_prefix@/var/wordpress/wordpress-apache.pid
- ScoreBoardFile @l_prefix@/var/wordpress/wordpress-apache.sb
- LockFile @l_prefix@/var/wordpress/wordpress-apache.lck
- # server behaviour
- Timeout 300
- KeepAlive on
- MaxKeepAliveRequests 100
- KeepAliveTimeout 15
- MinSpareServers 5
- MaxSpareServers 10
- StartServers 5
- MaxClients 15
- MaxRequestsPerChild 500
- HostnameLookups off
- UseCanonicalName on
- # access logging
- LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
- LogFormat "%h %l %u %t \"%r\" %>s %b" common
- LogFormat "%{Referer}i -> %U" referer
- LogFormat "%{User-agent}i" agent
- CustomLog @l_prefix@/var/wordpress/wordpress-apache.access.log common
- # error logging
- LogLevel warn
- ErrorLog @l_prefix@/var/wordpress/wordpress-apache.error.log
- ServerSignature on
- # secure root directory
- <Directory />
- Options FollowSymLinks
- AllowOverride None
- </Directory>
- # browser specifics
- BrowserMatch "Mozilla/2" nokeepalive
- BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
- BrowserMatch "RealPlayer 4\.0" force-response-1.0
- BrowserMatch "Java/1\.0" force-response-1.0
- BrowserMatch "JDK/1\.0" force-response-1.0
- # SSL/TLS support
- <IfModule mod_ssl.c>
- SSLRandomSeed startup builtin
- SSLRandomSeed connect builtin
- SSLMutex sem
- SSLSessionCache shmcb:@l_prefix@/var/wordpress/wordpress-apache.scache(512000)
- SSLSessionCacheTimeout 300
- SSLLog @l_prefix@/var/wordpress/wordpress-apache.ssl.log
- SSLLogLevel warn
- SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
- SetEnvIf User-Agent ".*MSIE.*" \
- nokeepalive ssl-unclean-shutdown \
- downgrade-1.0 force-response-1.0
- <Files ~ "\.(cgi|shtml|phtml|php?)$">
- SSLOptions +StdEnvVars
- </Files>
- <Directory "@l_prefix@/cgi">
- SSLOptions +StdEnvVars
- </Directory>
- </IfModule>
- # configure WordPress
- AddType application/x-httpd-php .php
- php_admin_flag magic_quotes_gpc 0
- php_admin_flag register_globals 0
- php_admin_flag session.auto_start 0
- php_admin_value upload_tmp_dir @l_prefix@/var/wordpress/tmp
- DocumentRoot @l_prefix@/libexec/wordpress
- DirectoryIndex index.php
- ErrorDocument 404 /index.php
- ExpiresByType text/html A1
- <Directory "@l_prefix@/libexec/wordpress">
- Options -Indexes +FollowSymLinks
- AllowOverride None
- Order allow,deny
- Allow from all
- RewriteEngine on
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
- <Files ~ "(\.(inc|module|pl|sh|sql|theme|engine|xtmpl)|Entries|Repositories|Root|scripts|updates)$">
- Order deny,allow
- Deny from all
- </Files>
- </Directory>
|