LogLevel info LimitInternalRecursion 4 # redirect HTTP to HTTPS, # only needed for HTTP configuration, do not use this at HTTPS configuration(!) # Redirect permanent /agenda/planung https://${domain}/agenda/planung Define domain localhost Define base_dir /var/www/html Define web_dir /var/www/html/website/ Define perl_lib /var/www/html/lib Define archive_dir /home/radio/archive/ # Redirect permanent /agenda/planung https://${domain}/agenda/planung # ^ remove comment to redirect HTTP to HTTPS # (enabling this in HTTPS templates results in endless routing loop)! # calcms endpoints for your website # frontend Alias /programm ${web_dir}/programm # backend Alias /agenda ${web_dir}/agenda # image base Alias /media ${web_dir}/media # icons Alias /images ${base_dir}/media/images # thumbs Alias /thumbs ${web_dir}/media/thumbs # icons Alias /icons ${web_dir}/media/icons # audio upload Alias /recordings ${web_dir}/recordings # audio download Alias /listen ${archive_dir}/${domain} # upload playout status ScriptAlias /agenda/planung/upload ${archive_dir}/${domain}/agenda/planung/upload AllowOverride All Options -Indexes +FollowSymLinks +MultiViews +ExecCGI Require all granted AllowOverride All Options -Indexes +FollowSymLinks -MultiViews -ExecCGI Require all granted AllowOverride All Options -Indexes -FollowSymLinks -MultiViews -ExecCGI Require all granted PerlSetEnv LC_ALL en_US.UTF-8 PerlSetEnv LANGUAGE en_US.UTF-8 PerlWarn On PerlModule ModPerl::RegistryPrefork PerlModule Apache2::Reload PerlInitHandler Apache2::Reload # set local tmp dir SetEnv TMPDIR ${base_dir}/tmp/ # set library directory PerlSetEnv PERL5LIB ${base_dir}/lib/calcms/ # preload libraries PerlPostConfigRequire ${base_dir}/lib/calcms/startup.pl