Mention about sites-enabled directory

This commit is contained in:
Hritik Vijay 2023-05-30 21:55:21 +05:30 committed by GitHub
parent bda08b11c6
commit bd733a7646
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,8 @@ The nginx configuration is located at ``/etc/nginx/nginx.conf`` on
Linux. It may be different depending on your operating system. Check the Linux. It may be different depending on your operating system. Check the
docs and look for ``nginx.conf``. docs and look for ``nginx.conf``.
Remove or comment out any existing ``server`` section. Add a ``server`` Remove or comment out any existing ``server`` section from ``/etc/nginx/nginx.conf``
or default included config files at ``/etc/nginx/sites-enabled/``. Add a ``server``
section and use the ``proxy_pass`` directive to point to the address the section and use the ``proxy_pass`` directive to point to the address the
WSGI server is listening on. We'll assume the WSGI server is listening WSGI server is listening on. We'll assume the WSGI server is listening
locally at ``http://127.0.0.1:8000``. locally at ``http://127.0.0.1:8000``.