Blob Blame History Raw
<VirtualHost *:80>
    ServerName files.opensuse.org

    UseCanonicalName Off

    AADefaultHatName vhost_files

    DocumentRoot /srv/www/files.opensuse.org/public

    <Directory /srv/www/files.opensuse.org/public>
        Require all granted
    </Directory>

    # redirect everything that was historically available as symlink to the official location
    RedirectPermanent /opensuse/cn/     https://cn.opensuse.org/images/
    RedirectPermanent /opensuse/cs/     https://cs.opensuse.org/images/
    RedirectPermanent /opensuse/de/     https://de.opensuse.org/images/
    RedirectPermanent /opensuse/el/     https://el.opensuse.org/images/
    RedirectPermanent /opensuse/en/     https://en.opensuse.org/images/
    RedirectPermanent /opensuse/es/     https://es.opensuse.org/images/
    RedirectPermanent /opensuse/fi/     https://fi.opensuse.org/images/
    RedirectPermanent /opensuse/fr/     https://fr.opensuse.org/images/
    RedirectPermanent /opensuse/hu/     https://hu.opensuse.org/images/
    RedirectPermanent /opensuse/is/     https://is.opensuse.org/images/
    RedirectPermanent /opensuse/it/     https://it.opensuse.org/images/
    RedirectPermanent /opensuse/ja/     https://ja.opensuse.org/images/
    RedirectPermanent /opensuse/nl/     https://nl.opensuse.org/images/
    RedirectPermanent /opensuse/old-en/ https://old-en.opensuse.org/images/
    RedirectPermanent /opensuse/pl/     https://pl.opensuse.org/images/
    RedirectPermanent /opensuse/pt/     https://pt.opensuse.org/images/
    RedirectPermanent /opensuse/ru/     https://ru.opensuse.org/images/
    RedirectPermanent /opensuse/sv/     https://sv.opensuse.org/images/
    RedirectPermanent /opensuse/tr/     https://tr.opensuse.org/images/
    RedirectPermanent /opensuse/vi/     https://vi.opensuse.org/images/
    RedirectPermanent /opensuse/zh/     https://zh.opensuse.org/images/
    RedirectPermanent /opensuse/zh_tw/  https://zh_tw.opensuse.org/images/

    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{X-Forwarded-For}i\"" combinedproxy
    CustomLog "/var/log/apache2/files-access_log" combinedproxy

</VirtualHost>

# vim:ft=apache