michael@535: ##
michael@535: ## joomla-apache.conf -- Joomla Apache Custom Configuration
michael@535: ##
michael@535:
michael@535: ServerRoot @l_prefix@
michael@535: ServerAdmin root@@l_hostname@.@l_domainname@
michael@535: ServerName @l_hostname@.@l_domainname@
michael@535: ServerTokens Prod
michael@535: User @l_rusr@
michael@535: Group @l_rgrp@
michael@535: Listen 127.0.0.1:8080
michael@535:
michael@535: # runtime files
michael@535: PidFile @l_prefix@/var/joomla/run/apache.pid
michael@535: ScoreBoardFile @l_prefix@/var/joomla/run/apache.sb
michael@535: LockFile @l_prefix@/var/joomla/run/apache.lck
michael@535:
michael@535: # include apache-php
michael@535: Include @l_prefix@/etc/apache/apache.d/apache-php.conf
michael@535:
michael@535: # server behaviour
michael@535: Timeout 300
michael@535: KeepAlive on
michael@535: MaxKeepAliveRequests 100
michael@535: KeepAliveTimeout 15
michael@535: MinSpareServers 5
michael@535: MaxSpareServers 10
michael@535: StartServers 5
michael@535: MaxClients 15
michael@535: MaxRequestsPerChild 500
michael@535: HostnameLookups off
michael@535: UseCanonicalName on
michael@535:
michael@535: # access logging
michael@535: LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
michael@535: LogFormat "%h %l %u %t \"%r\" %>s %b" common
michael@535: LogFormat "%{Referer}i -> %U" referer
michael@535: LogFormat "%{User-agent}i" agent
michael@535: CustomLog @l_prefix@/var/joomla/log/apache.access.log common
michael@535:
michael@535: # error logging
michael@535: LogLevel warn
michael@535: ErrorLog @l_prefix@/var/joomla/log/apache.error.log
michael@535: ServerSignature on
michael@535:
michael@535: # secure root directory
michael@535:
michael@535: Options FollowSymLinks
michael@535: AllowOverride None
michael@535:
michael@535:
michael@535: # browser specifics
michael@535: BrowserMatch "Mozilla/2" nokeepalive
michael@535: BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
michael@535: BrowserMatch "RealPlayer 4\.0" force-response-1.0
michael@535: BrowserMatch "Java/1\.0" force-response-1.0
michael@535: BrowserMatch "JDK/1\.0" force-response-1.0
michael@535:
michael@535: # SSL/TLS support
michael@535:
michael@535: SSLRandomSeed startup builtin
michael@535: SSLRandomSeed connect builtin
michael@535: SSLMutex sem
michael@535: SSLSessionCache shmcb:@l_prefix@/var/joomla/run/apache.scache(512000)
michael@535: SSLSessionCacheTimeout 300
michael@535: SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
michael@535: SetEnvIf User-Agent ".*MSIE.*" \
michael@535: nokeepalive ssl-unclean-shutdown \
michael@535: downgrade-1.0 force-response-1.0
michael@535:
michael@535: SSLOptions +StdEnvVars
michael@535:
michael@535:
michael@535: SSLOptions +StdEnvVars
michael@535:
michael@535:
michael@535:
michael@535: # configure PHP for Joomla!
michael@535: AddType application/x-httpd-php .php
michael@535: php_admin_flag register_globals off
michael@535: php_admin_flag safe_mode off
michael@535: php_admin_flag safe_mode_gid off
michael@535: php_admin_flag allow_url_fopen off
michael@535: php_admin_flag display_errors on
michael@535: php_admin_value log_errors on
michael@535: php_admin_value max_execution_time 60
michael@535: php_admin_value max_input_time 60
michael@535: php_admin_value memory_limit 8M
michael@535: php_admin_value post_max_size 8M
michael@535: php_admin_value include_path .:@l_prefix@/lib/joomla/runtime
michael@535:
michael@535: # configure Joomla!
michael@535: RewriteEngine on
michael@535: RewriteRule ^/$ /joomla/ [R,L]
michael@535: Alias /joomla @l_prefix@/lib/joomla/runtime
michael@535: DocumentRoot @l_prefix@/lib/joomla/runtime
michael@535: DirectoryIndex index.php
michael@535: ErrorDocument 404 /index.php
michael@535: ExpiresByType text/html A1
michael@535:
michael@535: Options Indexes ExecCGI FollowSymLinks
michael@535: AllowOverride None
michael@535: Order allow,deny
michael@535: Allow from all
michael@535: RewriteEngine On
michael@535: RewriteBase /joomla
michael@535: RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]
michael@535: RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
michael@535: RewriteCond %{REQUEST_FILENAME} !-f
michael@535: RewriteCond %{REQUEST_FILENAME} !-d
michael@535: RewriteRule (.*) index.php
michael@535:
michael@535: