Step 1: Follow the steps for installing Applicare SingleAgent
Configuration in Nginx
Step 2: Stop the Nginx server.
Step 3: Go to the path <Nginx_Installed_Directory>/conf and edit the nginx.conf file. In Linux the default path is (/etc/nginx).
Step 4: Comment the existing format and add the below log_format.
log_format main '$remote_addr - $remote_user $time_iso8601 [$request_time] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';


Step 7: Add the below lines inside the server module
location /nginx-status {
stub_status on;
allow all;
}
Step 8: Start the Nginx server.
Adding Nginx to Applicare
Step 9: Start the agent by running the startAgent.bat/sh file.
Step 10: Once the agent is started, Agent will be automatically added to the Applicare controller. Login into the Applicare console and go to the Overview menu.
Step 11: Select the newly added agent and click the Edit button.
Step 12: Enable the "Add nginx log file location" checkbox and add the access log file path location. Click the update button to save.
Comments
0 comments
Article is closed for comments.