mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
nginx softcoding2
This commit is contained in:
parent
88eebd31da
commit
f5320913a4
2 changed files with 11 additions and 5 deletions
|
@ -40,8 +40,14 @@
|
|||
|
||||
- name: Insure alternate nginx path is present
|
||||
file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
path: "{{ nginx_conf_dir }}"
|
||||
with_items:
|
||||
- "{{ nginx_conf_dir }}"
|
||||
- "{{ nginx_dir }}/modules-available"
|
||||
- "{{ nginx_dir }}/modules-enabled"
|
||||
- "{{ nginx_dir }}/sites-available"
|
||||
- "{{ nginx_dir }}/sites-enabled"
|
||||
|
||||
- name: Remove NGINX default config /etc/nginx/sites-enabled/default
|
||||
file:
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
user www-data;
|
||||
worker_processes auto;
|
||||
pid /run/nginx.pid;
|
||||
include /etc/nginx/modules-enabled/*.conf;
|
||||
include {{ nginx_dir }}/modules-enabled/*.conf;
|
||||
|
||||
events {
|
||||
worker_connections 768;
|
||||
|
@ -29,7 +29,7 @@ http {
|
|||
server_names_hash_bucket_size 64;
|
||||
# server_name_in_redirect off;
|
||||
|
||||
include /etc/nginx/mime.types;
|
||||
include {{ nginx_dir }}/mime.types;
|
||||
default_type text/html;
|
||||
|
||||
##
|
||||
|
@ -91,10 +91,10 @@ http {
|
|||
##
|
||||
|
||||
# include a server file which in turn includes conf.d/*
|
||||
include /etc/nginx/server.conf;
|
||||
include {{ nginx_dir }}/server.conf;
|
||||
|
||||
# include other sites
|
||||
include /etc/nginx/sites-enabled/*.conf;
|
||||
include {{ nginx_dir }}/sites-enabled/*.conf;
|
||||
|
||||
# define the upstream backend fastcgi for php
|
||||
upstream php {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue