Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to configure logging template for new sites #9

Open
SpiffyStores opened this issue Apr 2, 2019 · 0 comments
Open

Unable to configure logging template for new sites #9

SpiffyStores opened this issue Apr 2, 2019 · 0 comments

Comments

@SpiffyStores
Copy link

There is a bit of a problem with the current template options for new Nginx sites which prevents the logging of remote IP addresses from behind a proxy.

Nginx has a default 'combined' log format. This cannot be overriden or changed. In order to alter the logging format to include a remote IP address from behind a proxy, a new log format needs to be created, and this format needs to be specified on the access_log directive.

Currently, Virtualmin appears to pull the access_log file name from the Apache template, but ignores the optional log format. It creates all new sites with an access_log directive without a log format option, which means that the default Nginx format is used.

This means that at the moment, it's not possible to correct the log format and provide the remote IP address by using a nominated log format in the site template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant