Files
racalmas/install/apache2-sites/calcms.conf
www-data f5611bacdd Merge remote-tracking branch 'calcms/master'
295faea lib/calcms/startup.pl: get include path from startup.pl directory
bd869a5 install/migrate.sql: remove paths from image entries
b01dd91 fixup! audio-recordings.cgi: set permissions to update event
220f9c9 apache2-sites/calcms.conf: add /images
976355e fixup! create.sql, migrate.sql: limit username length to 100
2024-03-20 00:31:40 +01:00

83 lines
2.0 KiB
Plaintext

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 /home/calcms/racalmas
Define web_dir /home/calcms/racalmas/website/
Define perl_lib /home/calcms/racalmas/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
<Directory ${web_dir}/agenda>
AllowOverride All
Options -Indexes +FollowSymLinks +MultiViews +ExecCGI
Require all granted
</Directory>
<Directory ${web_dir}/programm>
AllowOverride All
Options -Indexes +FollowSymLinks -MultiViews -ExecCGI
Require all granted
</Directory>
<Directory ${base_dir}/media>
AllowOverride All
Options -Indexes -FollowSymLinks -MultiViews -ExecCGI
Require all granted
</Directory>
<IfModule mod_perl.c>
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
</IfModule>