Skip to content

Commit 5efec7e

Browse files
committed
windows: Include the domain in the docroot
1 parent 821276e commit 5efec7e

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
- name: Create local directory to store Windows content
22
file:
33
state: directory
4-
dest: "{{ windows_docroot }}/{{ windows_domain }}"
4+
dest: "{{ windows_docroot }}"
55
mode: "755"
66

77
- name: Put robots.txt in document root
88
template:
99
src: templates/robots.txt
10-
dest: "{{ windows_docroot }}/{{ windows_domain }}/robots.txt"
10+
dest: "{{ windows_docroot }}/robots.txt"
1111
mode: "644"

roles/properties/windows/templates/windows.php.net.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
ServerName {{ windows_domain }}
1313
ServerAlias {{ windows_domain_alias }}
1414

15-
DocumentRoot {{ windows_docroot }}/{{ windows_domain }}
15+
DocumentRoot {{ windows_docroot }}
1616

1717
RewriteEngine on
1818

@@ -36,7 +36,7 @@
3636
RewriteCond %{REQUEST_URI} !^/robots.txt
3737
RewriteRule ^/ - [F]
3838

39-
<Directory {{ windows_docroot }}/{{ windows_domain }}/>
39+
<Directory {{ windows_docroot }}/>
4040
Options FollowSymLinks
4141
AllowOverride None
4242
Order allow,deny

roles/properties/windows/vars/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ property: "windows"
33
windows_domain: "{{ property }}.{{ domain }}"
44
windows_domain_alias: "{{ property }}.{{ internal_domain }}"
55

6-
windows_docroot: "{{ common_doc_root }}"
6+
windows_docroot: "{{ common_doc_root }}/{{ windows_domain }}"
77
windows_config_file: "{{ property }}.{{ domain }}.conf"

0 commit comments

Comments
 (0)