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: 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 10: Select the newly added agent and click the Edit button.
Step 11: Enable the "Add Nginx Configuration" checkbox and add the below value.
1. Log file path
2. Nginx Host
3. Nginx Port
4. Nginx Protocol
Click the update button to save.
Windows
Linux
Comments
0 comments
Article is closed for comments.