当我在浏览器中输入IP时,页面将显示502 Bad Gateway。这是我的配置文件错误吗? / etc / nginx / sites-enabled / fefault:
WebDriverWait(browser,10).until(EC.frame_to_be_available_and_switch_to_it(By.XPATH, "//div[@id='innerframe']/iframe"))
browser.find_element_by_xpath("//div[@id='mediacontent']//video").text
/home/sscc/sscc2019/uwsgi.ini:
server {
listen 80;
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
server_name 127.0.0.1;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
#try_files $uri $uri/ =404;
include uwsgi_params;
uwsgi_pass 47.101.157.128:8000;
}
location /static{
alias /var/www/sscc2019/static/;
}