joomla/joomla-apache.conf

changeset 535
ccd669318bc2
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/joomla/joomla-apache.conf	Tue Aug 28 18:29:40 2012 +0200
     1.3 @@ -0,0 +1,113 @@
     1.4 +##
     1.5 +##  joomla-apache.conf -- Joomla Apache Custom Configuration
     1.6 +##
     1.7 +
     1.8 +ServerRoot             @l_prefix@
     1.9 +ServerAdmin            root@@l_hostname@.@l_domainname@
    1.10 +ServerName             @l_hostname@.@l_domainname@
    1.11 +ServerTokens           Prod
    1.12 +User                   @l_rusr@
    1.13 +Group                  @l_rgrp@
    1.14 +Listen                 127.0.0.1:8080
    1.15 +
    1.16 +#   runtime files
    1.17 +PidFile                @l_prefix@/var/joomla/run/apache.pid
    1.18 +ScoreBoardFile         @l_prefix@/var/joomla/run/apache.sb
    1.19 +LockFile               @l_prefix@/var/joomla/run/apache.lck
    1.20 +
    1.21 +#   include apache-php
    1.22 +Include                @l_prefix@/etc/apache/apache.d/apache-php.conf
    1.23 +
    1.24 +#  server behaviour
    1.25 +Timeout                300
    1.26 +KeepAlive              on
    1.27 +MaxKeepAliveRequests   100
    1.28 +KeepAliveTimeout       15
    1.29 +MinSpareServers        5
    1.30 +MaxSpareServers        10
    1.31 +StartServers           5
    1.32 +MaxClients             15
    1.33 +MaxRequestsPerChild    500
    1.34 +HostnameLookups        off
    1.35 +UseCanonicalName       on
    1.36 +
    1.37 +#   access logging
    1.38 +LogFormat              "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    1.39 +LogFormat              "%h %l %u %t \"%r\" %>s %b" common
    1.40 +LogFormat              "%{Referer}i -> %U" referer
    1.41 +LogFormat              "%{User-agent}i" agent
    1.42 +CustomLog              @l_prefix@/var/joomla/log/apache.access.log common
    1.43 +
    1.44 +#   error logging
    1.45 +LogLevel               warn
    1.46 +ErrorLog               @l_prefix@/var/joomla/log/apache.error.log
    1.47 +ServerSignature        on
    1.48 +
    1.49 +#   secure root directory
    1.50 +<Directory />
    1.51 +    Options FollowSymLinks
    1.52 +    AllowOverride None
    1.53 +</Directory>
    1.54 +
    1.55 +#   browser specifics
    1.56 +BrowserMatch "Mozilla/2"       nokeepalive
    1.57 +BrowserMatch "MSIE 4\.0b2;"    nokeepalive downgrade-1.0 force-response-1.0
    1.58 +BrowserMatch "RealPlayer 4\.0" force-response-1.0
    1.59 +BrowserMatch "Java/1\.0"       force-response-1.0
    1.60 +BrowserMatch "JDK/1\.0"        force-response-1.0
    1.61 +
    1.62 +#   SSL/TLS support
    1.63 +<IfModule ssl_module>
    1.64 +    SSLRandomSeed           startup builtin
    1.65 +    SSLRandomSeed           connect builtin
    1.66 +    SSLMutex                sem
    1.67 +    SSLSessionCache         shmcb:@l_prefix@/var/joomla/run/apache.scache(512000)
    1.68 +    SSLSessionCacheTimeout  300
    1.69 +    SSLCipherSuite          ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
    1.70 +    SetEnvIf User-Agent ".*MSIE.*" \
    1.71 +             nokeepalive ssl-unclean-shutdown \
    1.72 +             downgrade-1.0 force-response-1.0
    1.73 +    <Files ~ "\.(cgi|shtml|phtml|php?)$">
    1.74 +        SSLOptions +StdEnvVars
    1.75 +    </Files>
    1.76 +    <Directory "@l_prefix@/cgi">
    1.77 +        SSLOptions +StdEnvVars
    1.78 +    </Directory>
    1.79 +</IfModule>
    1.80 +
    1.81 +#   configure PHP for Joomla!
    1.82 +AddType           application/x-httpd-php .php
    1.83 +php_admin_flag    register_globals      off
    1.84 +php_admin_flag    safe_mode             off
    1.85 +php_admin_flag    safe_mode_gid         off
    1.86 +php_admin_flag    allow_url_fopen       off
    1.87 +php_admin_flag    display_errors        on
    1.88 +php_admin_value   log_errors            on
    1.89 +php_admin_value   max_execution_time    60
    1.90 +php_admin_value   max_input_time        60
    1.91 +php_admin_value   memory_limit          8M
    1.92 +php_admin_value   post_max_size         8M
    1.93 +php_admin_value   include_path          .:@l_prefix@/lib/joomla/runtime
    1.94 +
    1.95 +#   configure Joomla!
    1.96 +RewriteEngine     on
    1.97 +RewriteRule       ^/$ /joomla/ [R,L]
    1.98 +Alias             /joomla @l_prefix@/lib/joomla/runtime
    1.99 +DocumentRoot      @l_prefix@/lib/joomla/runtime
   1.100 +DirectoryIndex    index.php
   1.101 +ErrorDocument     404 /index.php
   1.102 +ExpiresByType     text/html A1
   1.103 +<Directory        @l_prefix@/lib/joomla/runtime>
   1.104 +    Options       Indexes ExecCGI FollowSymLinks
   1.105 +    AllowOverride None
   1.106 +    Order         allow,deny
   1.107 +    Allow         from all
   1.108 +    RewriteEngine On
   1.109 +    RewriteBase   /joomla
   1.110 +    RewriteCond   %{REQUEST_URI} ^(/component/option,com)        [NC,OR]
   1.111 +    RewriteCond   %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
   1.112 +    RewriteCond   %{REQUEST_FILENAME} !-f
   1.113 +    RewriteCond   %{REQUEST_FILENAME} !-d
   1.114 +    RewriteRule   (.*) index.php
   1.115 +</Directory>
   1.116 +

mercurial