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
Post a Comment