and add a website thing and get threebean and puiterwijk to review

This commit is contained in:
Stephen Smoogen 2015-04-30 19:55:40 +00:00
parent c34fc5a9a6
commit c586bdf5a3
3 changed files with 36 additions and 0 deletions

View file

@ -296,7 +296,15 @@
- www.389tcp.org
ssl: false
cert_name: "{{wildcard_cert_name}}"
- role: httpd/website
name: whatcanidoforfedora.org
server_aliases:
- www.whatcanidoforfedora.org
ssl: false
cert_name: "{{wildcard_cert_name}}"
- role: httpd/website
name: fedoramagazine.org
server_aliases: [www.fedoramagazine.org stg.fedoramagazine.org]

View file

@ -0,0 +1,11 @@
- name: Copy some config files for {{website}}
template: >
src={{item}} dest=/etc/httpd/conf.d/{{website}}/{{item}}
owner=root group=root mode=0644
with_items:
- whatcanidoforfedora-web.conf
notify:
- restart httpd
tags:
- fedora-web
- fedora-web/whatcanidoforfedora

View file

@ -0,0 +1,17 @@
# redirect to version without the www. on the front
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.whatcanidoforfedora\.org [NC]
RewriteRule ^(.*)$ http://whatcanidoforfedora.org%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTPS_HOST} ^www\.whatcanidoforfedora\.org [NC]
RewriteRule ^(.*)$ https://whatcanidoforfedora.org%{REQUEST_URI} [L,R=301]
ProxyPass / http://asknot-threebean.rhcloud.com/
ProxyPassReverse / http://asknot-threebean.rhcloud.com/
#{% if env == "production" %}
#ProxyPass / http://66.226.72.63/
#ProxyPassReverse / http://66.226.72.63/
#{% else %}
## In staging we point to the staging version of the magazine
#ProxyPass / http://104.207.133.220/
#ProxyPassReverse / http://104.207.133.220/
#{% endif %}