I have a question about awsec2, nginx distribution

Asked 1 years ago, Updated 1 years ago, 71 views

Preparing to deploy a web application using nginx as a web server using awsec2.

Currently, ubuntu+django+uwsgi+nginx is placed on ec2 through ssh.

The problem is that if my computer writes ec2 public instance to the address bar, all functions are normally

Apply

. But if you try to be sent to a server to send in (Friends ' computer or other computers around the house) another computer

.

An error of 403 occurs.

I'm not sure where to show you the web server or aws setting, so please answer.

If you tell me more information, I'll fix it right away

Thank you so muchㅠㅠ

This is a security group. I specified only ssh as my ip. An error of 403 occurred in this state

I don't know the routing table, but I haven't changed the value of the routing table

Outbound is also the default

aws ec2 nginx

2022-09-21 10:10

1 Answers

It was the csrf token question.

There is a csrf 403 error, and if you use django as a bag, set up ajax or axios csrf token

Check django view again to see if you wrote down the sensor_csrf_cookie!


2022-09-21 10:10

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.