こんにちは、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/;
}
}
*乾杯