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

建设向58同城的网站自己怎么做网站卖车

建设向58同城的网站,自己怎么做网站卖车,优秀网站建设设计,神州网站制作一、目的 Nginx快速部署SSL证书--2023年10月29日可用二、环境 Centos/Ubuntu服务器 前端代码文件夹#xff1a; 假设为#xff1a;/root/demo文件夹 域名 假设为#xff1a;demo.com SSL证书#xff08;通过上一篇博客获取#xff0c;获取其他方式获取到的SSL证书 假设为/root/demo文件夹 域名 假设为demo.com SSL证书通过上一篇博客获取获取其他方式获取到的SSL证书 demo.com.cerdemo.com.key 三、步骤 3.1 安装Nginx 官方文档https://docs.nginx.com/nginx/admin-guide/installing-nginx/installing-nginx-open-source/ CentOS sudo yum install epel-release sudo yum update sudo yum install nginx sudo nginx -v sudo systemctl restart nginx sudo systemctl enable nginx sudo systemctl status nginxUbuntu sudo apt-get update sudo apt install nginx sudo nginx -v sudo systemctl restart nginx sudo systemctl enable nginx sudo systemctl status nginx3.2 前端代码 前端代码原先位置/root/demo - 移动到nginx默认文件夹/usr/share/nginx/html/ cp -r /root/demo/* /usr/share/nginx/html/3.3 HTTP配置 3.3.1 修改Nginx配置 默认配置为/etc/nginx/nginx.conf nano /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 nginx; 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;error_page 404 /404.html;location /404.html {}error_page 500 502 503 504 /50x.html;location /50x.html {}} } 3.3.2 重载配置 sudo systemctl restart nginx sudo systemctl status nginx3.3.3 网站访问 浏览器访问http://demo.com即可看到对应页面。 注请确保域名解析到服务器IP已完成。该步骤一般在域名购买供应商那里操作不同供应商操作步骤不同这里不再描述网上直接搜索即可 3.4 HTTPS配置 需要SSL证书参考 上一篇文章申请 3.4.1 获取SSL证书 上一篇获取到文件包含如下该密钥文件可以部署到nginx通过https访问 demo.com.cer 公钥 demo.com.key 私钥3.4.2 移动SSL证书 移动证书文件到指定路径/etc/pki/nginx/ cp demo.com.cer /etc/pki/nginx/ cp demo.com.key /etc/pki/nginx/3.4.3 修改Nginx配置 # For more information on configuration, see: # * Official English Documentation: http://nginx.org/en/docs/ # * Official Russian Documentation: http://nginx.org/ru/docs/user nginx; 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;error_page 404 /404.html;location /404.html {}error_page 500 502 503 504 /50x.html;location /50x.html {}}# Settings for a TLS enabled server. #server {listen 443 ssl http2;listen [::]:443 ssl http2;server_name _;root /usr/share/nginx/html;ssl_certificate /etc/pki/nginx/demo.com.cer;ssl_certificate_key /etc/pki/nginx/demo.com.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.include /etc/nginx/default.d/*.conf;error_page 404 /404.html;location /40x.html {}error_page 500 502 503 504 /50x.html;location /50x.html {}}} 3.4.5 重载配置 sudo systemctl restart nginx sudo systemctl status nginxsudo systemctl restart nginx sudo systemctl status nginx3.4.6 网站访问 浏览器访问https://demo.com即可看到对应页面。 注请确保域名解析到服务器IP已完成。该步骤一般在域名购买供应商那里操作不同供应商操作步骤不同这里不再描述网上直接搜索即可 注接单前端代码的服务器部署私信或者邮件hyh_youxiang163.com 内容包括完整代码的服务器部署流程 服务器域名的购买自己提供也可以 域名映射 服务器的前端代码部署 150RMB 也支持静态页面的书写如落地页、官方网站、个人简历 200RMB起步根据页面和内容多少确定 最后效果 demo.com可访问对应网页 其他 如有问题 欢迎提出 如有疑问 欢迎留言 如有作用 欢迎点赞 如有失效 欢迎留言 个人邮箱hyh_youxiang163.com 2023年10月 可用
http://www.zqtcl.cn/news/289142/

相关文章:

  • 如何修改网站发布时间贵阳网站建设报价
  • 东莞网站推广培训免费云电脑
  • 湖北网站建设详细方案脑叶公司手机版下载
  • 淄博网站制作平台形象怎样建设旅游网站
  • 广州花都网站建设网站改版协议
  • 中国建设协会网站首页工信部网站备案被删除
  • 丹阳网站建设案例dedecms 购物网站
  • 网站上怎么做动画广告视频下载seo黑帽是什么意思
  • 服装网站建设网综合社区网站开发费用
  • 做网站预付款 怎么做账做律师网站的网络公司
  • 购物网站开发模板小程序注册拉新
  • 怎么建立一个网站能够与讯飞云对话罗湖附近公司做网站建设哪家好
  • 唐山网站制作公司北京网站开发优选ls20227
  • php 网站备份代码广州网站设计公司招聘
  • 做ppt的网站兼职上海未来网站建设公司
  • 某某公司网站建设论文wordpress 企业 主题
  • 网站提示域名解析错误怎么办百度网址提交
  • 福建省住房城乡建设部网站车公庙网站建设
  • 长沙网站seo诊断ip138禁止查询该域名
  • 大学生网站设计作业动画ftp发布asp.net网站
  • 网站建设哪家企业好站内优化怎么做
  • 萌宝宝投票网站怎么做网上商城推广方法
  • 网站建设规划书样板社交电商
  • 网站怎么做直播功能吗水库信息化网站建设
  • c语言做网站账号登录系统外资公司代理注册
  • 建站公司塔山双喜做饲料推广哪个网站好
  • php网站后台入口拼多多海外跨境电商入驻流程
  • 0731网站平面logo设计公司
  • 网站设计制作报价图片欣赏wordpress福利
  • 网站上有什么作用自己做网站需要学什么