首页
工具
隐私协议
作品
更多
关于我们
Search
1
FlexboxLayout+recyclerView实现自动换行
1,037 阅读
2
proguard-rules出现unresolved class name
975 阅读
3
onActivityResult过时了,registerForActivityResult使用方法
965 阅读
4
android5遇到INSTALL_FAILED_DEXOPT 解决办法
690 阅读
5
Room数据库Schema export Error
654 阅读
默认分类
mysql
android
android深入
Jetpack Compose
Android传感器
php
Yii2
windows
webrtc
登录
Search
标签搜索
android
kotlin
webrtc
kurento
mysql
nginx
flutter
adb
rsa
微信
git
Yii2
md5
加密
dart
aes
wechat
windows
小程序
dexopt
Kornan
累计撰写
76
篇文章
累计收到
3
条评论
首页
栏目
默认分类
mysql
android
android深入
Jetpack Compose
Android传感器
php
Yii2
windows
webrtc
页面
工具
隐私协议
作品
关于我们
搜索到
2
篇与
nginx
的结果
2020-07-06
nginx自动添加www
在 server 里面 加上 rewriteserver { if ( $host != 'www.xxxx.com' ) { rewrite "^/(.*)$" http://www.xxxx.com/$1 permanent; } }
2020年07月06日
169 阅读
0 评论
0 点赞
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日
322 阅读
0 评论
0 点赞