隐藏nginx版本
编辑/etc/nginx/nginx.conf
取消server_tokens off 前面的注释
http转发80端口
编辑/etc/nginx/sites-enabled/default
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# https://www.nginx.com/resources/wiki/start/
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
# https://wiki.debian.org/Nginx/DirectoryStructure
#
# In most cases, administrators will remove this file from sites-enabled/ and
# leave it as reference inside of sites-available where it will continue to be
# updated by the nginx packaging team.
#
# This file will automatically load configuration files provided by other
# applications, such as Drupal or WordPress. These applications will be made
# available underneath a path with that package name, such as /drupal8.
#
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##
# Default server configuration
#
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name localhost;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
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 _;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
if ($http_user_agent != "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/180.571.0.99 Safari/537.36") {
return 404;
}
#转发给端口12345,可修改为其他端口
proxy_pass http://localhost:12345;
}
}
可以看到都可以转发端口到80成功上线,同时nginx可以配置多个转发端口
这样也是可以的
服务器托管,北京服务器托管,服务器租用 http://www.fwqtg.net
ES6是ECMAScript6.0,是JavaScript的下一个版本标准,发版在2015年。 虽然15年已经有正式版本了,但是国内普遍商用是在2018年之后,甚至很多前端现在还搞不懂ES6! ES6 的出现主要是为了解决 ES5 的先天不足,比如 JavaS…