I have a domain name: www.xyx.com and suppose there is url that leads to login page :www.xyx.com/login.
Suppose a user writes :www.xyx.com/login123 instead of www.xyx.com/login i believe that it should store that is errors.log file.
Here is my uwsgi file:
[uwsgi]
vhost = true
socket = /tmp/mysite.sock
venv = /var/www/mysite/.env
chdir = /var/www/mysite
module = app
callable = app
it is my other file :
server {
listen 80;
server_tokens off;
server_name www.mysite.com mysite.com;
location / {
include uwsgi_params;
uwsgi_pass unix:/tmp/mysite.sock;
}
location /static {
alias /var/www/mysite/static;
}
## Only requests to our Host are allowed
if ($host !~ ^(mysite.com|www.mysite.com)$ ) {
return 444;
}
}