server - nginx serving files from custom directory residing in home -


in /etc/nginx/nginx.conf file have server block this:

server {   location /testme/ {     root /home/username/sites;     index index.html index.htm;   } } 

when visit http:localhost/testme/ in browser, shouldn't files served /home/username/sites/testme/ directory, have simple index.html? instead 404 not found error. doing wrong here.

note: did sudo nginx -s reload after changing configuration.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -