mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
oversignts and corrections -- most now seem to work on rpi
This commit is contained in:
parent
4778ad5e3c
commit
cffb6afecc
23 changed files with 452 additions and 23 deletions
|
@ -116,6 +116,19 @@
|
|||
template:
|
||||
src: wordpress.conf.j2
|
||||
dest: "/etc/{{ apache_config_dir }}/wordpress.conf"
|
||||
when: apache_enabled
|
||||
|
||||
- name: Copy the nginx location info
|
||||
template:
|
||||
src: wordpress-nginx.conf
|
||||
dest: /etc/nginx/conf.d/
|
||||
when: nginx_enabled
|
||||
|
||||
- name: Notify nginx service of changes
|
||||
service:
|
||||
name: nginx
|
||||
state: restarted
|
||||
when: nginx_enabled
|
||||
|
||||
- name: Create symlink wordpress.conf from sites-enabled to sites-available, if wordpress_enabled (debuntu)
|
||||
file:
|
||||
|
|
11
roles/wordpress/templates/wordpress-nginx.conf
Normal file
11
roles/wordpress/templates/wordpress-nginx.conf
Normal file
|
@ -0,0 +1,11 @@
|
|||
location /wordpress {
|
||||
proxy_pass http://127.0.0.1:{{ apache_port }}/wordpress;
|
||||
}
|
||||
location ~ /wordpress/.*\.php$ {
|
||||
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header Host $host;
|
||||
proxy_pass http://127.0.0.1:{{ apache_port }};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue