Nginx does not serve the flask pages and shows the default static page -


i have flask app running gunicorn , nginx on ubuntu 14.04 using aws ec2. have deleted default site /etc/nginx/sites-available , /etc/nginx/sites-enabled. in 2 folders, there 1 file: flasky - nginx file below:

server { listen 80;  location / {     include proxy_params;     proxy_pass http://unix:/tmp/flasky.sock; } 

when enter ip of server in browser, default nginx static page shows up. if go /auth/login, correct page served flask shows properly.

if change port 80 8080, restart nginx, enter http://ip-address:8080 flask pages work well. don't know how fix port 80. please help! thanks!

update: found out if use aws public dns: http://ec2-50-112-125-180.us-west-2.compute.amazonaws.com, works. if use corresponding elastic ip: 50.112.125.180 shows nginx default page. knows why?

search nginx.conf word include maybe it's including other directories config files.

also, there may other config blocks

location /  

that superseding section have listen 80.


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -