zBug
首页 工具 隐私协议 App Privacy Policy
更多
作品 关于我们
1 android5遇到INSTALL_FAILED_DEXOPT 解决办法 1,709 阅读 2 设置max_connections无效 1,495 阅读 3 FlexboxLayout+recyclerView实现自动换行 1,467 阅读 4 Nginx配置多个域名 1,272 阅读 5 Android P http网络请求失败 1,243 阅读
默认分类 mysql
android
android深入 Jetpack Compose Android传感器
php
Yii2
windows webrtc
登录
标签搜索
  • android
  • kotlin
  • webrtc
  • kurento
  • mysql
  • adb
  • nginx
  • flutter
  • rsa
  • 微信
  • git
  • Yii2
  • md5
  • 加密
  • dart
  • aes
  • wechat
  • windows
  • 小程序
  • dexopt
侧边栏壁纸
博主昵称
Typecho

  • 累计撰写 80 篇文章
  • 累计收到 24 条评论
  • 首页
  • 栏目
    • 默认分类
    • mysql
    • android
      • android深入
      • Jetpack Compose
      • Android传感器
    • php
      • Yii2
    • windows
    • webrtc
  • 页面
    • 工具
    • 隐私协议
    • App Privacy Policy
    • 作品
    • 关于我们
搜索到 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日
    • 252 阅读
    • 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日
    • 1,272 阅读
    • 4 评论
    • 0 点赞
博主栏壁纸
博主头像 Typecho

80 文章数
24 评论量
2019 - 2020 © Reach - Joe
RSS MAP