Closed ctrlmaniac closed 2 years ago
This sounds like an issue with your Nginx configuration (assuming that Nginx passes requests to your Django server). I happen to know (some of) the basics of configuring an Nginx server, so if you want, it could be helpful if you posted the config code here 🙂 Do you have separate server blocks for the Django server and the media
and static
subdomains, and do the server block(s) for those subdomains have server_name
s that do not overlap with the one of the server block for your Django server?
I resolved by serving static and media files with the main domain
I have problem with static and media sites which are served by two different subdomains with nginx. However I can't reach them because django always displays the default host!
settings.py
hosts.py
Is it possible to ignore media and static subdomain?