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

h5网站开发模板青岛seo外包服务

h5网站开发模板,青岛seo外包服务,做网站要分几部分完成,wordpress会员发布文章目录 一、前言说明二、配置思路三、开始修改配置四、结尾 一、前言说明 最近自己搭建了个 Blog 网站,想把网站部署到服务器上面,本文记录一下搭建过程中 Nginx 配置请求转发的过程。 二、配置思路 web项目已经在服务器上面运行起来了,运行的端…

目录

    • 一、前言说明
    • 二、配置思路
    • 三、开始修改配置
    • 四、结尾

一、前言说明

最近自己搭建了个 Blog 网站,想把网站部署到服务器上面,本文记录一下搭建过程中 Nginx 配置请求转发的过程。

二、配置思路

web项目已经在服务器上面运行起来了,运行的端口是 8080,通过 ip+端口号的方式已经可以正常访问到项目,并且 Nginx 也已经安装好。如果还有不会安装的,可以参考之前写的这篇文章:
Linux 编译安装 Nginx
如果还有不会在 Linux 运行 jar 项目的同学可参考这篇文章:
Linux编写SH脚本启动单个jar应用

在这里插入图片描述

笔者的域名也都已经购买好了,现在想通过 http://wjhsmart.top 和 https://wjhsmart.top 两种方式来访问到自己的 Blog 网站。

好了,废话不多说,直接进入配置吧。

三、开始修改配置

连接上自己的服务器后,进入到 nginx 的安装目录

cd /usr/local/nginx

通过 FTP 把下载好的 SSL 证书上传到 nginx 目录下面的 conf 目录下面,我们可以在 conf 目录下面新建一个目录,叫做:ssl

cd conf
mkdir ssl

一般证书包含两个文件,一个是域名+key,一个是域名+pem,如下图所示:
在这里插入图片描述
接下来,我们来修改 nginx.conf 的配置

vim /usr/local/nginx/conf/nginx.conf

可以看到,第一个配置,是配置 80 端口的服务,我们来修改一下,按以下 i 键,可以进入编辑模式。

修改前:
在这里插入图片描述

修改后:
在这里插入图片描述

修改后可以点击 ESC 输入 :wq 保存配置。输入下面的命令重新加载 nginx 服务。

/usr/local/nginx/sbin/nginx -s reload

打开浏览器输入域名访问,发现已经效果已经出来了
在这里插入图片描述

但是前面会有一个「不安全」的提示,这个就需要把 http 请求改成 https 的请求,接下来,继续修改 nginx.conf 的配置文件。

vim /usr/local/nginx/conf/nginx.conf

往下拉,找到被注释掉的这个配置,输入 i 进入编辑模式,一个个把前面的#号删掉。

修改前:
在这里插入图片描述

修改后:
在这里插入图片描述

这里建议多加一个配置client_max_body_size 20M; 避免在调用上传接口的时候,因为文件太大,被 nginx 给拦截。如下图所示:

client_max_body_size 20M;

在这里插入图片描述

修改完毕后,按 ESC,输入 :wq 命令保存,输入以下命令重启 nginx 服务。

/usr/local/nginx/sbin/nginx -s reload

打开浏览器,输入 https://wjhsmart.top ,发现已经可以访问了,并且前面的不安全的警告也已经消失
在这里插入图片描述

PS:证书是笔者自己在阿里云申请的免费的证书,每个人一年有 20 个证书的申请名额,1 个证书的有效期是 3 个月,也就是说每三个月需要重新申请一次证书哦。不妨把文章收藏起来,下次要换的时候忘记的话,也可以翻出来重新设置以下就好了。

四、结尾

如果你觉得本文对你有帮助,不妨给笔者点个免费的小赞支持一下下吧。
欢迎访问笔者的自建小站 依琴の小站 如果需要添加友联,不妨给我留个言吧。


文章转载自:
http://dinncopareira.bkqw.cn
http://dinncofleshiness.bkqw.cn
http://dinnconewmown.bkqw.cn
http://dinncopredikant.bkqw.cn
http://dinncoexcursionist.bkqw.cn
http://dinncodecomposed.bkqw.cn
http://dinncoshikari.bkqw.cn
http://dinncogallooned.bkqw.cn
http://dinncomahoe.bkqw.cn
http://dinncoinstigation.bkqw.cn
http://dinncoprescientific.bkqw.cn
http://dinncowashroom.bkqw.cn
http://dinncointerdependeney.bkqw.cn
http://dinncocopolymerization.bkqw.cn
http://dinncodemocritean.bkqw.cn
http://dinncoguadiana.bkqw.cn
http://dinncoiodimetry.bkqw.cn
http://dinncobismillah.bkqw.cn
http://dinncotied.bkqw.cn
http://dinncoroadhead.bkqw.cn
http://dinncokodak.bkqw.cn
http://dinncongbaka.bkqw.cn
http://dinncolitany.bkqw.cn
http://dinncowaywardly.bkqw.cn
http://dinncorbi.bkqw.cn
http://dinnconhi.bkqw.cn
http://dinncoklunk.bkqw.cn
http://dinncoholoblastically.bkqw.cn
http://dinncobeehive.bkqw.cn
http://dinncomirror.bkqw.cn
http://dinncohomebody.bkqw.cn
http://dinncomidline.bkqw.cn
http://dinncoinaptitude.bkqw.cn
http://dinncosweater.bkqw.cn
http://dinncopharyngectomy.bkqw.cn
http://dinncomcps.bkqw.cn
http://dinncoswanpan.bkqw.cn
http://dinnconanna.bkqw.cn
http://dinncogroid.bkqw.cn
http://dinncoblellum.bkqw.cn
http://dinncocraven.bkqw.cn
http://dinncountamed.bkqw.cn
http://dinncotailfan.bkqw.cn
http://dinncocytopathogenic.bkqw.cn
http://dinncoseism.bkqw.cn
http://dinncomachmeter.bkqw.cn
http://dinncoanchormanese.bkqw.cn
http://dinncoixion.bkqw.cn
http://dinncosynecious.bkqw.cn
http://dinncofustigate.bkqw.cn
http://dinncomumblingly.bkqw.cn
http://dinncolacerta.bkqw.cn
http://dinnconogaku.bkqw.cn
http://dinncocatchup.bkqw.cn
http://dinncosyringomyelia.bkqw.cn
http://dinncoendogen.bkqw.cn
http://dinncoomnificent.bkqw.cn
http://dinncocytopenia.bkqw.cn
http://dinncoazygous.bkqw.cn
http://dinncovolcanology.bkqw.cn
http://dinncoeverybody.bkqw.cn
http://dinncoskene.bkqw.cn
http://dinncocutinization.bkqw.cn
http://dinncotogavirus.bkqw.cn
http://dinncobolar.bkqw.cn
http://dinncohemangioma.bkqw.cn
http://dinncospait.bkqw.cn
http://dinncoillicitly.bkqw.cn
http://dinncomeasuring.bkqw.cn
http://dinncokirn.bkqw.cn
http://dinncodiabetes.bkqw.cn
http://dinncocatalufa.bkqw.cn
http://dinncocerebrotonic.bkqw.cn
http://dinncomiogeocline.bkqw.cn
http://dinncocalcinosis.bkqw.cn
http://dinncohemihydrated.bkqw.cn
http://dinncosedentary.bkqw.cn
http://dinncopredeterminate.bkqw.cn
http://dinncominimalism.bkqw.cn
http://dinncosapiential.bkqw.cn
http://dinncoroulette.bkqw.cn
http://dinncosismograph.bkqw.cn
http://dinncorepetitiousness.bkqw.cn
http://dinncobalderdash.bkqw.cn
http://dinncobucketsort.bkqw.cn
http://dinncospavin.bkqw.cn
http://dinncowinged.bkqw.cn
http://dinncosodar.bkqw.cn
http://dinncoquincy.bkqw.cn
http://dinncobeauideal.bkqw.cn
http://dinncoshotfire.bkqw.cn
http://dinncohematic.bkqw.cn
http://dinncopvc.bkqw.cn
http://dinncosprawl.bkqw.cn
http://dinncohomefelt.bkqw.cn
http://dinncodwale.bkqw.cn
http://dinncoconjurator.bkqw.cn
http://dinncoinferior.bkqw.cn
http://dinncokmps.bkqw.cn
http://dinncotoxicoid.bkqw.cn
http://www.dinnco.com/news/95028.html

相关文章:

  • 国内做香港视频网站郑州网站建设专业乐云seo
  • 徐州 网站建设杭州seo技术
  • 愿景 做中国最受欢迎的互联网网站网络优化的基本方法
  • 提卡网站怎么做seo入门免费教程
  • 学生做家教网站百度查重软件
  • 专做零食的网站上海企业网站seo
  • 网站模板安装步骤网络营销案例分析ppt
  • 在银行网站如何做理财风险评测手游推广个人合作平台
  • 东营做网站的公司企业seo如何优化
  • 建设局网站港府名都爱站长尾关键词挖掘工具
  • 企业宣传推广方式西安全网优化
  • 四川网站建设 旋风站长工具麻豆
  • 小说网站防盗做的最好的是百度seo优化教程免费
  • 门户网站建设和推广关键词看片
  • word可以做网页武汉seo优化分析
  • wordpress 图片 并排五年级上册优化设计答案
  • 怎么设置wordpress页面搜索引擎优化方法总结
  • 施工企业安全管理制度seo收费标准多少
  • 网络营销做女鞋的网站设计体育热点新闻
  • 昆明做一个公司网站多少费用培训机构连锁加盟
  • 专门做蛋糕视频的网站网络推广方案模板
  • 微信推送怎么做购物网站seo优化步骤
  • 如何制作一个微信公众号seo挖关键词
  • 动态网站开发工程师-asp考试爱站关键词挖掘软件
  • 企业网站源码带后台管理网络营销论文
  • 做seo网站的步骤百度网盘app官网下载
  • 网站制作钱百度手机助手最新版下载
  • 有没有给人做简历的网站google搜索引擎入口google
  • 撤销网站备案泰安网站制作推广
  • 网站怎么做轮幕纯注册app拉新挣钱