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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
|
NameVirtualHost 127.0.0.88:80
RewriteLock /var/tmp/rewrite-lock
<VirtualHost 127.0.0.88:80>
ServerName xmlrpc-private.launchpad.dev
ServerName xmlrpc.launchpad.dev
<Proxy *>
Order deny,allow
Allow from 127.0.0.0/255.0.0.0
</Proxy>
ProxyPreserveHost on
ProxyPass / http://localhost:8087/ retry=1
</VirtualHost>
<VirtualHost 127.0.0.88:80>
ServerName lists.launchpad.dev
Alias / /var/tmp/mailman/mhonarc/
<Directory /var/tmp/mailman/mhonarc>
AllowOverride None
DirectoryIndex maillist.html
</Directory>
</VirtualHost>
<VirtualHost 127.0.0.99:80>
ServerName bazaar.launchpad.dev
LogLevel debug
ProxyRequests off
<Proxy *>
Order deny,allow
Allow from localhost 127.0.0.0/255.0.0.0
</Proxy>
ProxyTimeout 20
RewriteEngine On
RewriteMap branch-rewrite prg:%BRANCH_REWRITE%
RewriteMap escape int:escape
RewriteRule ^/$ http://launchpad.dev [L]
RewriteRule ^(/.*)$ ${branch-rewrite:${escape:$1}} [L,P,NE]
DocumentRoot /var/tmp/bazaar.launchpad.dev/static/
<Directory /var/tmp/bazaar.launchpad.dev/static/>
Options SymLinksIfOwnerMatch
AllowOverride None
Options Indexes
</Directory>
<Location />
ProxyPassReverse http://localhost:8080/
</Location>
</VirtualHost>
<VirtualHost 127.0.0.99:443>
ServerName bazaar.launchpad.dev
LogLevel debug
SSLEngine On
SSLProxyEngine On
SSLCertificateFile /etc/apache2/ssl/launchpad.crt
SSLCertificateKeyFile /etc/apache2/ssl/launchpad.key
ProxyRequests off
<Proxy *>
Order deny,allow
Allow from localhost 127.0.0.0/255.0.0.0
</Proxy>
ProxyTimeout 20
RewriteEngine On
RequestHeader add X-Forwarded-Scheme https
RewriteRule ^/$ http://launchpad.dev [L]
RewriteRule ^/(.*)$ http://localhost:8080/$1 [L,P]
<Location />
ProxyPassReverse http://localhost:8080/
</Location>
</VirtualHost>
<VirtualHost 127.0.0.88:80>
ServerName bazaar-internal.launchpad.dev
LogLevel debug
DocumentRoot /var/tmp/bazaar.launchpad.dev/mirrors
<Directory /var/tmp/bazaar.launchpad.dev/mirrors/>
Order Deny,Allow
Deny from all
Allow from 127.0.0.0/255.0.0.0
Options SymLinksIfOwnerMatch
AllowOverride None
Options Indexes
</Directory>
</VirtualHost>
<VirtualHost 127.0.0.88:80>
ServerName ppa.launchpad.dev
ServerAlias private-ppa.launchpad.dev
LogLevel debug
DocumentRoot /var/tmp/ppa
<Directory /var/tmp/ppa/>
Order Deny,Allow
Deny from all
Allow from 127.0.0.0/255.0.0.0
AllowOverride AuthConfig
Options Indexes
</Directory>
</VirtualHost>
<VirtualHost 127.0.0.88:80>
ServerName archive.launchpad.dev
LogLevel debug
DocumentRoot /var/tmp/archive
<Directory /var/tmp/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.88:443>
ServerName launchpad.dev
ServerAlias *.launchpad.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 /+longpoll/ http://localhost:22435/ retry=1
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.88:80>
ServerName launchpad.dev
ServerAlias *.launchpad.dev
RewriteEngine On
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</VirtualHost>
|