blob: 93dbd649e52e997c0496989c307153880f734ed3 [file] [log] [blame]
---
classes:
- apache
- apache::mod::expires
- apache::mod::mime
- apache::mod::php
- apache::mod::rewrite
- kif
- loggy
- blocky
- memcached
- ooo_forums
- ssl::name::wildcard_openoffice_org
- vhosts_asf::vhosts
apache::keepalive: 'On'
apache::keepalive_timeout: '15'
apache::timeout: 600
apache::mpm_module: 'prefork'
apache::mod::prefork::maxrequestworkers: '120'
apache::mod::prefork::startservers: '10'
apt::always_apt_update: true
# ubuntu 16.04 requies a separate ppa to maintain php 5.6
# install ppa before installing apache and the rest of the php mods
apt::ppa:
ppa:ondrej/php:
ensure: 'present'
before:
- Class[Apache]
- Package[php5.6-mysql]
# puppetlabs-apache has code that forces php7 on ubuntu 16.04
# these lines force it back to 5.6 but would need updating if
# php upgrades to other than 5.6.
apache::mod::php::php_version: '5'
apache::mod::php::package_name: 'libapache2-mod-php5.6'
apache::mod::php::path: '/usr/lib/apache2/modules/libphp5.6.so'
base::basepackages:
- php5.6-cli
- php5.6-curl
- php5.6-zip
- php5.6-bz2
- php5.6-mcrypt
- php5.6-mbstring
- php5.6-gd
- php5.6-mysql
- php5.6-xml
logrotate::rule:
apache2:
ensure: 'present'
memcached::max_memory: '10%'
memcached::listen_ip: '127.0.0.1'
memcached::tcp_port: '11211'
postfix::server::relayhost: '[mail-relay.apache.org]:587'
postfix::server::smtp_use_tls: true
vhosts_asf::vhosts::vhosts:
ooo-forums3-80:
vhost_name: '*'
priority: '12'
servername: 'ooo-forums3-vm.apache.org'
serveraliases:
- 'forum.openoffice.org'
port: 80
ssl: false
docroot: '/x1/var_www'
error_log_file: 'ooo_forum_error.log'
custom_fragment: |
RedirectMatch permanent ^/(.*)$ https://forum.openoffice.org/$1
ooo-forum3-443:
vhost_name: '*'
default_vhost: true
servername: 'ooo-forums3-vm.apache.org'
serveraliases:
- 'forum.openoffice.org'
port: 443
docroot: '/x1/var_www'
error_log_file: 'ooo_forums_error.log'
ssl: true
ssl_cert: '/etc/ssl/certs/wildcard.openoffice.org.crt'
ssl_chain: '/etc/ssl/certs/wildcard.openoffice.org.chain'
ssl_key: '/etc/ssl/private/wildcard.openoffice.org.key'
custom_fragment: |
<DirectoryMatch /x1/var_www/[a-z][a-z]/forum/(avatars-upload|cache|files|includes|store)>
Options None
AllowOverride None
Order allow,deny
Deny from all
</DirectoryMatch>
<DirectoryMatch /x1/var_www/[a-z][a-z]/forum/(images|styles)>
ExpiresActive On
ExpiresDefault "access plus 1 month"
</DirectoryMatch>
<Directory /x1/var_www/fr/forum>
RewriteEngine On
#
# This first condition bypasses all of this crap for 99+% of requests since
# regular phpBB access requests match this condition
#
# skip these since we are already in the fr/forum
#RewriteCond %{}{REQUEST_URI} !/fr/forum/(\w+\d+|equipe)
#RewriteRule (.*) $1 [skip=19]
#
# The old FR Forum "SEO-friendly" URIs
#
RewriteRule ^forum([0-9]*).* /fr/forum/viewforum.php?f=$1
RewriteRule ^forums.* /fr/forum/index.php
RewriteRule ^mforum([0-9]*).* /fr/forum/viewforum.php?f=$1&mark=topics
RewriteRule ^viewforum([0-9]*)-([0-9]*)-([0-9]*).* /fr/forum/viewforum.php?f=$1&topicdays=$2&start=$3
RewriteRule ^topic([0-9]*).* /fr/forum/viewtopic.php?t=$1
RewriteRule ^ptopic([0-9]*).* /fr/forum/viewtopic.php?t=$1&view=previous
RewriteRule ^ntopic([0-9]*).* /fr/forum/viewtopic.php?t=$1&view=next
RewriteRule ^stopic([0-9]*)-([0-9]*).* /fr/forum/viewtopic.php?t=$1&watch=topic&start=$2
RewriteRule ^utopic([0-9]*)-([0-9]*).* /fr/forum/viewtopic.php?t=$1&unwatch=topic&start=$2
RewriteRule ^ftopic([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* /fr/forum/viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4
RewriteRule ^ftopic([0-9]*)-([0-9]*).* /fr/forum/viewtopic.php?t=$1&start=$2
RewriteRule ^ftopic([0-9]*).* /fr/forum/viewtopic.php?t=$1
RewriteRule ^ftopic([0-9]*).html /fr/forum/viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5
RewriteRule ^setopic_([0-9]*)-([a-zA-Z0-9]*).* /fr/forum/viewtopic.php?t=$1&highlight=$2
RewriteRule ^sutra([0-9]*).* /fr/forum/viewtopic.php?p=$1
RewriteRule ^newtopic([0-9]*).* /fr/forum/viewtopic.php?t=$1&view=newest
RewriteRule ^membre([0-9]*).* /fr/forum/memberlist.php?mode=viewprofile&u=$1
RewriteRule ^groupe([0-9]*).* /fr/forum/memberlist.php?mode=group&g=$1
RewriteRule ^equipe\.* /fr/forum/memberlist.php?mode=leaders
</Directory>