日志文件配置与切割 自定义日志格式 http { server { listen 80 default; server_name _*; access_log logs/default.access.log combined; location / { index index.html; root ...
分类:
其他好文 时间:
2016-09-01 23:05:50
阅读次数:
187
看了很多nginx的配置,好像都忽略了ip直接访问web的问题,不利于SEO优化,所以我们希望可以避免直接用IP访问网站,而是域名访问,具体怎么做呢,看下面。 官方文档中提供的方法: If you do not want to process requests with undefined “Hos ...
分类:
Web程序 时间:
2016-09-01 07:06:30
阅读次数:
189
【解释server_name_】的意思经常在nginx中看到一段以下的server_name匹配。在虚拟主机当中。server_name_;这里指定的不是什么特别的名字,它只是一个无效的域名。从来不会匹配任何真实名字相匹配。如:server{listen8080;server_name_;access_log/data1/logs/nginx/monitor_acce..
分类:
其他好文 时间:
2016-08-30 22:50:44
阅读次数:
372
转载自: http://openwares.net/misc/server_name_indication.html Server Name Indication是用来改善SSL(Secure Socket Layer)和TLS(Transport Layer Security)的一项特性。它允许客 ...
分类:
其他好文 时间:
2016-08-30 00:20:38
阅读次数:
175
获取url地址栏参数多种方法:$_SERVER["SERVER_PORT"]//获取端口$_SERVER['HTTP_HOST']//获取域名或主机地址 如www.sina.com或者music.sina.com $_SERVER['SERVER_NAME']//获取域名或主机地址 注:只是主域名 ...
分类:
Web程序 时间:
2016-08-29 17:55:43
阅读次数:
205
nginx301重定向配置 第一种方法判断域名是否是www.xxx.com如果不是所有域名跳转到www.xxx.com server { server_name www.xxx.com xxx.com; if ($host != 'www.xxx.com' ) { rewrite ^/(.*)$ h ...
分类:
其他好文 时间:
2016-08-19 11:24:02
阅读次数:
181
[Cluster]
name=Cluster
baseurl=file:///media/Cluster
enabled=1
gpgcheck=0
[ClusterStorage]
name=ClusterStorage
baseurl=file:///media/ClusterStorage
enabled=1
gpgcheck=0
[Server]
name=Server
baseurl=file:///media/Server
enabled=1
gpgcheck=0
[VT]
name=VT
b..
分类:
其他好文 时间:
2016-08-19 06:23:50
阅读次数:
170
1、配置本地yum源#vi/etc/yum.repos.d/rhel-source.repo[Server]name=rhel6baseurl=file:///misc/cd/enable=1gpgcheck=1gpgkey=file:///mnt/cdrom/RPM-GPG-KEY-redhat-release2、安装vsftpd#yuminstallvsftpd3、配置vsftpd编辑配置文件#vi/etc/vsftpd/vsftpd.confanonymous_ena..
分类:
其他好文 时间:
2016-08-18 06:32:43
阅读次数:
150
1、打开“file new model” 依次选中图上内容 点击确定 2、database -》connect -》选择connection profile -》点击configer-》选择新增-》输入名字,server name 为IP,database name 为数据库名,选择文件保存地址-》 ...
分类:
数据库 时间:
2016-08-17 15:28:10
阅读次数:
302
看代码符号$?搞不清楚是什么? 看代码. $share = Get-WmiObject -Class Win32_Share -ComputerName $Server.name -Credential $credentials -Filter "Description='Default share... ...
分类:
其他好文 时间:
2016-08-15 17:10:37
阅读次数:
142