- Joined
- Mar 5, 2015
- Messages
- 42
- Reaction score
- 2
Need some help with nginx.conf configuration. When I try to access the default provisioning link:
http://10.0.1.1:5000/provisioning/{randomc_code}/phonebook.xml
I get an IIS HTTP Error 404.0 - Not Found
The file does exist in provisioning folder:
C:\ProgramData\3CX\Instance1\Data\Http\Interface\provisioning\{randomc_code}\phonebook.xml
So this leads me to suspect because the path is not defined in the nginx.conf hence the reason it is not working.
BUT for some reason the a https link works and I've looked into nginx.conf and nothing is defined for the provisioning folder:
https://10.0.1.1/provisioning/{randomc_code}/phonebook.xml
So to define the /provisioning folder within nginx.conf do I just add the following into the listen 5000 section?
Am I missing anything?
Then after it has been defined, how to I restart nginx to the configuration loads?
http://10.0.1.1:5000/provisioning/{randomc_code}/phonebook.xml
I get an IIS HTTP Error 404.0 - Not Found
The file does exist in provisioning folder:
C:\ProgramData\3CX\Instance1\Data\Http\Interface\provisioning\{randomc_code}\phonebook.xml
So this leads me to suspect because the path is not defined in the nginx.conf hence the reason it is not working.
BUT for some reason the a https link works and I've looked into nginx.conf and nothing is defined for the provisioning folder:
https://10.0.1.1/provisioning/{randomc_code}/phonebook.xml
So to define the /provisioning folder within nginx.conf do I just add the following into the listen 5000 section?
location /provisioning {
include "shared-headers.conf";
alias "C:\ProgramData\3CX\Instance1\Data\Http\Interface\provisioning\";
}
Am I missing anything?
Then after it has been defined, how to I restart nginx to the configuration loads?