1
NameVirtualHost 127.0.0.77:80
3
RewriteLock /var/tmp/vostok-rewrite-lock
5
<VirtualHost 127.0.0.77:80>
6
ServerName archive.vostok.dev
9
DocumentRoot /var/tmp/vostok-archive
10
<Directory /var/tmp/vostok-archive/>
13
Allow from 127.0.0.0/255.0.0.0
18
<VirtualHost 127.0.0.77:443>
20
ServerAlias *.vostok.dev
23
Allow from 127.0.0.0/255.0.0.0
26
SSLCertificateFile /etc/apache2/ssl/launchpad.crt
27
SSLCertificateKeyFile /etc/apache2/ssl/launchpad.key
30
ProxyPass / http://localhost:8086/ retry=1
34
SetOutputFilter DEFLATE
36
# Don't compress images
37
SetEnvIfNoCase Request_URI \
38
\.(?:gif|jpe?g|png)$ no-gzip dont-vary
40
# Don't gzip anything that starts /@@/ and doesn't end .js (ie images)
41
SetEnvIfNoCase Request_URI ^/@@/ no-gzip dont-vary
42
SetEnvIfNoCase Request_URI ^/@@/.*\.js$ !no-gzip !dont-vary
47
<VirtualHost 127.0.0.77:80>
49
ServerAlias *.vostok.dev
51
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]