and add a website thing and get threebean and puiterwijk to review
This commit is contained in:
parent
c34fc5a9a6
commit
c586bdf5a3
3 changed files with 36 additions and 0 deletions
|
@ -296,7 +296,15 @@
|
||||||
- www.389tcp.org
|
- www.389tcp.org
|
||||||
ssl: false
|
ssl: false
|
||||||
cert_name: "{{wildcard_cert_name}}"
|
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
|
- role: httpd/website
|
||||||
name: fedoramagazine.org
|
name: fedoramagazine.org
|
||||||
server_aliases: [www.fedoramagazine.org stg.fedoramagazine.org]
|
server_aliases: [www.fedoramagazine.org stg.fedoramagazine.org]
|
||||||
|
|
11
roles/fedora-web/whatcanidoforfedora/tasks/main.yml
Normal file
11
roles/fedora-web/whatcanidoforfedora/tasks/main.yml
Normal 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
|
|
@ -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 %}
|
Loading…
Add table
Add a link
Reference in a new issue