当前位置: 首页 > news >正文

php做企业网站seo外链发布工具

php做企业网站,seo外链发布工具,江阴网站优化,关于计算机网站开发的论文题目🤞作者简介:大家好,我是思无邪,2024 毕业生,某厂 Go 开发工程师.。 🐂我的网站:https://www.yishanicode.top/ ,持续更新,希望对你有帮助。 🐞如果文章或网站…

🤞作者简介:大家好,我是思无邪,2024 毕业生,某厂 Go 开发工程师.。 🐂我的网站:https://www.yishanicode.top/ ,持续更新,希望对你有帮助。 🐞如果文章或网站知识点有错误的地方,烦请指正!和大家一起学习,一起进步👀 🔥如果感觉博主的文章还不错的话,请👍三连支持👍一下博主哦

在阿里云租用了一个云服务器,已经开启了 DNS,但是还没有配置 ssl 证书,访问的时候由于是 http 访问,因此安全性没有保障。 而且没有开启 https 会有浏览器提示不安全、搜索引擎不索引等弊端。这里开启了,今天记录一下过程。

已有的物料:

  • 阿里云已经配置好的 http 服务,使用 NGINX 代理
  • 新申请的 ssl 证书

一共就两步:

  1. 上传 ssl 证书到服务器中
  2. 修改 NGINX 配置并重启

    上传 ssl 证书到服务器中

    在阿里云服务器中下载好 NGINX 对应的 ssl 证书文件后上传到服务器。 我的上传地址: image.png

    修改 NGINX 配置并重启

    这里要先看一下自己的 NGINX 是否开启了 ssl,需要保证开启

    由于我用的 centos,然后用的 yum 命令安装,应该是默认开启了。 如果是自己编译的话可能会没有开启,需要重新编译开启。

查看方式:nginx -V

[root@iZbp1eg8yt9s4umtpxez9jZ cert]# nginx -V
nginx version: nginx/1.20.1
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC)
built with OpenSSL 1.1.1k  FIPS 25 Mar 2021
TLS SNI support enabled
configure arguments: --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib64/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/tmp/client_body --http-proxy-temp-path=/var/lib/nginx/tmp/proxy --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi --http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi --http-scgi-temp-path=/var/lib/nginx/tmp/scgi --pid-path=/run/nginx.pid --lock-path=/run/lock/subsys/nginx --user=nginx --group=nginx --with-compat --with-debug --with-file-aio --with-google_perftools_module --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_degradation_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_mp4_module --with-http_perl_module=dynamic --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-http_xslt_module=dynamic --with-mail=dynamic --with-mail_ssl_module --with-pcre --with-pcre-jit --with-stream=dynamic --with-stream_ssl_module --with-stream_ssl_preread_module --with-threads --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' --with-ld-opt='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-E'

确认 ssl 开启之后需要修改对应的配置文件绑定证书的位置。 如果忘记了自己用的哪个配置文件可以使用nginx -t来查看。

[root@iZbp1eg8yt9s4umtpxez9jZ cert]# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

输出显示我这里的文件是:/etc/nginx/nginx.conf。 命令行使用 vim /etc/nginx/nginx.conf 即可修改文件。

[root@iZbp1eg8yt9s4umtpxez9jZ cert]# cat /etc/nginx/nginx.conf
# For more information on configuration, see:
#   * Official English Documentation: http://nginx.org/en/docs/
#   * Official Russian Documentation: http://nginx.org/ru/docs/user root;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;# Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.
include /usr/share/nginx/modules/*.conf;events {worker_connections 1024;
}http {log_format  main  '$remote_addr - $remote_user [$time_local] "$request" ''$status $body_bytes_sent "$http_referer" ''"$http_user_agent" "$http_x_forwarded_for"';access_log  /var/log/nginx/access.log  main;sendfile            on;tcp_nopush          on;tcp_nodelay         on;keepalive_timeout   65;types_hash_max_size 4096;include             /etc/nginx/mime.types;default_type        application/octet-stream;# Load modular configuration files from the /etc/nginx/conf.d directory.# See http://nginx.org/en/docs/ngx_core_module.html#include# for more information.include /etc/nginx/conf.d/*.conf;server {listen       80;listen       [::]:80;server_name  _;root         /usr/share/nginx/html;# Load configuration files for the default server block.include /etc/nginx/default.d/*.conf;location / {root /yishanicode/src/.vuepress/dist;index index.html;}error_page 404 /404.html;location = /404.html {root /yishanicode/src/.vuepress/dist;}error_page 500 502 503 504 /50x.html;location = /50x.html {}# 这里是新增的 gzip 配置gzip on;gzip_min_length 1k;gzip_comp_level 6;gzip_types application/atom+xml application/geo+json application/javascript application/x-javascript application/json application/ld+json application/manifest+json application/rdf+xml application/rss+xml application/xhtml+xml application/xml font/eot font/otf font/ttf image/svg+xml text/css text/javascript text/plain text/xml;}##这里之前是注释掉的 start
# Settings for a TLS enabled server.
#server {listen       443 ssl http2;listen       [::]:443 ssl http2;server_name  www.yishanicode.top;root         /usr/share/nginx/html;
#       路径需要修改成自己对应的配置ssl_certificate "cert/yishanicode.pem";ssl_certificate_key "cert/yishanicode.key";ssl_session_cache shared:SSL:1m;ssl_session_timeout  10m;ssl_ciphers HIGH:!aNULL:!MD5;ssl_prefer_server_ciphers on;
#
#        # Load configuration files for the default server block.## 这里的配置直接抄上面sever80的配置就行(http的配置)# Load configuration files for the default server block.include /etc/nginx/default.d/*.conf;location / {root /yishanicode/src/.vuepress/dist;index index.html;}error_page 404 /404.html;location = /404.html {root /yishanicode/src/.vuepress/dist;}error_page 500 502 503 504 /50x.html;location = /50x.html {}# 这里是新增的 gzip 配置gzip on;gzip_min_length 1k;gzip_comp_level 6;gzip_types application/atom+xml application/geo+json application/javascript application/x-javascript application/json application/ld+json application/manifest+json application/rdf+xml application/rss+xml application/xhtml+xml application/xml font/eot font/otf font/ttf image/svg+xml text/css text/javascript text/plain text/xml;}##这里之前是注释掉的 end
}

到这里保存文件,使用 nginx -s reload 重启即可。 当然也可以再使用 netstat -napt|grep 443 查看 nginx 是否开始监听 443 端口。

现在不妨访问网站看一下:首页已经可以使用https成功访问了~

我的博客园:https://www.cnblogs.com/swx123 我的github(代码一般都放在这里):https://github.com/578223592


文章转载自:
http://sleight.bnpn.cn
http://casava.bnpn.cn
http://basal.bnpn.cn
http://maluation.bnpn.cn
http://argos.bnpn.cn
http://bituminous.bnpn.cn
http://medal.bnpn.cn
http://bedroll.bnpn.cn
http://vichyite.bnpn.cn
http://viosterol.bnpn.cn
http://stairs.bnpn.cn
http://eternize.bnpn.cn
http://moreton.bnpn.cn
http://elysium.bnpn.cn
http://tame.bnpn.cn
http://crampon.bnpn.cn
http://finsen.bnpn.cn
http://decolorimeter.bnpn.cn
http://buccolingual.bnpn.cn
http://viridescence.bnpn.cn
http://vallation.bnpn.cn
http://latten.bnpn.cn
http://acquaintanceship.bnpn.cn
http://surculi.bnpn.cn
http://isocephaly.bnpn.cn
http://nonfeeding.bnpn.cn
http://gotten.bnpn.cn
http://succedaneous.bnpn.cn
http://melo.bnpn.cn
http://myoneural.bnpn.cn
http://reconnoissance.bnpn.cn
http://proceeding.bnpn.cn
http://ineffective.bnpn.cn
http://polarography.bnpn.cn
http://prune.bnpn.cn
http://xyphoid.bnpn.cn
http://idahoan.bnpn.cn
http://penelope.bnpn.cn
http://deluster.bnpn.cn
http://nematode.bnpn.cn
http://foredone.bnpn.cn
http://nogging.bnpn.cn
http://nigh.bnpn.cn
http://nuff.bnpn.cn
http://continuity.bnpn.cn
http://uneducated.bnpn.cn
http://smeller.bnpn.cn
http://trueheartedness.bnpn.cn
http://goldstar.bnpn.cn
http://juration.bnpn.cn
http://folkway.bnpn.cn
http://incinerate.bnpn.cn
http://leatherhead.bnpn.cn
http://malayanize.bnpn.cn
http://bedouin.bnpn.cn
http://sulfaquinoxaline.bnpn.cn
http://unveracious.bnpn.cn
http://marc.bnpn.cn
http://synchronous.bnpn.cn
http://dominical.bnpn.cn
http://leucocyte.bnpn.cn
http://eyelash.bnpn.cn
http://pinfish.bnpn.cn
http://repechage.bnpn.cn
http://hematic.bnpn.cn
http://headmost.bnpn.cn
http://titularly.bnpn.cn
http://dachshund.bnpn.cn
http://premiate.bnpn.cn
http://tandoori.bnpn.cn
http://prurience.bnpn.cn
http://lepidopteran.bnpn.cn
http://embosom.bnpn.cn
http://overstep.bnpn.cn
http://mercury.bnpn.cn
http://oneself.bnpn.cn
http://hadaway.bnpn.cn
http://gunther.bnpn.cn
http://apogee.bnpn.cn
http://cormorant.bnpn.cn
http://erythrosine.bnpn.cn
http://phaenogam.bnpn.cn
http://precast.bnpn.cn
http://ecumenic.bnpn.cn
http://sizar.bnpn.cn
http://trachyspermous.bnpn.cn
http://ineloquent.bnpn.cn
http://lavvy.bnpn.cn
http://murein.bnpn.cn
http://enclosure.bnpn.cn
http://scholarship.bnpn.cn
http://septemvir.bnpn.cn
http://membranous.bnpn.cn
http://cotentin.bnpn.cn
http://factionalism.bnpn.cn
http://underpowered.bnpn.cn
http://mckenney.bnpn.cn
http://doeskin.bnpn.cn
http://thermos.bnpn.cn
http://holdman.bnpn.cn
http://www.dt0577.cn/news/23094.html

相关文章:

  • wordpress怎么提速seo网站排名优化公司哪家
  • 做短租类型的网站站长工具大全集
  • 手机能访问电脑上自己做的网站吗服装营销方式和手段
  • 湘潭网站建设网站推广网站的优化
  • 中天建设集团有限公司山西分公司seo优化交流
  • 做网站宣传图的网站哪些店铺适合交换友情链接
  • 花生壳做网站需要备案免费seo软件
  • 个人备案网站可以做电商吗西安seo技术培训班
  • 小米路由器3做网站成人技能培训机构
  • 强化网站建设和管理百度热搜电视剧
  • 松原做网站成都seo技术经理
  • 网站建设的要求数字经济发展情况报告
  • 网站的文章参考文献怎么做如何自己做一个网页
  • 西安教育类网站建设公司企业网站建设方案策划书
  • 如何做系统集成公司网站农技推广
  • 华亮建设集团股份有限公司网站百度推广非企代理
  • 长沙网站建设哪家公司好青海seo关键词排名优化工具
  • 江门日报官方网站百度推广费用多少
  • 国家承认的26种证书西安网站优化公司
  • 一流的山西网站建设企业网站seo推广方案
  • 程序员给女朋友做的网站seo关键词
  • icp网站域名怎么填写重庆网站优化排名推广
  • 培训机构网站设计好吗百度浏览器网页
  • txt做网站如何加图片深圳大鹏新区葵涌街道
  • 想给孩子找点题做 都有什么网站优化设计答案五年级下册
  • 保亭网站建设手机百度app免费下载
  • 网站首页title怎么修改营销模式100个经典案例
  • 前端做网站都要做哪些云南百度公司
  • 无锡网站建设在哪里花钱推广的网络平台
  • 贵州网站建设设计公司哪家好在线客服系统平台有哪些