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

龙华网站建设哪家公司好百度官网推广平台电话

龙华网站建设哪家公司好,百度官网推广平台电话,wordpress中文企业主题,网页游戏网站模压板摘要#xff1a;近来接手了一个二次开发的前后端分离模式的项目#xff0c;其中在前端项目的部署上需要让2个前端项目都部署到一个IP地址和端口下#xff0c;那么我们这里就要用到Nginx了#xff0c;接下来我们看看如何在一个Nginx下部署2个前端项目的编译打包2个前端项目执…摘要近来接手了一个二次开发的前后端分离模式的项目其中在前端项目的部署上需要让2个前端项目都部署到一个IP地址和端口下那么我们这里就要用到Nginx了接下来我们看看如何在一个Nginx下部署2个前端项目的编译打包2个前端项目执行如下命令执行对前端工程的打包以生成静态文件如下npm run build把打包生成的静态文件上传到Linux服务器的指定目录我这里是/usr/local/lawyer_wsla/frontend/dist同上把另一个前端工程也执行打包命令以生成静态文件如下把打包生成的静态文件上传到Linux服务器的指定目录我这里是/usr/local/lawyer_wsla/frontend/zjwsla配置Nginx.conf文件#user nobody; user root; 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 /usr/local/lawyer_wsla/frontend/dist;try_files $uri $uri/ router;index index.html index.htm;}location /zjwsla {alias /usr/local/lawyer_wsla/frontend/zjwsla;try_files $uri $uri/ /zjwsla/index.html;index index.html index.htm;}location router {rewrite ^.*$ /index.html last;}#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 Apaches document root# concurs with nginxs 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;# }#}}重启Nginx服务cd /usr/local/nginx/sbin./nginx -s reload访问项目遇到的问题暂无
http://www.yutouwan.com/news/194064/

相关文章:

  • 青州建网站青岛营销型网站推广
  • 手机网站封装用户体验怎么做网站文章伪原创
  • 个人网站建设考察报告房屋在线设计工具
  • 网站seo优化是什么意思沈阳网站建设本地化技术服务
  • 此网站可能有不提供花架子网站 我
  • 做网站需注重的几点wordpress 更多文章
  • 济南网站开发企业济南网站建设免费
  • 微信公众号php网站开发长春网站建设公司十佳
  • 网站源码哪个好电子商务网站建设过程
  • 坪地网站建设价位南宁网站建设公司业绩
  • 南昌网站开发公司wordpress 企业插件
  • 用php做京东网站页面西安的网站建设公司
  • 家庭网站建设wordpress媒体库 不显示图片
  • 有哪些做西点及烘焙的网站开店做网站有什么好处
  • 怎么做才能发布网站游戏工作室多ip搭建
  • 平顶山营销型网站建设系统开发环境有哪些
  • 用织梦怎么修改网站首页商品顺序折叠wordpress
  • asp网站后台验证码错误推百拉
  • 找网站公司企业备案怎么找专业的营销团队
  • 杭州做微信网站软件公司郑州网站推广怎么做
  • 全屋设计安徽百度关键词优化
  • 手机p2p网站建设移动互联网开发课程设计选题
  • 企业营销型网站费用网站建设服务费一年多少钱
  • 网站开发技术入股协议网络培训机构排名
  • 东莞网站建设的公司威联通怎么建设网站
  • 虚拟电脑可以做网站吗上海公司推荐
  • dw如何在网站做弹窗济南网站网站建设
  • 网站打不开404网站宝 西部数码网站管理助手
  • 深圳网站建设啊在手机上创建网站吗
  • 权重域名做网站有用么郑州一核酸点推vip服务 年费320元