sharee.bike/copri4/shareedms-operator/apache/shareedms-operator.conf

116 lines
3.8 KiB
Text
Raw Normal View History

2021-12-30 12:05:56 +01:00
<VirtualHost *:80>
2022-01-27 20:30:35 +01:00
ServerName shareedms-operator.example.tld
ServerAlias shareedms-operator1.example.tld
2021-12-30 12:05:56 +01:00
ServerAdmin admin@example.tld
2021-12-30 12:05:56 +01:00
DocumentRoot /var/www/copri4/shareedms-operator
ErrorLog /var/log/apache2/shareedms-operator-error.log
LogLevel info ssl:warn
CustomLog /var/log/apache2/shareedms-operator-access.log combined
ServerSignature Off
RewriteEngine on
2022-01-27 20:30:35 +01:00
RewriteCond %{SERVER_NAME} =shareedms-operator.example.tld
2021-12-30 12:05:56 +01:00
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
2022-01-27 20:30:35 +01:00
ServerName shareedms-operator1.example.tld
ServerAdmin admin@example.tld
2021-12-30 12:05:56 +01:00
DocumentRoot /var/www/copri4/shareedms-operator
AddHandler cgi-script .cgi .sh .pl
<Directory /var/www/copri4/shareedms-operator>
Options -Indexes +FollowSymLinks +ExecCGI
AllowOverride None
</Directory>
<FilesMatch ".(eot|ttf|otf|woff|woff2)">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
<Directory /var/www/copri4/shareedms-operator/site>
Options -Indexes +FollowSymLinks -ExecCGI
Order allow,deny
Allow from all
</Directory>
<Directory /var/www/copri4/shareedms-primary/json>
Options -Indexes +FollowSymLinks -ExecCGI
2021-12-30 12:05:56 +01:00
Order allow,deny
Allow from all
</Directory>
<Directory /var/www/copri4/shareedms-operator/cache>
Options -Indexes +FollowSymLinks
Order allow,deny
Allow from all
ForceType application/octet-stream
Header set Content-Disposition attachment
</Directory>
ErrorLog /var/log/apache2/shareedms-operator-error.log
#LogLevel debug
LogLevel info ssl:warn
CustomLog /var/log/apache2/shareedms-operator-access.log combined
ServerSignature Off
2022-12-10 15:47:22 +01:00
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
2021-12-30 12:05:56 +01:00
</VirtualHost>
<VirtualHost *:443>
2022-01-27 20:30:35 +01:00
ServerName shareedms-operator.example.tld
ServerAdmin admin@example.tld
2021-12-30 12:05:56 +01:00
DocumentRoot /var/www/copri4/shareedms-operator
PerlOptions +Parent
PerlRequire /var/www/copri4/shareedms-operator/startup.pl
<Location />
SetHandler perl-script
PerlResponseHandler Mod::Indexsharee
PerlInitHandler Apache2::Reload
PerlOptions +ParseHeaders +GlobalRequest
Options -ExecCGI +FollowSymLinks
Order allow,deny
Allow from all
</Location>
2022-05-27 17:11:35 +02:00
<Location /GBFSout>
SetHandler perl-script
PerlInitHandler Apache2::Reload
PerlResponseHandler Mod::GBFSout
</Location>
<Location /FileOut>
SetHandler perl-script
PerlInitHandler Apache2::Reload
PerlResponseHandler Mod::FileOut
</Location>
2021-12-30 12:05:56 +01:00
<Location /ajax_json>
SetHandler perl-script
PerlInitHandler Apache2::Reload
PerlResponseHandler Mod::ajax_json
</Location>
<IfModule mod_rewrite.c>
RewriteEngine On
2022-12-10 15:47:22 +01:00
RedirectMatch ^/$ /DMS/Mietjournal
RedirectMatch ^/DMS$ /DMS/Mietjournal
2021-12-30 12:05:56 +01:00
SSLProxyEngine On
RewriteCond %{REQUEST_URI} ^/(site|img|data|css|js|jquery)
2022-01-27 20:30:35 +01:00
RewriteRule ^(.*)$ https://shareedms-operator1.example.tld/$1 [P,L]
2021-12-30 12:05:56 +01:00
</IfModule>
ErrorLog /var/log/apache2/shareedms-operator-error.log
LogLevel info ssl:warn
CustomLog /var/log/apache2/shareedms-operator-access.log combined
ServerSignature Off
2022-12-10 15:47:22 +01:00
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
2021-12-30 12:05:56 +01:00
</VirtualHost>
</IfModule>