mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2024-11-15 23:26:34 +01:00
111 lines
3.6 KiB
Text
111 lines
3.6 KiB
Text
<VirtualHost *:80>
|
|
ServerName shareeweb-project.example.tld
|
|
ServerAlias shareeweb-project1.example.tld
|
|
|
|
ServerAdmin info@gnu-systems.de
|
|
DocumentRoot /var/www/copri4/shareeweb-project
|
|
|
|
ErrorLog /var/log/apache2/shareeweb-project-error.log
|
|
LogLevel info ssl:warn
|
|
CustomLog /var/log/apache2/shareeweb-project-access.log combined
|
|
ServerSignature Off
|
|
RewriteEngine on
|
|
RewriteCond %{SERVER_NAME} =shareeweb-project.example.tld
|
|
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
|
|
</VirtualHost>
|
|
|
|
<IfModule mod_ssl.c>
|
|
<VirtualHost *:443>
|
|
ServerName shareeweb-project1.example.tld
|
|
|
|
ServerAdmin info@gnu-systems.de
|
|
DocumentRoot /var/www/copri4/shareeweb-project
|
|
AddHandler cgi-script .cgi .sh .pl
|
|
|
|
<Directory /var/www/copri4/shareeweb-project>
|
|
Options -Indexes +FollowSymLinks +ExecCGI
|
|
AllowOverride None
|
|
</Directory>
|
|
|
|
<FilesMatch ".(eot|ttf|otf|woff|woff2)">
|
|
Header set Access-Control-Allow-Origin "*"
|
|
</FilesMatch>
|
|
|
|
<Directory /var/www/copri4/shareeweb-project/site>
|
|
Options -Indexes +FollowSymLinks -ExecCGI
|
|
Order allow,deny
|
|
Allow from all
|
|
</Directory>
|
|
|
|
<Directory /var/www/copri4/shareeweb-project/cache>
|
|
Options -Indexes +FollowSymLinks
|
|
Order allow,deny
|
|
Allow from all
|
|
ForceType application/octet-stream
|
|
Header set Content-Disposition attachment
|
|
</Directory>
|
|
|
|
ErrorLog /var/log/apache2/shareeweb-project-error.log
|
|
LogLevel info ssl:warn
|
|
CustomLog /var/log/apache2/shareeweb-project-access.log combined
|
|
ServerSignature Off
|
|
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
|
|
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
|
|
</VirtualHost>
|
|
|
|
|
|
<VirtualHost *:443>
|
|
ServerName shareeweb-project.example.tld
|
|
|
|
ServerAdmin info@gnu-systems.de
|
|
DocumentRoot /var/www/copri4/shareeweb-project
|
|
|
|
PerlOptions +Parent
|
|
PerlRequire /var/www/copri4/shareeweb-project/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>
|
|
|
|
<Location /APIjsonserver>
|
|
SetHandler perl-script
|
|
PerlInitHandler Apache2::Reload
|
|
PerlResponseHandler Mod::APIjsonserver
|
|
</Location>
|
|
|
|
<Location /GBFSout>
|
|
SetHandler perl-script
|
|
PerlInitHandler Apache2::Reload
|
|
PerlResponseHandler Mod::GBFSout
|
|
</Location>
|
|
|
|
<Location /FileOut>
|
|
SetHandler perl-script
|
|
PerlInitHandler Apache2::Reload
|
|
PerlResponseHandler Mod::FileOut
|
|
</Location>
|
|
|
|
<IfModule mod_rewrite.c>
|
|
RewriteEngine On
|
|
RedirectMatch ^/$ /frame/Karte
|
|
SSLProxyEngine On
|
|
RewriteCond %{REQUEST_URI} ^/(site|img|data|css|js|jquery)
|
|
RewriteRule ^(.*)$ https://shareeweb-project1.example.tld/$1 [P,L]
|
|
</IfModule>
|
|
|
|
ErrorLog /var/log/apache2/shareeweb-project-error.log
|
|
LogLevel info ssl:warn
|
|
CustomLog /var/log/apache2/shareeweb-project-access.log combined
|
|
ServerSignature Off
|
|
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
|
|
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
|
|
</VirtualHost>
|
|
|
|
</IfModule>
|
|
|