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

wordpress 分类标签筛选搜索引擎优化涉及的内容

wordpress 分类标签筛选,搜索引擎优化涉及的内容,兰州建网站,网站建设 商城最近项目中用到关于Nginx前后端分离部署spring boot和vue工程以及反向代理的配置,总结了一下说明: 1、后端是spring boot工程,端口8000,通过 jar命令启动 nohup java -jar xxx-jsonflow-biz.jar > /usr/local/nohup.out 2>…

最近项目中用到关于Nginx前后端分离部署spring boot和vue工程以及反向代理的配置,总结了一下说明:

1、后端是spring boot工程,端口8000,通过 jar命令启动

nohup java -jar xxx-jsonflow-biz.jar > /usr/local/nohup.out 2>&1 &

2、后台前端是vue工程,打包成dist文件夹,端口是13000,nginx配置如下:

    server {listen 13000;server_name localhost;gzip on;gzip_min_length 1k;gzip_comp_level 4;gzip_proxied any;gzip_types text/plain text/xml text/css;gzip_vary on;gzip_disable "MSIE [1-6]\.(?!.*SV1)";root /usr/local/nginx/html/dist;location ~* ^/jsonflow/ {#proxy_pass http://127.0.0.1:8000;proxy_connect_timeout 15s;proxy_send_timeout 15s;proxy_read_timeout 15s;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_set_header X-Forwarded-Proto http;#proxy_method GET POST PUT DELETE;add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Credentials 'true'; add_header Access-Control-Allow-Methods 'GET,PUT,POST,OPTIONS'; add_header Access-Control-Allow-Headers 'user-id,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';if ($request_method = 'OPTIONS') {return 204;}proxy_pass http://127.0.0.1:8000;}if ($request_uri ~ "/actuator"){return 403;}}

3、h5移动端是2个应用,配了2个server,分别对应h5文件夹下的2个目录,nginx配置如下:

    server {listen       9001;server_name  localhost;#charset koi8-r;#access_log  logs/host.access.log  main;error_page 403 =200 /40x.html;location /40x.html {root html;}location / {root   html/h5/yiyuan;index  index.html ;}}server {listen       9002;server_name  localhost;#charset koi8-r;#access_log  logs/host.access.log  main;error_page 403 =200 /40x.html;location /40x.html {root html;}location / {root   html/h5/yaodian;index  index.html ;}}

4、完整的nginx.conf配置文件如下:


#user  nobody;
worker_processes  1;#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;#pid        logs/nginx.pid;events {worker_connections  1024;
}http {map $http_upgrade $connection_upgrade {default upgrade;''      close;}include       mime.types;default_type  application/octet-stream;#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  logs/access.log  main;sendfile        on;#tcp_nopush     on;#keepalive_timeout  0;keepalive_timeout  65;server {listen       9001;server_name  localhost;#charset koi8-r;#access_log  logs/host.access.log  main;error_page 403 =200 /40x.html;location /40x.html {root html;}location / {root   html/h5/yiyuan;index  index.html ;}}server {listen       9002;server_name  localhost;#charset koi8-r;#access_log  logs/host.access.log  main;error_page 403 =200 /40x.html;location /40x.html {root html;}location / {root   html/h5/yaodian;index  index.html ;}}server {listen 13000;server_name localhost;gzip on;gzip_min_length 1k;gzip_comp_level 4;gzip_proxied any;gzip_types text/plain text/xml text/css;gzip_vary on;gzip_disable "MSIE [1-6]\.(?!.*SV1)";root /usr/local/nginx/html/dist;location ~* ^/(jsonflow/ws) {proxy_pass http://127.0.0.1:8000;proxy_http_version 1.1;proxy_set_header Upgrade $http_upgrade;proxy_set_header Connection "upgrade";}location ~* ^/jsonflow/ {#proxy_pass http://127.0.0.1:8000;proxy_connect_timeout 15s;proxy_send_timeout 15s;proxy_read_timeout 15s;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_set_header X-Forwarded-Proto http;#proxy_method GET POST PUT DELETE;add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Credentials 'true'; add_header Access-Control-Allow-Methods 'GET,PUT,POST,OPTIONS'; add_header Access-Control-Allow-Headers 'user-id,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';if ($request_method = 'OPTIONS') {return 204;}proxy_pass http://127.0.0.1:8000;}location ~* ^/(gen) {proxy_pass http://127.0.0.1:5003;proxy_connect_timeout 15s;proxy_send_timeout 15s;proxy_read_timeout 15s;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_set_header X-Forwarded-Proto http;}if ($request_uri ~ "/actuator"){return 403;}}
}

5、nginx目录如下图:

6、番外,关于https证书的配置:

	server {listen 443 ssl;server_name localhost;gzip on;gzip_static on;gzip_min_length 1k;gzip_comp_level 4;gzip_proxied any;gzip_types text/plain text/xml text/css;gzip_vary on;gzip_disable "MSIE [1-6]\.(?!.*SV1)";ssl_protocols GMTLSv1.1;ssl_certificate crt/gm/SS.pem;ssl_certificate_key crt/gm/SS.key.pem;ssl_certificate crt/gm/SE.pem;ssl_certificate_key crt/gm/SE.key.pem;root /usr/local/dist;location ~* ^/(ewaycloud) {proxy_pass http://127.0.0.1:8000;proxy_connect_timeout 60s;proxy_send_timeout 60s;proxy_read_timeout 60s;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_set_header X-Forwarded-Proto http;}}

http://www.yayakq.cn/news/435275/

相关文章:

  • 力软敏捷开发框架可以做网站后台电子商务网站的规划与建设论文
  • 主营网站开发网站建设仟首先金手指15
  • 只做早餐的网站wordpress 新添加页面模板
  • 推荐做网站的话术如何用flash做网站
  • 兰州网站seo哪家公司好wordpress传输失败
  • 网站建设|电子商务服务网站
  • 满城做网站电话网站制作验收单
  • 网站优化外链怎么做天津网站建设设计
  • 创建公司网站需要准备哪些素材h5网站建设需要哪些资料
  • 茂名h5网站建设移动网络服务商
  • 建立网站公司有哪些wordpress主页视频
  • 在家有电脑怎么做网站大型门户网站多少钱
  • 可视化自助建站陕西省建设厅证件查询
  • 宁陵网站建设网站开发目的
  • 用什么软件可以做网站动态wordpress qq
  • 深圳网站建设软件定制公司微平台推广多少钱
  • 云南网站建设首选公司济南移动网站制作
  • 福州火车站最新消息网站收录怎么设置
  • 做淘宝一样的网站有哪些短网址生成怎么使用
  • 东莞是什么网站建设新手学做网站
  • 蔚县住房和城乡规划建设局网站哪些网站做任务可以赚钱的
  • 婴幼儿用品网站开发意义优秀网站
  • 网站运营技巧济南建筑公司实力排名
  • 网站用什么技术做的网站后台html编辑器
  • 网站后台的关键词网线制作线序
  • 外贸怎么上国外的网站网站怎么做认证吗
  • 网站开发存在的风险张家港企业做网站
  • 网站支付体现功能怎么做做网站的步骤是什么
  • 网站建设整体策划wordpress本发安装
  • 宁德蕉城住房和城乡建设部网站万能素材网站下载