<VirtualHost *:80>
    ##
    # Domain: planet.fedoraproject.org
    # Owner: admin@fedoraproject.org
    #
    ServerAdmin admin@fedoraproject.org
    ServerName planet.fedoraproject.org
    ServerAlias fedoraplanet.org

    DocumentRoot "/srv/planet/site/"

    ErrorLog logs/planet-error.log
    CustomLog logs/planet.fedoraproject.org-access.log common

    UserDir disable
    AddCharset UTF-8 .xml

    <Location />
        Require all granted
        Options FollowSymLinks
    </Location>

    <Location /images/>
        ExpiresActive On
        ExpiresDefault "access plus 5 days"
    </Location>

    <Location /css/>
        ExpiresActive On
        ExpiresDefault "access plus 5 days"
    </Location>

    RedirectMatch 301 /favicon\.ico$ https://fedoraproject.org/static/images/favicon.ico
    Redirect /ldc http://fedoraldc.wordpress.com/feed/
    Alias /justfedora /srv/planet/site/edited

</VirtualHost>
<VirtualHost *:443>
    ##
    # Domain: planet.fedoraproject.org
    # Owner: admin@fedoraproject.org
    #
    ServerAdmin admin@fedoraproject.org
    ServerName planet.fedoraproject.org
    ServerAlias fedoraplanet.org

    SSLEngine on
    SSLCertificateFile    /etc/pki/tls/certs/planet.fedoraproject.org.cert
    SSLCertificateKeyFile /etc/pki/tls/private/planet.fedoraproject.org.key
    SSLCertificateChainFile /etc/pki/tls/certs/wildcard-2014.fedorapeople.org.intermediate.cert
    SSLHonorCipherOrder On
    SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!3DES:!MD5:!PSK
    SSLProtocol -All +TLSv1 +TLSv1.1 +TLSv1.2

    DocumentRoot "/srv/planet/site/"

    ErrorLog logs/planet-error.log
    CustomLog logs/planet.fedoraproject.org-access.log common

    UserDir disable
    AddCharset UTF-8 .xml

    <Location />
        Require all granted
        Options FollowSymLinks
    </Location>

    <Location /images/>
        ExpiresActive On
        ExpiresDefault "access plus 5 days"
    </Location>

    <Location /css/>
        ExpiresActive On
        ExpiresDefault "access plus 5 days"
    </Location>

    RedirectMatch 301 /favicon\.ico$ https://fedoraproject.org/static/images/favicon.ico
    Redirect /ldc http://fedoraldc.wordpress.com/feed/
    Alias /justfedora /srv/planet/site/edited

</VirtualHost>
