Update django.md

This commit is contained in:
RadinPirouz
2023-10-10 23:55:00 +03:30
committed by GitHub
parent cbef10c5d5
commit b73b088a1b

View File

@@ -245,7 +245,7 @@ $ sudo systemctl restart gunicorn
$ sudo nano /etc/nginx/sites-available/myproject $ sudo nano /etc/nginx/sites-available/myproject
50.Inside, open up a new server block. You will start by specifying that this block should listen on the normal port 80 and that it should respond to your servers domain name or IP address: 50.Inside, open up a new server block. You will start by specifying that this block should listen on the normal port 80 and that it should respond to your servers domain name or IP address:
```
server { server {
listen 80; listen 80;
server_name server_domain_or_IP; server_name server_domain_or_IP;
@@ -260,7 +260,7 @@ server {
proxy_pass http://unix:/run/gunicorn.sock; proxy_pass http://unix:/run/gunicorn.sock;
} }
} }
```
51.Save and close the file when you are finished. Now, you can enable the file by linking it to the sites-enabled directory: 51.Save and close the file when you are finished. Now, you can enable the file by linking it to the sites-enabled directory:
$ sudo ln -s /etc/nginx/sites-available/myproject /etc/nginx/sites-enabled $ sudo ln -s /etc/nginx/sites-available/myproject /etc/nginx/sites-enabled