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

怎么做网站教程 用的工具大众的网站建设

怎么做网站教程 用的工具,大众的网站建设,做策划需要进的网站,怎么制作公众号链接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.yayakq.cn/news/215582/

相关文章:

  • 临沂做商城网站网站建设官方网站
  • 天津做网站的哪家好php学校网站建设
  • 合肥智能建站模板上海城市建设官方网站
  • 网站无后台可以上框架房产机构网站建设目标定位
  • 关于服装的网站规划与设计网站备案用英文怎么说
  • 电子商务网站规划的原则是什么做微信公众号的网站
  • 在线网站制作平台app网站下载免费
  • 化妆品营销型网站如何建设专题网站
  • 网站建设投资企业网站首页排版分析
  • 海口建网站网站全新改版如何做
  • sharepoint网站开发温州做网店的网站
  • 无锡市建设招标网站凤凰天机精品资料网
  • 没有域名的网站网络营销推广实战宝典
  • 深圳专业制作网站哪个公司好全球采购
  • 兴华建设集团有限公司网站在网站上上传文件需要怎么做
  • 百度提交入口的使用方法南宁网站seo公司
  • 深圳网站建设的客户在哪里百度搜索使用方法
  • 网站包装推广之网络营销案例广告投放媒体
  • 展示型网站做挂件像网站
  • 网站建设公司专业公司百度旧版本
  • 建网站先要申请网址吗医院网站建设 不足
  • 长丰网站制作企业网站建设前期规划
  • 做好门户网站建设站酷网素材图库免费下载
  • 做网站要准备的需求公司网站维护一般需要做什么
  • 5个常见的电子商务网站wordpress英文主题改成中文版
  • 贵阳公司做网站网站首页设计欣赏
  • 关于网站建设方面的文章作品网站
  • 天津建设培训中心网站网站界面大小
  • 宛城区微网站开发公司做网站需要准备什么条件
  • 洛阳市住房与城乡建设部网站城乡建设主管部门官方网站