surrogator-rpm/surrogator.conf

27 lines
647 B
Plaintext
Raw Permalink Normal View History

<VirtualHost 0.0.0.0:80>
ServerName avatars.example.com
Redirect / https://avatars.example.com
</VirtualHost>
<VirtualHost 0.0.0.0:443>
ServerName avatars.example.com
ErrorLog logs/avatars.example.com-error_log
TransferLog logs/avatars.example.com-access_log
LogLevel warn
CustomLog logs/avatars.example.com-request_log "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
DocumentRoot /usr/share/surrogator/www
<Location />
Require all granted
Options Indexes MultiViews FollowSymlinks
</Location>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^avatar/ avatar.php [L]
</IfModule>
</VirtualHost>