今天开发公司官网:http://www.zstime.com/,遇到一个问题,如何在nginx下设置pathInfo以及如何隐藏index.php
这里分别来讲解一下:
一、隐藏index.php
隐藏index.php需要修改nginx的配置文件,如果你是使用vhost的,需要修改如conf/vhost/你的文件名.conf
文件,整个文件如下
server {...
分类:
Web程序 时间:
2014-09-16 23:46:31
阅读次数:
305
在apache 的安装路径中找到 \conf\httpd.conf文件在 LoadModule最后面添加如下代码:PHPIniDir "D:\PHP"LoadModule php5_module D:\PHP\php5apache2_2.dllAddHandler application/x-htt...
分类:
Web程序 时间:
2014-09-16 23:32:41
阅读次数:
260
以utf-8为例1.IDE默认编码为utf-82.在中写入;3.在Apache的配置文件httpd.conf中添加“AddLanguage”或“AddCharset”的行,在这些行最前面增加一行:AddDefaultCharset utf-8 (刚安装好的Apache2.2中是没有“AddLang....
分类:
Web程序 时间:
2014-09-16 21:51:41
阅读次数:
181
使用命令:
cat /etc/resolv.conf
或者
less /etc/resolv.conf
即可。
分类:
系统相关 时间:
2014-09-16 21:50:21
阅读次数:
256
【解决】Vsftp匿名上传问题本文前提需要关闭selinux编辑Vsftp的配置文件vsftp.conf。有关匿名的相关选项全部开启,如下图:anonymous_enable=YESlocal_enable=YESwrite_enable=YESlocal_umask=022anon_upload_enable=YESanon_mkdir_write_enable=YES以上设置,基本上大家都知道..
分类:
其他好文 时间:
2014-09-16 19:11:22
阅读次数:
303
今天在做测试时,用到了nohup命令遇到一下问题
[concert@mhamanager ~]$ nohup /usr/bin/masterha_manager --conf=/etc/appl.cnf &
[1] 12501
[concert@mhamanager ~]$ nohup: appending output to `nohup.out'
使用该命令后单机关闭按钮关闭终端,再次...
分类:
其他好文 时间:
2014-09-16 18:59:21
阅读次数:
259
报zookeeper exception not foundI fixed this by editing the file "/usr/local/hbase-0.94.1/conf/hbase-env.sh" and adding the element "export HBASE_CLASSP...
分类:
其他好文 时间:
2014-09-16 18:47:20
阅读次数:
144
# # Apache服务器主配置文件.? 包括服务器指令的目录设置. # 详见 <URL:http://www.apache.org/docs/> # # 请在理解用途的基础上阅读各指令。 # # 再读取此文档后,服务器将继续搜索运行 # E:/Program Files/Apa...
分类:
其他好文 时间:
2014-09-16 17:33:31
阅读次数:
342
一、安装
yum install bind-utils.x86_64
yum install bind
二、配置
vim /etc/named.conf
编辑文件内容为:
############################################################
options {
listen-on port 53 { 127.0.0...
分类:
其他好文 时间:
2014-09-16 17:25:50
阅读次数:
328
通过ServerName端,来区分不同的域名:步骤:1. 开发新的站点2.在httpd-vhost.conf文件中添加配置:(此时配置和以前不同) DocumentRoot "E:/the_third_grade/Apache_workspace/text03" #这里指定域名 S...
分类:
其他好文 时间:
2014-09-16 14:04:10
阅读次数:
132