Elastic Beanstalk 网站无法在 Firefox 上加载
Elastic Beanstalk website does not load on Firefox
我主持这个 open source website running on this domain: www.xinthose.com. The website loads on Google Chrome, but not Firefox (no error message). The Elastic Beanstalk URL does load though: http://xinthose2-env.eba-4qavumcw.us-east-2.elasticbeanstalk.com/home。谁能帮我理解这个吗?这是我的 browserslist
:
> 0.5%
last 2 versions
Firefox ESR
not dead
not IE 9-11 # For IE 9-11 support, remove 'not'.
AWS EC2 自动运行网站node server.js
"use strict";
const express = require("express");
const compression = require('compression');
// config
const port = process.env.PORT || 3000;
const app_folder = "./";
const options = {
dotfiles: 'ignore',
etag: false,
extensions: ['html', 'js', 'scss', 'css'],
index: false,
maxAge: '1y',
redirect: true,
}
// create app
const app = express();
app.use(compression());
app.use(express.static(app_folder, options));
// serve angular paths
app.all('*', function (req, res) {
res.status(200).sendFile(`/`, {root: app_folder});
});
// start listening
app.listen(port, function () {
console.log("Node Express server for " + app.name + " listening on http://localhost:" + port);
});
我的 Firefox 是最新的:版本 80.0.1(64 位)。 Firefox 对 JavaScript 使用更严格吗?我需要更改 server.js
中的某些内容吗?
Beanstalk 设置:
根据评论。
问题是由于缺少 www.xinthose.com
的别名记录引起的。
解决方案是添加它,这样www.xinthose.com
就可以指向Route53中的EB域。
我主持这个 open source website running on this domain: www.xinthose.com. The website loads on Google Chrome, but not Firefox (no error message). The Elastic Beanstalk URL does load though: http://xinthose2-env.eba-4qavumcw.us-east-2.elasticbeanstalk.com/home。谁能帮我理解这个吗?这是我的 browserslist
:
> 0.5%
last 2 versions
Firefox ESR
not dead
not IE 9-11 # For IE 9-11 support, remove 'not'.
AWS EC2 自动运行网站node server.js
"use strict";
const express = require("express");
const compression = require('compression');
// config
const port = process.env.PORT || 3000;
const app_folder = "./";
const options = {
dotfiles: 'ignore',
etag: false,
extensions: ['html', 'js', 'scss', 'css'],
index: false,
maxAge: '1y',
redirect: true,
}
// create app
const app = express();
app.use(compression());
app.use(express.static(app_folder, options));
// serve angular paths
app.all('*', function (req, res) {
res.status(200).sendFile(`/`, {root: app_folder});
});
// start listening
app.listen(port, function () {
console.log("Node Express server for " + app.name + " listening on http://localhost:" + port);
});
我的 Firefox 是最新的:版本 80.0.1(64 位)。 Firefox 对 JavaScript 使用更严格吗?我需要更改 server.js
中的某些内容吗?
Beanstalk 设置:
根据评论。
问题是由于缺少 www.xinthose.com
的别名记录引起的。
解决方案是添加它,这样www.xinthose.com
就可以指向Route53中的EB域。