swsnu / swpp2019-team3

Browse and Organize papers, Share and Expand your ideas (for now, resources for ML and Text Analytics are disabled)
https://www.papersfeed.online
8 stars 2 forks source link

Nginx setting for both PapersFeed service and API doc #222

Closed davin111 closed 4 years ago

davin111 commented 4 years ago

Describe the bug I have trouble modifying the Nginx configuration file so that www.papersfeed.online serves both PapersFeed service and the API document(static files) created in #221 PR. I think we need to understand Nginx's rules about location.

Expected behavior You should access both urls below appropriately. https://www.papersfeed.online https://www.papersfeed.online/static/apidoc/apidoc.html

Additional context Currently, I reverted the Nginx conf file so that PapersFeed can be accessed normally.

We should modify /etc/nginx/sites-available/papersfeed.conf file on the server VM(sudo needed). Also, we can check logs about Nginx in /var/log/nginx/error.log.

davin111 commented 4 years ago

Solved