您好,我正在运行 web2py nginx 和 uwsgi,但在部署 1 个或多个域时遇到了问题。问题是服务器总是返回默认的欢迎应用程序,而不是我为域指定的文件夹
任何想法都非常感谢。这是我的 nginx.conf 文件(相关部分)
server {
listen 80;
server_name www.cheer10s.com cheer10s.com;
location / {
uwsgi_pass 127.0.0.1:9001;
include uwsgi_params;
}
location /static {
root /opt/web2py/applications/cheer10s/;
}
}
server {
listen 443;
server_name www.cheer10s.com cheer10s.com;
ssl on;
ssl_certificate /opt/nginx/conf/server.crt;
ssl_certificate_key /opt/nginx/conf/server.key;
location / {
uwsgi_pass 127.0.0.1:9001;
include uwsgi_params;
uwsgi_param UWSGI_SCHEME $scheme;
}
location /static {
root /opt/web2py/applications/cheer10s/;
}
}
*干杯