Skip to content

Commit

Permalink
Merge pull request #393 from DanAtShenTech/patch-1
Browse files Browse the repository at this point in the history
Fix typos; add reference to sites-available directory
  • Loading branch information
xrmx committed Mar 5, 2018
2 parents 603416c + 4e1cf83 commit 5254fe8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tutorials/Django_and_nginx.rst
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ If you haven't already done so, make sure that your ``mysite`` project actually

python manage.py runserver 0.0.0.0:8000

And if it that works, run it using uWSGI::
And if that works, run it using uWSGI::

uwsgi --http :8000 --module mysite.wsgi

Expand All @@ -194,7 +194,7 @@ Install nginx
sudo apt-get install nginx
sudo /etc/init.d/nginx start # start nginx
And now check that the nginx is serving by visiting it in a web browser on port
And now check that nginx is serving by visiting it in a web browser on port
80 - you should get a message from nginx: "Welcome to nginx!". That means these
components of the full stack are working together::

Expand All @@ -214,7 +214,7 @@ https://github.com/nginx/nginx/blob/master/conf/uwsgi_params
Copy it into your project directory. In a moment we will tell nginx to refer to
it.

Now create a file called mysite_nginx.conf, and put this in it::
Now create a file called mysite_nginx.conf in the /etc/nginx/sites-available/ directory, and put this in it::

# mysite_nginx.conf

Expand All @@ -229,7 +229,7 @@ Now create a file called mysite_nginx.conf, and put this in it::
# the port your site will be served on
listen 8000;
# the domain name it will serve for
server_name .example.com; # substitute your machine's IP address or FQDN
server_name example.com; # substitute your machine's IP address or FQDN
charset utf-8;
# max upload size
Expand Down

0 comments on commit 5254fe8

Please sign in to comment.