zBug
首页 工具 隐私协议 作品
更多
关于我们
1 proguard-rules出现unresolved class name 913 阅读 2 onActivityResult过时了,registerForActivityResult使用方法 889 阅读 3 FlexboxLayout+recyclerView实现自动换行 857 阅读 4 android5遇到INSTALL_FAILED_DEXOPT 解决办法 640 阅读 5 Room数据库Schema export Error 575 阅读
默认分类 mysql
android
android深入 Jetpack Compose Android传感器
php
Yii2
windows webrtc
登录
标签搜索
  • android
  • kotlin
  • webrtc
  • kurento
  • nginx
  • flutter
  • adb
  • rsa
  • 微信
  • git
  • mysql
  • Yii2
  • md5
  • 加密
  • dart
  • aes
  • wechat
  • windows
  • 小程序
  • dexopt
侧边栏壁纸
博主昵称
Kornan

  • 累计撰写 72 篇文章
  • 累计收到 3 条评论
  • 首页
  • 栏目
    • 默认分类
    • mysql
    • android
      • android深入
      • Jetpack Compose
      • Android传感器
    • php
      • Yii2
    • windows
    • webrtc
  • 页面
    • 工具
    • 隐私协议
    • 作品
    • 关于我们
搜索到 2 篇与 nginx 的结果
  • nginx自动添加www 2020-07-06
    nginx自动添加www 在 server 里面 加上 rewriteserver { if ( $host != 'www.xxxx.com' ) { rewrite "^/(.*)$" http://www.xxxx.com/$1 permanent; } }
    • 2020年07月06日
    • 168 阅读
    • 0 评论
    • 0 点赞
  • Nginx配置多个域名 2020-04-10
    Nginx配置多个域名 在Nginx配置目录下,创建一个vhost目录。我的配置目录在/etc/nginxmkdir /etc/nginx/vhost创建网站a的配置文件vi /etc/nginx/vhost/vhost_a.confserver配置server { listen 80; server_name www.a.com; root /var/www/html/a; index index.html index.htm index.php; location / { try_files $uri $uri/ /index.php; } error_page 500 502 503 504 /50x.html; location = /50x.html{ root /usr/share/nginx/html; } location ~ .*\.php(\/.*)*$ { fastcgi_split_path_info ^(.+?.php)(/.*)$; fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } } 同样创建网站b的配置文件,server_name和root改成对应的即可;然后编辑nginx.conf文件。vi /etc/nginx/nginx.conf在http里加入以下内容,再重启Nginx.http { ... include /etc/nginx/vhost/vhost_*.conf; }
    • 2020年04月10日
    • 297 阅读
    • 0 评论
    • 0 点赞
博主栏壁纸
博主头像 Kornan

72 文章数
3 评论量
2019 - 2022 © Kornan
已运行 00 天 00 时 00 分 00 秒
RSS MAP