1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
NameVirtualHost 127.0.0.77:80
RewriteLock /var/tmp/vostok-rewrite-lock
<VirtualHost 127.0.0.77:80>
ServerName archive.vostok.dev
LogLevel debug
DocumentRoot /var/tmp/vostok-archive
<Directory /var/tmp/vostok-archive/>
Order Deny,Allow
Deny from all
Allow from 127.0.0.0/255.0.0.0
Options Indexes
</Directory>
</VirtualHost>
<VirtualHost 127.0.0.77:443>
ServerName vostok.dev
ServerAlias *.vostok.dev
<Proxy *>
Order deny,allow
Allow from 127.0.0.0/255.0.0.0
</Proxy>
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/launchpad.crt
SSLCertificateKeyFile /etc/apache2/ssl/launchpad.key
ProxyPreserveHost on
ProxyPass / http://localhost:8086/ retry=1
<Location />
# Insert filter
SetOutputFilter DEFLATE
# Don't compress images
SetEnvIfNoCase Request_URI \
\.(?:gif|jpe?g|png)$ no-gzip dont-vary
# Don't gzip anything that starts /@@/ and doesn't end .js (ie images)
SetEnvIfNoCase Request_URI ^/@@/ no-gzip dont-vary
SetEnvIfNoCase Request_URI ^/@@/.*\.js$ !no-gzip !dont-vary
</Location>
</VirtualHost>
<VirtualHost 127.0.0.77:80>
ServerName vostok.dev
ServerAlias *.vostok.dev
RewriteEngine On
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</VirtualHost>
|