Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
Merge pull request #52 from AlexCline/master
Browse files Browse the repository at this point in the history
Added support and docs for alternate webserver log directories.
  • Loading branch information
paulczar committed Mar 13, 2014
2 parents 5ae0ee5 + 1705c1b commit a722dcc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ If you would like to modify the `nginx` or `apache` parameters, you should:
- modify the template as you see fit (add auth, setup ssl)
- use the appropriate webserver template attributes to point to your cookbook and template

To modify the webserver log path, set the attributes for your selected webserver:

- `node['apache']['log_dir'] = '/var/log/httpd'`
- `node['nginx']['log_dir'] = '/var/log/nginx'`

Testing
-------
#### Vagrant
Expand Down
2 changes: 1 addition & 1 deletion templates/default/kibana-nginx.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ server {
listen <%= @listen_address %>:<%= @listen_port %>;

server_name <%= @server_name %> <%= @server_aliases.join(" ") %>;
access_log /var/log/nginx/<%= @server_name %>.access.log;
access_log <%= node['nginx']['log_dir'] %>/<%= @server_name %>.access.log;

location / {
root <%= @kibana_dir %>;
Expand Down

0 comments on commit a722dcc

Please sign in to comment.