apache2-sites/calcms.conf: add
move apache config to separate file
This commit is contained in:
@@ -142,11 +142,12 @@ apt-get install <deb-package>
|
||||
|
||||
#### Configuration
|
||||
|
||||
edit configuration at website/config/config.cgi
|
||||
Copy the configuration from website/config/config.cgi.off to website/config/config.cgi.
|
||||
Setup the domain and database connection.
|
||||
|
||||
Now you can connect to web gui
|
||||
Now you can open the web gui at http://<localhost>/programm/
|
||||
|
||||
https://<localhost>/agenda/planung/
|
||||
To edit your radio programm open http://<localhost>/agenda/planung/
|
||||
ccAdmin
|
||||
shug!3Lu
|
||||
|
||||
|
||||
@@ -1,53 +1,58 @@
|
||||
# adopt your settings here
|
||||
Define domain your-domain.org
|
||||
Define base_dir /home/calcms
|
||||
Define perl_lib /home/radio/calcms
|
||||
|
||||
# Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
|
||||
LogLevel info
|
||||
|
||||
# limit redirection on injecting into your website
|
||||
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
|
||||
# Redirect permanent /agenda/planung https://${domain}/agenda/planung
|
||||
|
||||
# inject calcms into your website
|
||||
Alias /agenda ${base_dir}/website/agenda
|
||||
Alias /programm ${base_dir}/website/programm
|
||||
Alias /agenda_files ${base_dir}/website/agenda_files
|
||||
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/
|
||||
|
||||
<Directory ${base_dir}/website/agenda>
|
||||
# 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 ${base_dir}/media
|
||||
|
||||
# thumbs
|
||||
Alias /thumbs ${base_dir}/media/thumbs
|
||||
|
||||
# icons
|
||||
Alias /icons ${base_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 ${base_dir}/website/programm>
|
||||
<Directory ${web_dir}/programm>
|
||||
AllowOverride All
|
||||
Options -Indexes +FollowSymLinks -MultiViews -ExecCGI
|
||||
Require all granted
|
||||
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteBase /programm
|
||||
|
||||
RewriteEngine on
|
||||
RewriteCond %{REQUEST_FILENAME} -f
|
||||
RewriteRule (.*) $1 [L]
|
||||
RewriteCond %{REQUEST_FILENAME} -d
|
||||
RewriteRule (.*) $1 [L]
|
||||
|
||||
RewriteRule ^kalender/(\d{4}-\d{2}-\d{2})_(\d{4}-\d{2}-\d{2})\.html[\?]?(.*)$ /agenda/aggregate.cgi?from_date=$1&till_date=$2&$3 [L]
|
||||
RewriteRule ^kalender/(\d{4}-\d{2}-\d{2})\.html[\?]?(.*)$ /agenda/aggregate.cgi?date=$1&$2 [L]
|
||||
RewriteRule ^sendungen/(\d{4}-\d{2}-\d{2})\.html[\?]?(.*)$ /agenda/aggregate.cgi?date=$1&$2 [L]
|
||||
RewriteRule ^sendung/(\d+)\.html[\?]?(.*)$ /agenda/aggregate.cgi?event_id=$1&$2 [L]
|
||||
RewriteRule ^sendung/serie_plus/(\d+)\.html[\?]?(.*)$ /agenda/aggregate.cgi?next_series=$1&$2 [L]
|
||||
RewriteRule ^sendung/serie_minus/(\d+)\.html[\?]?(.*)$ /agenda/aggregate.cgi?previous_series=$1&$2 [L]
|
||||
</IfModule>
|
||||
</Directory>
|
||||
|
||||
<Directory ${base_dir}/website/agenda_files>
|
||||
<Directory ${base_dir}/media>
|
||||
AllowOverride All
|
||||
Options -Indexes -FollowSymLinks -MultiViews -ExecCGI
|
||||
Require all granted
|
||||
|
||||
Reference in New Issue
Block a user