Welcome! Log In Create A New Profile

Advanced

sites overlap in a EC2 server

March 20, 2016 09:07AM
Hi,

I have an elatic virtual private server (EC2 VPS by Amazon), in which I would like to host two website (ndrini.eu and dradambrosio.eu).

The first (ndrini.eu) is a django dinamic website,
and the second (dradambrosio.eu) is only a static file (to be simpler as possible).

If only ndrini.eu is enabled, the ndrini.eu site works all right,
but if I enable also dradambrosio.eu, the first also stops to work.


These are my settings:

ndrini.eu

server {
listen 80;
server_name *.ndrini.eu;

location /static {
alias /home/ndrini/sites/superlists-staging.ndrini.eu/static;
}

location / {
proxy_pass http://localhost:8000;
}
}

============================================

dradambrosio.eu

server {
listen 80;
server_name *.dradambrosio.eu;
location / {
root /home/ndrini/sites/loomio;
index home.html;
}
}




Can someone tell me why and how to fix it?

Thanks,

Andrea
Subject Author Posted

sites overlap in a EC2 server

ndrini March 20, 2016 09:07AM

Re: sites overlap in a EC2 server

B.R. March 20, 2016 09:18AM

Re: sites overlap in a EC2 server

Francis Daly March 20, 2016 05:02PM

Re: sites overlap in a EC2 server

ndrini March 20, 2016 06:12PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 138
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready