forked from geerlingguy/ansible-role-nginx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request geerlingguy#91 from oxyc/separate-configs
Write vhost configurations to separate config files
- Loading branch information
Showing
7 changed files
with
75 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
server { | ||
listen {{ item.listen | default('80') }}; | ||
|
||
{% if item.server_name is defined %} | ||
server_name {{ item.server_name }}; | ||
{% endif %} | ||
|
||
{% if item.root is defined %} | ||
root {{ item.root }}; | ||
{% endif %} | ||
|
||
index {{ item.index | default('index.html index.htm') }}; | ||
|
||
{% if item.error_page is defined %} | ||
error_page {{ item.error_page }}; | ||
{% endif %} | ||
{% if item.access_log is defined %} | ||
access_log {{ item.access_log }}; | ||
{% endif %} | ||
{% if item.error_log is defined %} | ||
error_log {{ item.error_log }} error; | ||
{% endif %} | ||
|
||
{% if item.return is defined %} | ||
return {{ item.return }}; | ||
{% endif %} | ||
|
||
{% if item.extra_parameters is defined %} | ||
{{ item.extra_parameters|indent(4) }} | ||
{% endif %} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters