I would like to serve
Within nginx.conf I tried putting
mypage.html in designated root directory and then
location /mypage} alias mypage.html; }
But no dice. Must be something similar?
Edit: If I put entire path from '/' in alias it works but I would rather have it relative from the set root directory. How do I reference the root dir I have defined earlier in the config with:
Further, when I do this and the client makes a request for /mypage, nginx defaults to octet stream filetype. How do I force text/html for URLs I define like this?