~launchpad-pqm/launchpad/devel

5799.1.63 by Stuart Bishop
Whoops
1
NameVirtualHost 127.0.0.88:80
2
7459.5.1 by Michael Hudson
yay simpler
3
RewriteLock /var/tmp/rewrite-lock
4
5799.1.63 by Stuart Bishop
Whoops
5
<VirtualHost 127.0.0.88:80>
6
  ServerName xmlrpc-private.launchpad.dev
7
  ServerName xmlrpc.launchpad.dev
8
  <Proxy *>
9
    Order deny,allow
10
    Allow from 127.0.0.0/255.0.0.0
11
  </Proxy>
12
  ProxyPreserveHost on
13
14
  ProxyPass / http://localhost:8087/ retry=1
15
</VirtualHost>
16
8687.12.1 by Karl Fogel
* configs/development/local-launchpad-apache: Make a block for
17
<VirtualHost 127.0.0.88:80>
18
  ServerName lists.launchpad.dev
19
  Alias  /   /var/tmp/mailman/mhonarc/
20
  <Directory /var/tmp/mailman/mhonarc>
21
    AllowOverride None
22
    DirectoryIndex maillist.html
23
  </Directory>
24
</VirtualHost>
25
7551.3.14 by Michael Hudson
cleanups
26
<VirtualHost 127.0.0.99:80>
27
  ServerName bazaar.launchpad.dev
28
  LogLevel debug
29
30
  ProxyRequests off
31
  <Proxy *>
32
    Order deny,allow
33
    Allow from localhost 127.0.0.0/255.0.0.0
34
  </Proxy>
35
  ProxyTimeout 20
36
37
  RewriteEngine On
38
  RewriteMap branch-rewrite prg:%BRANCH_REWRITE%
8377.5.1 by Michael Hudson
get apache to mess about with the urls it gives us and takes us a lot less
39
  RewriteMap escape int:escape
7551.3.14 by Michael Hudson
cleanups
40
41
  RewriteRule ^/$ http://launchpad.dev [L]
42
8377.5.1 by Michael Hudson
get apache to mess about with the urls it gives us and takes us a lot less
43
  RewriteRule ^(/.*)$ ${branch-rewrite:${escape:$1}} [L,P,NE]
7551.3.14 by Michael Hudson
cleanups
44
45
  DocumentRoot /var/tmp/bazaar.launchpad.dev/static/
46
  <Directory /var/tmp/bazaar.launchpad.dev/static/>
47
    Options SymLinksIfOwnerMatch
48
    AllowOverride None
49
    Options Indexes
50
  </Directory>
51
52
  <Location />
53
    ProxyPassReverse http://localhost:8080/
54
  </Location>
5799.1.63 by Stuart Bishop
Whoops
55
</VirtualHost>
56
7551.3.11 by Michael Hudson
reasonably foul (but working!) apache config
57
<VirtualHost 127.0.0.99:443>
58
  ServerName bazaar.launchpad.dev
59
  LogLevel debug
60
61
  SSLEngine On
62
  SSLProxyEngine On
63
  SSLCertificateFile /etc/apache2/ssl/launchpad.crt
64
  SSLCertificateKeyFile /etc/apache2/ssl/launchpad.key
65
66
  ProxyRequests off
67
  <Proxy *>
68
    Order deny,allow
69
    Allow from localhost 127.0.0.0/255.0.0.0
70
  </Proxy>
71
  ProxyTimeout 20
72
73
  RewriteEngine On
74
7551.3.12 by Michael Hudson
unhorrible the config a bit
75
  RequestHeader add X-Forwarded-Scheme https
7551.3.11 by Michael Hudson
reasonably foul (but working!) apache config
76
77
  RewriteRule ^/$ http://launchpad.dev [L]
7551.3.16 by Michael Hudson
actually we don't need to send https connections through the dynamic rewrite at all, which enables some simplifications
78
  RewriteRule ^/(.*)$ http://localhost:8080/$1 [L,P]
7551.3.11 by Michael Hudson
reasonably foul (but working!) apache config
79
80
  <Location />
7551.3.16 by Michael Hudson
actually we don't need to send https connections through the dynamic rewrite at all, which enables some simplifications
81
    ProxyPassReverse http://localhost:8080/
7551.3.11 by Michael Hudson
reasonably foul (but working!) apache config
82
  </Location>
83
</VirtualHost>
84
7459.5.21 by Michael Hudson
make security considerations much more obvious
85
<VirtualHost 127.0.0.88:80>
86
  ServerName bazaar-internal.launchpad.dev
87
  LogLevel debug
88
5799.1.63 by Stuart Bishop
Whoops
89
  DocumentRoot /var/tmp/bazaar.launchpad.dev/mirrors
90
  <Directory /var/tmp/bazaar.launchpad.dev/mirrors/>
7459.5.21 by Michael Hudson
make security considerations much more obvious
91
    Order Deny,Allow
92
    Deny from all
93
    Allow from 127.0.0.0/255.0.0.0
5799.1.63 by Stuart Bishop
Whoops
94
    Options SymLinksIfOwnerMatch
95
    AllowOverride None
96
    Options Indexes
97
  </Directory>
98
</VirtualHost>
99
8971.11.2 by William Grant
Add ppa.launchpad.net and private-ppa.launchpad.net configs to Apache.
100
<VirtualHost 127.0.0.88:80>
101
  ServerName ppa.launchpad.dev
102
  ServerAlias private-ppa.launchpad.dev
103
  LogLevel debug
104
105
  DocumentRoot /var/tmp/ppa
106
  <Directory /var/tmp/ppa/>
107
    Order Deny,Allow
108
    Deny from all
109
    Allow from 127.0.0.0/255.0.0.0
110
    AllowOverride AuthConfig
111
    Options Indexes
112
  </Directory>
113
</VirtualHost>
114
10053.1.1 by William Grant
Create archive.launchpad.dev, to which the local primary/partner archives are published.
115
<VirtualHost 127.0.0.88:80>
116
  ServerName archive.launchpad.dev
117
  LogLevel debug
118
119
  DocumentRoot /var/tmp/archive
120
  <Directory /var/tmp/archive/>
121
    Order Deny,Allow
122
    Deny from all
123
    Allow from 127.0.0.0/255.0.0.0
124
    Options Indexes
125
  </Directory>
126
</VirtualHost>
127
6991.1.1 by Guilherme Salgado
Serve *.launchpad.dev through https
128
<VirtualHost 127.0.0.88:443>
5799.1.63 by Stuart Bishop
Whoops
129
  ServerName launchpad.dev
130
  ServerAlias *.launchpad.dev
131
  <Proxy *>
132
    Order deny,allow
133
    Allow from 127.0.0.0/255.0.0.0
134
  </Proxy>
6991.1.1 by Guilherme Salgado
Serve *.launchpad.dev through https
135
  SSLEngine On
136
  SSLCertificateFile /etc/apache2/ssl/launchpad.crt
7140.7.2 by Celso Providelo
Adjust rocketfuel-setup and development apache configuration to use mod_deflate.
137
  SSLCertificateKeyFile /etc/apache2/ssl/launchpad.key
6991.1.1 by Guilherme Salgado
Serve *.launchpad.dev through https
138
5799.1.63 by Stuart Bishop
Whoops
139
  ProxyPreserveHost on
14032.2.8 by Raphael Badin
Reverse ProxyPass directive ordering.
140
  ProxyPass /+longpoll/ http://localhost:22435/ retry=1
5799.1.63 by Stuart Bishop
Whoops
141
  ProxyPass / http://localhost:8086/ retry=1
7140.7.2 by Celso Providelo
Adjust rocketfuel-setup and development apache configuration to use mod_deflate.
142
143
  <Location />
144
    # Insert filter
145
    SetOutputFilter DEFLATE
146
147
    # Don't compress images
148
    SetEnvIfNoCase Request_URI \
149
    \.(?:gif|jpe?g|png)$ no-gzip dont-vary
150
151
    # Don't gzip anything that starts /@@/ and doesn't end .js (ie images)
152
    SetEnvIfNoCase Request_URI ^/@@/ no-gzip dont-vary
153
    SetEnvIfNoCase Request_URI ^/@@/.*\.js$ !no-gzip !dont-vary
154
  </Location>
155
5799.1.63 by Stuart Bishop
Whoops
156
</VirtualHost>
6991.1.2 by Guilherme Salgado
Make http://*.lp.dev redirect to https://
157
158
<VirtualHost 127.0.0.88:80>
159
  ServerName launchpad.dev
160
  ServerAlias *.launchpad.dev
161
  RewriteEngine On
162
  RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
163
</VirtualHost>