apache config
adopt directories to following structure /aganda /programm /media /media/thumbs /media/icons /media/images /media/internal /media/internal/thumbs /media/internal/images /meida/internal/icons /thumbs -> /media/thumbs /icons -> /media/icons
This commit is contained in:
@@ -23,16 +23,16 @@ Alias /programm ${web_dir}/programm
|
|||||||
Alias /agenda ${web_dir}/agenda
|
Alias /agenda ${web_dir}/agenda
|
||||||
|
|
||||||
# image base
|
# image base
|
||||||
Alias /media ${base_dir}/media
|
Alias /media ${web_dir}/media
|
||||||
|
|
||||||
# thumbs
|
# thumbs
|
||||||
Alias /thumbs ${base_dir}/media/thumbs
|
Alias /thumbs ${web_dir}/media/thumbs
|
||||||
|
|
||||||
# icons
|
# icons
|
||||||
Alias /icons ${base_dir}/media/icons
|
Alias /icons ${web_dir}/media/icons
|
||||||
|
|
||||||
# audio upload
|
# audio upload
|
||||||
Alias /recordings ${base_dir}/recordings
|
Alias /recordings ${web_dir}/recordings
|
||||||
|
|
||||||
# audio download
|
# audio download
|
||||||
Alias /listen ${archive_dir}/${domain}
|
Alias /listen ${archive_dir}/${domain}
|
||||||
|
|||||||
74
install/apache2-sites/coloradio.conf
Normal file
74
install/apache2-sites/coloradio.conf
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
# Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
|
||||||
|
LogLevel info
|
||||||
|
|
||||||
|
# limit redirection on injecting into your website
|
||||||
|
LimitInternalRecursion 4
|
||||||
|
|
||||||
|
Define domain localhost
|
||||||
|
Define base_dir /home/milan/radio/coloradio/racalmas.orig/
|
||||||
|
Define perl_lib /home/milan/radio/coloradio/racalmas.orig/lib/calcms
|
||||||
|
Define web_dir /home/milan/radio/coloradio/racalmas.orig/website/
|
||||||
|
Define archive_dir /home/radio/archive/
|
||||||
|
|
||||||
|
# calcms endpoints for your website
|
||||||
|
# frontend
|
||||||
|
Alias /programm ${web_dir}/programm
|
||||||
|
|
||||||
|
# backend
|
||||||
|
Alias /agenda ${web_dir}/agenda
|
||||||
|
|
||||||
|
# image base
|
||||||
|
Alias /media ${web_dir}/media
|
||||||
|
|
||||||
|
# thumbs
|
||||||
|
Alias /thumbs ${web_dir}/media/thumbs
|
||||||
|
|
||||||
|
# icons
|
||||||
|
Alias /icons ${web_dir}/media/icons
|
||||||
|
|
||||||
|
# audio upload
|
||||||
|
Alias /recordings ${base_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 ${web_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>
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
|
|
||||||
redirectMatch 301 ^/$ /agenda/
|
|
||||||
|
|
||||||
@@ -1,7 +1,2 @@
|
|||||||
Options -Indexes +FollowSymLinks +MultiViews -ExecCGI
|
Options -Indexes +FollowSymLinks +MultiViews -ExecCGI
|
||||||
|
Require all granted
|
||||||
<IfModule mod_expires.c>
|
|
||||||
ExpiresActive On
|
|
||||||
ExpiresDefault "access plus 5 minutes"
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,2 @@
|
|||||||
Options -Indexes +FollowSymLinks +MultiViews -ExecCGI
|
Options -Indexes +FollowSymLinks +MultiViews -ExecCGI
|
||||||
|
Require all granted
|
||||||
<IfModule mod_expires.c>
|
|
||||||
ExpiresActive On
|
|
||||||
ExpiresDefault "access plus 5 minutes"
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,2 @@
|
|||||||
Options -Indexes +FollowSymLinks +MultiViews -ExecCGI
|
Options -Indexes +FollowSymLinks +MultiViews -ExecCGI
|
||||||
|
Require all granted
|
||||||
<IfModule mod_expires.c>
|
|
||||||
ExpiresActive On
|
|
||||||
ExpiresDefault "access plus 5 minutes"
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user