~joetalbott/uci-engine/user_auth

« back to all changes in this revision

Viewing changes to juju-deployer/configs/webui_http_vhost

  • Committer: Joe Talbott
  • Date: 2014-05-19 12:40:40 UTC
  • mto: This revision was merged to the branch mainline in revision 550.
  • Revision ID: joe.talbott@canonical.com-20140519124040-481aho0cmw2mri9t
webui - Convert to django app

* Split webui and ticket-system deployment yaml files.
* Uses our python-django and charmstore versions of apache2 and content-fetcher
* Not yet working/ported
  - Completed ticket view
  - Failed ticket view
  - package list
  - engine status


Minimal deplopyment
===================

./juju-deployer/deploy.py webui ticket-system

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<VirtualHost *:80>
2
2
  ServerAdmin ci-engineering-private@lists.launchpad.net
3
 
  ErrorLog ${APACHE_LOG_DIR}/ts-error.log
 
3
  ErrorLog ${APACHE_LOG_DIR}/webui-error.log
4
4
  LogLevel warn
5
 
  CustomLog ${APACHE_LOG_DIR}/ts-access.log combined
 
5
  CustomLog ${APACHE_LOG_DIR}/webui-access.log combined
6
6
 
7
 
  DocumentRoot /srv/ci-airlines.canonical.com
8
 
  ScriptAlias /cgi /srv/ci-airlines.canonical.com/cgi
 
7
  DocumentRoot /srv/{{ servername }}/webui
9
8
 
10
9
  <Directory />
11
10
    Options FollowSymLinks
12
11
    AllowOverride None
13
12
  </Directory>
14
13
 
15
 
  <Directory /srv/ci-airlines.canonical.com>
 
14
  <Directory /srv/{{ servername }}/webui/>
16
15
     Options Indexes FollowSymLinks MultiViews
17
16
     AllowOverride None
18
17
     Order allow,deny
19
18
     Allow from all
20
19
  </Directory>
21
20
 
22
 
  <Directory /srv/ci-airlines.canonical.com/cgi>
23
 
    Options +ExecCGI
24
 
    Order allow,deny
25
 
    Allow from all
26
 
  </Directory>
27
 
 
28
21
  RewriteEngine on
29
22
  RewriteRule ^/api/(.*)$ http://{{ tsdjango }}/api/$1 [P]
30
23
  RewriteRule ^/gk/api/(.*)$ http://{{ gatekeeperrestish }}/api/$1 [P]
 
24
  RewriteCond %{REQUEST_URI} !^/static/
 
25
  RewriteRule ^/(.*)$ http://{{ webuidjango }}/$1 [P]
31
26
  ProxyPassReverse / http://{{ tsdjango }}/
32
27
 
33
 
  Include /etc/apache2/juju-proxy_logs-*.conf
34
28
</VirtualHost>