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

济南网站建设鲁icp备广告策划案优秀案例

济南网站建设鲁icp备,广告策划案优秀案例,北京网站推广营销策划,快云助手网站建设视频1.nginx下载地址:nginx: download nginx详解:Nginx配置终极版指南(全网最详细)_nginx_脚本之家 2.vue 项目打包生成dist文件里面的文件复制到下载好的nginx的html目录下 3.配置nginx配置文件 打包生成的dist前端包都是属于生产环…

1.nginx下载地址:nginx: download

    nginx详解:Nginx配置终极版指南(全网最详细)_nginx_脚本之家

2.vue 项目打包生成dist文件里面的文件复制到下载好的nginx的html目录下

3.配置nginx配置文件

打包生成的dist前端包都是属于生产环境的,打包前服务加了/api/后缀 ,axios.defaults.baseURL = process.env.NODE_ENV === 'development' ? '/api' : window.location.protocol+'//'+window.location.host + '/api';


#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 {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;#gzip  on;server {listen       80;server_name  localhost;#charset koi8-r;#access_log  logs/host.access.log  main;location / {root   html;index  index.html index.htm;}location /api/ {proxy_pass http://10.7.37.66:8443/;}#error_page  404              /404.html;# redirect server error pages to the static page /50x.html#error_page   500 502 503 504  /50x.html;location = /50x.html {root   html;}# proxy the PHP scripts to Apache listening on 127.0.0.1:80##location ~ \.php$ {#    proxy_pass   http://127.0.0.1;#}# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000##location ~ \.php$ {#    root           html;#    fastcgi_pass   127.0.0.1:9000;#    fastcgi_index  index.php;#    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;#    include        fastcgi_params;#}# deny access to .htaccess files, if Apache's document root# concurs with nginx's one##location ~ /\.ht {#    deny  all;#}}# another virtual host using mix of IP-, name-, and port-based configuration##server {#    listen       8000;#    listen       somename:8080;#    server_name  somename  alias  another.alias;#    location / {#        root   html;#        index  index.html index.htm;#    }#}# HTTPS server##server {#    listen       443 ssl;#    server_name  localhost;#    ssl_certificate      cert.pem;#    ssl_certificate_key  cert.key;#    ssl_session_cache    shared:SSL:1m;#    ssl_session_timeout  5m;#    ssl_ciphers  HIGH:!aNULL:!MD5;#    ssl_prefer_server_ciphers  on;#    location / {#        root   html;#        index  index.html index.htm;#    }#}}

4.启动nginx

5.访问localhost:80 进行登录项目,登录成功说明本地配置代理成功

http://www.shuangfujiaoyu.com/news/33847.html

相关文章:

  • 南昌网站建设方案外包网页制作在线生成
  • 生活家装饰seo网站优化是什么
  • 刷qq会员自己做网站sem代运营费用
  • 京东网站制作优点中国万网域名注册
  • 郑州网站建设喝彩百度seo优化招聘
  • 淘宝联盟的网站怎么自己做正规的培训学校
  • 网站建设及政务公开工作网站统计数据分析
  • 呼和浩特市做网站公司好的优化营商环境的金句
  • 福州专业网站建设推广费用优化大师
  • 网站搭建报价单yandex搜索入口
  • 湖北 网站 备案 时间广告软文外链平台
  • 哪个网站做童装批发巩义网络推广公司
  • 广州新型病毒最新情况seo课程培训视频
  • 写网站建设的软文中囯联通腾迅
  • 可靠的网站建设图如何进行网站性能优化
  • 浙江省住房城乡建设厅网站首页商城小程序
  • 云南网站建设费用网站关键词优化培训
  • wordpress排版问题抖音seo排名软件
  • 企业网站建设步骤网站优化排名优化
  • 收款后自动发货的网站是怎么做的seo是什么意思seo是什么职位
  • 东莞网站制作网站设计网络项目发布网
  • 福州seo公司网站网站seo关键词优化
  • 台州网站设计飞速俄国搜索引擎yandex入口
  • iis 网站访问权限设置网络稿件投稿平台
  • 网站360全景图怎么做百度手机版下载
  • 潍坊个人做网站怎样做网络推广营销
  • wordpress为何登苏州关键词优化排名推广
  • html5手机网站分辩率搜索引擎培训班
  • 网站移动端建设今日最新的新闻
  • 万网空间最多放几个网站企业文化的重要性和意义