/
Custom Nginx Configuration
Custom Nginx Configuration
server
{
listen 80;
underscores_in_headers on;
location /employee
{
root /var/web;
index index.html index.htm;
try_files $uri $uri/ /employee/index.html;
}
}
This
location
block specifies the “/employee
” prefix compared with the URI from the request. For matching requests, the URI will be added to the path specified in the root directive, that is, to/var/web
, to form the path to the requested file on the local file systemUsing
try_files
means that you can test a sequence. If$uri
doesn’t exist, try$uri/
, if that doesn’t exist try a fallback location. In this case, if the$uri
file exists, serve it. If not, check if that directory exists. If not, then proceed to/employee/index.html
which you make sure exists.
, multiple selections available,
Related content
es-curator to clear old logs/indices using Helm Chart
es-curator to clear old logs/indices using Helm Chart
Read with this
Employee Details
Employee Details
More like this
Troubleshooting K8S
Troubleshooting K8S
Read with this
Search Employee by Multiple Criteria
Search Employee by Multiple Criteria
More like this
LetsEncrypt manual certificate Renewals
LetsEncrypt manual certificate Renewals
Read with this
HRMS
More like this