nginx 配置 解决 vue history模式下空白 ,以及SSL证书安装,前端面试复习

# 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;
#    }
#}



# HTTPS server   //自定义HTTPS配置
    server { 
        listen 443 ssl; 
        server_name www.55776.club;   #你的域名
        root html; #你的网站根目录
        index index.php index.html index.htm; #网站默认访问文件
        
        ssl_certificate   ../cert/55.crt; 
        ssl_certificate_key  ../cert/55.key;
        ssl_session_timeout 5m;
        ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        ssl_prefer_server_ciphers on;
        
		location /{
				root   html;
				try_files $uri $uri/ /baiyi/$query_string;
		}

        location ~ \.php(.\*)$  { #HP必须的配置,否则浏览器访问会直接下载php源码文件
           fastcgi_pass   127.0.0.1:9000;
           fastcgi_index  index.php;
           fastcgi_split_path_info  ^((?U).+\.php)(/?.+)$;
           fastcgi_param  SCRIPT\_FILENAME  $document_root$fastcgi_script_name;
           fastcgi_param  PATH\_INFO  $fastcgi_path_info;
           fastcgi_param  PATH\_TRANSLATED  $document_root$fastcgi_path_info;
           include        fastcgi_params;
		}
}
    
	

server {
    listen 80 ssl;
    server_name www.55776.club;

    #charset koi8-r;
    #access_log  logs/host.access.log  main;
	
	root html/baiyi; #你的网站根目录
	index index.php index.html index.htm; #网站默认访问文件
	
    location / {
        root   html;
        #index  index.html index.htm;
		try_files $uri $uri/ /baiyi/$query_string;
    }
    #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;
    #}
	
	
	ssl_certificate   ../cert/55.crt;
	ssl_certificate_key  ../cert/55.key;
	ssl_session_timeout 5m;
	ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
	ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
	ssl_prefer_server_ciphers on;
	
		
	location ~ \.php(.\*)$  { #HP必须的配置,否则浏览器访问会直接下载php源码文件
	   fastcgi_pass   127.0.0.1:9000;
	   fastcgi_index  index.php;
	   fastcgi_split_path_info  ^((?U).+\.php)(/?.+)$;
	   fastcgi_param  SCRIPT\_FILENAME  $document_root$fastcgi_script_name;
	   fastcgi_param  PATH\_INFO  $fastcgi_path_info;
	   fastcgi_param  PATH\_TRANSLATED  $document_root$fastcgi_path_info;
	   include        fastcgi_params;
	}
	
}

最后

中年危机是真实存在的,即便有技术傍身,还是难免对自己的生存能力产生质疑和焦虑,这些年职业发展,一直在寻求消除焦虑的依靠。

  • 技术要深入到什么程度?

  • 做久了技术总要转型管理?

  • 我能做什么,我想做什么?

  • 一技之长,就是深耕你的专业技能,你的专业技术。(重点)

  • 独立做事,当你的一技之长达到一定深度的时候,需要开始思考如何独立做事。(创业)

  • 拥有事业,选择一份使命,带领团队实现它。(创业)

一技之长分五个层次

  • 栈内技术 - 是指你的前端专业领域技术

  • 栈外技术 - 是指栈内技术的上下游,领域外的相关专业知识

  • 工程经验 - 是建设专业技术体系的“解决方案”

  • 带人做事 - 是对团队协作能力的要求

  • 业界发声 - 工作经验总结对外分享,与他人交流

永远不要放弃一技之长,它值得你长期信仰持有

主要内容包括html,css,html5,css3,JavaScript,正则表达式,函数,BOM,DOM,jQuery,AJAX,vue 等等。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值