Nginx Configuration
Instructions to configure the Avo Assure Nginx Server
Last updated
Instructions to configure the Avo Assure Nginx Server
Last updated
Ensure Webserver (avoassurewebserver.exe) is running.
Ensure File server (avoassurefileserver.exe) is running.
Ensure NGINX_ON value is set to TRUE in the ‘webapp/.env’ file.
Navigate to ‘C:\Windows\System32\drivers\etc\hosts’. Add the following at the end of the file 127.0.0.1 avoassure.com (Note: Do not change any other content). Admin access is required to make this change.
5. If the above point is not performed due to admin issues, navigate to ‘./nginx/config/nginx.conf’.
6. Locate ‘upstream avoassure’.
7. Change server avoassure.com:<port> to server 127.0.0.1:<port> and save.
8. Locate ‘upstream patchupdate’.
9. Change server avoassure.com:<port> to server 127.0.0.1:<port> and save.
Open an elevated command prompt in the ‘nginx’ folder.
Type ‘nginx-start.bat’ and hit enter.
3. Upon successful start, nginx.exe will be running as a process (can be observed in Task Manager).
Open an elevated command prompt in the ‘nginx’ folder.
Type ‘nginx-stop.bat’ and hit enter.
3. Upon successful stop, nginx.exe will not be running as a process (can be observed in Task Manager). Alternately, type 'taskkill /F /IM nginx.exe' in the elevated command prompt.
Open an elevated command prompt in the ‘nginx’ folder.
Type nodeserver_nginx_services_install.bat and hit enter. Note: nodeserver_nginx_services_install.bat will attempt to install avoassurewebserver.exe service if it is not already installed.
Open an elevated command prompt in the ‘nginx’ folder. Note: AvoAssureNGINX service should already be installed.
Type ‘nodeserver_nginx_services_start.bat’ and hit enter. Note: nodeserver_nginx_services_start.bat will attempt to start avoassurewebserver.exe service if it is not already started.
Open an elevated command prompt in the 'nginx' folder. Note: AvoAssureNGINX service should be in the running state.
Type nodeserver_nginx_services_stop.bat and hit enter. Note: nodeserver_nginx_services_start.bat will attempt to stop avoassurewebserver.exe service if it is not already stopped.
Open an elevated command prompt in the ‘nginx’ folder. Note: AvoAssureNGINX service should be in the stopped state.
Type ‘nodeserver_nginx_services_remove.bat’ and hit enter. Note: nodeserver_nginx_services_start.bat will attempt to remove the avoassurewebserver.exe service if it is not already removed.
Open an elevated command prompt in the ‘nginx’ folder.
Run the following commands in sequential order i.e., only after the previous command has been completed:
Type ‘nodeserver_nginx_services_stop.bat’ and hit enter.
Type ‘nodeserver_nginx_services_remove.bat’ and hit enter.
Type ‘nodeserver_nginx_services_install.bat’ and hit enter.
Type ‘nodeserver_nginx_services_start.bat’ and hit enter.
In case any of the above-mentioned steps fail, ensure the following points have been taken care of:
Commands are being run with an elevated command prompt (i.e., prompt has Administrator privileges).
Ensure port 80 and 443 (or any custom selected port) is available and not used by any other program.
Ensure known hosts file is updated.
There are no spaces or special characters (such as ! @ # $ % ^ & ( ) + - = { } , . ; ' [ ] ~ `) in the folder name (and entire path) where the WebServer is being extracted. Example:
Valid: D:\AvoAssure\Server\WebServer\nginx
Invalid: D:\AvoAssure install files\Server\WebServer\nginx
Invalid: D:\AvoAssure\Server@files\WebServer\nginx
If all the above scenarios hold true and the server is still not running, please contact Avo Assure Support Team.