PHP Classes

File: docs/en-us/01-intro/example-config/apache.conf

Recommend this page to a friend!
  Classes of Scott Arciszewski  >  CMS Airship  >  docs/en-us/01-intro/example-config/apache.conf  >  Download  
File: docs/en-us/01-intro/example-config/apache.conf
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: CMS Airship
Content management system with security features
Author: By
Last change:
Date: 5 years ago
Size: 1,487 bytes


Class file image Download
# This assumes Apache 2.4+
<VirtualHost *:443>

    SSLEngine on
    SSLCertificateFile      /etc/ssl/intermediate.cert
    SSLCertificateKeyFile   /etc/ssl/private/
    SSLCACertificateFile    /etc/ssl/

    Header always set Strict-Transport-Security "max-age=15768000"

	# Replace this with your actual public directory:
	DocumentRoot /var/www/airship/src/public
	ErrorLog ${APACHE_LOG_DIR}/error.log
	CustomLog ${APACHE_LOG_DIR}/access.log combined

	<Directory "/">
	    RewriteEngine On

	    # Serve files that exist first and foremost
	    RewriteCond %{REQUEST_FILENAME} -f [OR]
        RewriteCond %{REQUEST_FILENAME} -d
        RewriteRule (.*) - [L]

        # Otherwise, pass to index.php
        RewriteRule (.*) /index.php?$1 [L]

# Mozilla recommended ciphers
SSLProtocol             all -SSLv3 -TLSv1 -TLSv1.1
SSLHonorCipherOrder     on
SSLCompression          off
SSLSessionTickets       off

SSLUseStapling          on
SSLStaplingResponderTimeout 5
SSLStaplingReturnResponderErrors off
SSLStaplingCache        shmcb:/var/run/ocsp(128000)
For more information send a message to info at phpclasses dot org.