Skip to content

Commit

Permalink
Update questions-and-answer-forums-with-askbot-on-ubuntu-16-04
Browse files Browse the repository at this point in the history
  • Loading branch information
gopalraha authored Aug 30, 2017
1 parent 86f2f88 commit cdd83b3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ Press **CTRL+O** to write then hit **ENTER** to save the file then **CTRL+X** to

6. Now Remove the default Nginx Server Blocks (Virtual Host) and default Nginix index file to add new `askbot` Nginx server blocks.

{: .note}
>After getting Letsencrypt SSL for your domain. This is necessary step to avoid nginx to show the default nginx web pages and this will also help to listen Gunicorn with nginx. Please delete the default nginx server blocks and default nginx index web page.

sudo rm -rf /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default /var/www/html/index.nginx-debian.html

7. Add new `askbot` Nginx Server Blocks (Virtual Host) to run AskBot in Production Environment. In below, `example.com` is your domain name and `www.example.com` is your sub-domain name, `/home/example_user/askbot` is the working directory of AskBot, `unix:/home/example_user/askbot/askbot.sock` is the location of askbot sock file, `/home/example_user/askbot/askbot` is the location of askbot media files (Images, Attachments, etc.) in **upfiles** directory and `/home/example_user/askbot` is the location of askbot static files (CSS, JS, etc.) in **static** directory.
Expand Down

0 comments on commit cdd83b3

Please sign in to comment.