Update cookbooks and add wordpress cookbook
This commit is contained in:
21
cookbooks/wordpress/templates/default/nginx.conf.erb
Normal file
21
cookbooks/wordpress/templates/default/nginx.conf.erb
Normal file
@@ -0,0 +1,21 @@
|
||||
server {
|
||||
listen <%= @server_port %>;
|
||||
server_name <%= @server_name %> <%= @server_aliases.join(" ") %>;
|
||||
|
||||
access_log /var/log/nginx/<%= @server_name %>.access.log;
|
||||
error_log /var/log/nginx/<%= @server_name %>.error.log;
|
||||
|
||||
root <%= @docroot %>;
|
||||
index index.php;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$args;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
try_files $uri =404;
|
||||
include fastcgi_params;
|
||||
fastcgi_pass 127.0.0.1:9001;
|
||||
fastcgi_param SCRIPT_FILENAME <%= @docroot %>$fastcgi_script_name;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user