Hello there,
I’m sorry if this question seems simple or if it already has been asked.
I have installed and configured with success my Django app, working with nginx server and uwsgi.
I own the domain name dev.mysite.com and when I try to access it, I have this Django page :
Obviously, when I try to access my website with /realty everything works fine.
I just would like to access the realty app directly from dev.mysite.com.
Here is my nginx config file :
# the upstream component nginx needs to connect to
upstream django {
server unix:///var/LTU/LTU.sock; # for a file socket
}
# configuration of the server
server {
# the port your site will be served on
listen 80;
listen 443 ssl;
# the domain name it will server for
server_name myserver.mysite.com;
charset utf-8;
ssl_certificate /etc/ssl/www.mywebsite.com/www.mywebsite.com.crt;
ssl_certificate_key /etc/ssl/www.mywebsite.com/www.mywebsite.com.key;
# max upload size
client_max_body_size 75M;
# Django media
location /media {
alias /var/LTU/media;
}
# Django static
location /static {
alias /var/LTU/static;
}
# Finally, send all non-media requests to the Django server.
location / {
uwsgi_pass django;
include /var/LTU/uwsgi_params;
}
}
It seems easy but I’m a little lost between my domain name provider, nginx and Django configuration, anyone could help ?
Thank you