gerbera/gerbera-vhost-apache.conf
Paolo Stivanin 847473b8e5 - Create config.xml automatically in the psot section,
because config.xml is much too old and udn para is static and not
  unique.
- Also generate a config-example.xml, a new config-new.xml
  and a config-diff.xml which show the new parameter in a newer
  gerbera version.
- Add README.SUSE.
- Add vhost configuration for apache nginx.
- Fix suse-logrotate-user-writable-log-dir /var/log/gerbera gerbera:gerbera 0755

OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/gerbera?expand=0&rev=66
2024-12-11 08:42:33 +00:00

52 lines
1.4 KiB
Plaintext

<VirtualHost 127.0.0.1:443 GERBERA_IP:443>
ServerName gerbera.DOMAINNAME
# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on
# You can use per vhost certificates if SNI is supported.
SSLCertificateFile /etc/ssl/servercerts/servercert.pem
SSLCertificateKeyFile /etc/ssl/servercerts/serverkey.pem
SSLProxyEngine on
SSLProxyVerify none
SSLProxyCheckPeerExpire off
# SSLProxyCheckProxyCheckPeerNaPeerCN off
# SSLme off
ProxyRequests Off
ProxyVia Full
ProxyPreserveHost off
# Protocols h2 http/1.1
RequestHeader set X-Forwarded-Proto "https"
RewriteEngine on
AllowEncodedSlashes on
<Proxy *>
Require all granted
</Proxy>
<Location />
Header edit Location ^http:://GERBERA_IP:GERBERA_PORT/ https:://gerbera.DOMAINNAME/
Header edit Destination ^https:://gerbera.DOMAINNAME/ http:://GERBERA_IP:GERBERA_PORT/
RequestHeader edit Location ^http:://GERBERA_IP:GERBERA_PORT/ https:://gerbera.DOMAINNAME/
RequestHeader edit Destination ^https:://gerbera.DOMAINNAME/ http:://GERBERA_IP:GERBERA_PORT/
# ProxyPass "http://GERBERA_IP:GERBERA_PORT/"
# ProxyPassReverse "http://GERBERA_IP:GERBERA_PORT/"
</Location>
<Directory />
AllowOverride None
# Apache 2.4
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
# Apache 2.2
<IfModule mod_access.c>
Order allow,deny
Allow from all
</IfModule>
</Directory>
</VirtualHost>