nginx 监听一个端口同时支持https和http?
方法如下:
server {
listen 1234 ssl;
server_name your.site.tld;
ssl on;
...
error_page 497 https://$host:1234$request_uri;
...
}
原文:https://ma.ttias.be/force-redirect-http-https-custom-port-nginx/
方法如下:
server {
listen 1234 ssl;
server_name your.site.tld;
ssl on;
...
error_page 497 https://$host:1234$request_uri;
...
}
原文:https://ma.ttias.be/force-redirect-http-https-custom-port-nginx/
小米路由器R2D的sftp默认没有开启,缺少文件。
下载附件,解压上传到/usr/libexec
添加可执行权限:
chmod +x /usr/libexec/sftp-server
查看SELinux状态
/usr/sbin/sestatus -v
或getenforce
如果SELinux status参数为enabled即为开启状态关闭SELinux
vi /etc/selinux/config
将SELINUX=enforcing
改为SELINUX=disabled
yum -y install ntp
systemctl start ntpd
systemctl enable ntpd