随笔 - 612, 文章 - 0, 评论 - 31, 阅读 - 74万

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

随笔分类 -  系统维护 - Apache

摘要:要点有两个:1. 要使用全路径,不要使用映射的网络驱动器。2. 路径之间用斜杠/,不要用反斜杠\。Alias /weili.mobile "//vmware-host/Shared Folders/X/dev/weili.mobile" Order allow,deny Allow fr... 阅读全文

posted @ 2015-01-07 11:42 eastson 阅读(203) 评论(0) 推荐(0) 编辑

摘要:原文地址:http://blog.hsdn.net/1266.html我的公司使用AD進行使用者驗證,因此在使用者操作的便利性考量前提下.如何讓使用者不需要重覆輸入帳號與密碼,而直接抓取使用者已經登入AD的帳號資訊,已經變成系統開發必須要考量的項目之一 (至少我自己是這樣認為啦 @@).NET整合A... 阅读全文

posted @ 2014-05-11 19:10 eastson 阅读(255) 评论(0) 推荐(0) 编辑

摘要:Drupal有时会显示白屏,或者500内部错误,这多半是由于PHP脚本什么地方有问题造成的。这个时候,可以先看看php.log里面有没有提示:[10-Oct-2013 15:55:26 Asia/Shanghai] PHP Fatal error: Call to undefined function xxxxxx() in C:\Program Files\Zend\Apache2\htdocs\drupal\index.php on line 24也可以将display_errors选项开启,使php将所有的信息都显示出来:error_reporting(E_ALL);ini_set(&# 阅读全文

posted @ 2013-10-10 16:03 eastson 阅读(440) 评论(0) 推荐(0) 编辑

摘要:ZendServer根据开发环境和产品环境的不同情况,对php.ini中的一些选项做了建议设置,列表如下:;;;;;;;;;;;;;;;;;;;; Quick Reference ;;;;;;;;;;;;;;;;;;;;; The following are all the settings which are different in either the production; or development versions of the INIs with respect to PHP's default behavior.; Please see the actual sett 阅读全文

posted @ 2013-10-10 15:38 eastson 阅读(421) 评论(0) 推荐(0) 编辑

摘要:文章来源:http://www.cnblogs.com/ghj1976/archive/2010/07/19/1780844.html在 drupal 跟目录下有个 .htaccess 文件, 这个文件中就有URL地址重写的配置信息,配置信息如下:# Various rewrite rules. RewriteEngine on # If your site can be accessed both with and without the 'www.' prefix, you # can use one of the following settings to redirec 阅读全文

posted @ 2013-10-09 16:10 eastson 阅读(256) 评论(0) 推荐(0) 编辑

摘要:My solution to getting Clean URL working with my multisite setup drupal 4.7I added Alias to my httpd.conf apache file: # Alias for all php drupal sites Alias /abc /var/www/html/drupal Alias /def /var/www/html/drupal Alias /xyz /var/www/html/drupalMy setup has 4 sites /drupal, /abc, /def,... 阅读全文

posted @ 2013-10-05 16:47 eastson 阅读(285) 评论(0) 推荐(0) 编辑

摘要:首先,您的拥有一个有泛域名解析的顶级域名,例如:domain.com其次,在httpd.conf中打开mod_rewrite之后,在httpd.conf的最后,添加以下内容:RewriteEngine onRewriteMap lowercase int:tolowerRewriteMap vhost txt:/usr/local/etc/apache/vhost.mapRewriteCond ${lowercase:%{SERVER_NAME}} ^(. )$RewriteCond ${vhost:%1} ^(/.*)$RewriteRule ^/(.*)$ %1/$1其中的/usr/loc 阅读全文

posted @ 2012-10-22 14:46 eastson 阅读(608) 评论(0) 推荐(0) 编辑

摘要:<IfModulemod_rewrite.c>RewriteEngineOn#商品详情RewriteRule^goods/([0-9]+)/?$index.php?app=goods&id=$1[L]RewriteRule^goods/([0-9]+)/([^/]+)/?$index.php?app=goods&id=$1&act=$2[L]RewriteRule^goods/([0-9]+)/([^/]+)/page_([^/]+)/?$index.php?app=goods&id=$1&act=$2&page=$3[L]Rewri 阅读全文

posted @ 2012-10-22 14:44 eastson 阅读(320) 评论(0) 推荐(0) 编辑

摘要:看UCHome和ECShop源码的时候,发现经常会用到$_SERVER['HTTP_REFERER']的值。HTTPREFERER是Header的一部分,当浏览器向WEB服务器发送请求的时候,一般会带上HTTPREFERER,告诉服务器我是从哪个页面链接过来的,服务器籍此可以获得一些信息用于处理。比如从我主页上链接到一个朋友那里,他的服务器就能够从HTTPREFERER中统计出每天有多少用户点击我主页上的链接访问他的网站。下面自己写了一个例子,来说明HTTP_REFERER的各种变化。请将下面的代码保存到一个PHP文件中,文件名为referer.php:<a href=& 阅读全文

posted @ 2012-09-25 15:14 eastson 阅读(1846) 评论(0) 推荐(0) 编辑

摘要:CentOS默认的iptables规则除了允许SSH(端口22)连进来以外,其它都被禁止。# cat /etc/sysconfig/iptables# Firewall configuration written by system-config-firewall# Manual customization of this file is not recommended.*filter:INPUT ACCEPT [0:0]:FORWARD ACCEPT [0:0]:OUTPUT ACCEPT [0:0]-A INPUT -m state --state ESTABLISHED,RELATED 阅读全文

posted @ 2012-09-17 11:25 eastson 阅读(1306) 评论(0) 推荐(0) 编辑

摘要:SELinux默认运作在"Enforcing"模式。$ sestatus -vSELinux status: enabledSELinuxfs mount: /selinuxCurrent mode: enforcingMode from config file: enforcingPolicy version: 24Policy from config file: targeted"Enforcing"模式下Zend Server ... 阅读全文

posted @ 2012-09-17 10:57 eastson 阅读(1224) 评论(0) 推荐(0) 编辑

摘要:因为需要做一些PHP的开发,这时候通常会选择Zend Server CE和Zend Eclipse PDT。设置Apache HTTPDhttpd默认是和CentOS一起安装的。其配置目录是/etc/httpd,网站目录/var/www。我们可以将它配置成开机启动。# chkconfig httpd on# service httpd restart安装Zend Server CE1. 配置Zend软件源。新建文件/etc/yum.repos.d/zend.repo,内容如下:[Zend]name=Zend Serverbaseurl=http://repos.zend.com/zend-se 阅读全文

posted @ 2012-09-15 08:42 eastson 阅读(761) 评论(0) 推荐(0) 编辑

摘要:有关于XMLHttpRequest的详细信息可以参阅XMLHttp参考手册。1.创建XMLHttpRequest对象所有现代浏览器(IE7+、Firefox、Chrome、Safari以及Opera)都内建了XMLHttpRequest对象,老版本的InternetExplorer(IE5和IE6)使用ActiveX对象:function createXMLHttpRequest(){ var xmlhttp=null; if (window.XMLHttpRequest) { // code for all new browsers xm... 阅读全文

posted @ 2012-07-28 07:56 eastson 阅读(231) 评论(0) 推荐(0) 编辑

摘要:Status-Code="100":Continue|"101":SwitchingProtocols|"200":OK|"201":Created|"202":Accepted|"203":Non-AuthoritativeInformation|"204":NoContent|"205":ResetContent|"206":PartialContent|"300":MultipleChoic 阅读全文

posted @ 2012-07-28 07:50 eastson 阅读(199) 评论(0) 推荐(0) 编辑

摘要:安装Httpd1. 安装httpd。先检查一下httpd是否已经有安装:[root@centos-server ~]$ rpm -qa | grep httpd如果httpd没有安装,可以使用下面l命令进行安装:[root@centos-server ~]$ yum install httpd[root@centos-server ~]$ chkconfig httpd on[root@centos-server ~]$ service httpd start2. 测试httpd。httpd的文档根目录位于/var/www/html。我们在该目录下创建一个index.html文件,测试是否可以 阅读全文

posted @ 2012-07-18 10:43 eastson 阅读(1118) 评论(0) 推荐(0) 编辑

摘要:Starting httpd: httpd: apr_sockaddr_info_get() failed for centos-minimal.xxxx.comapache启动时提示apr_sockaddr_info_get()错误,是因为/etc/hosts和hostname不一致造成的。使用hostname命令查到服务器的主机名称:#> hostnamecentos-minimal.xxxx.com打开/etc/hosts文件,原先的内容应该是这样的:127.0.0.1 localhost localhost.localdomain localhost4 localhost4.lo 阅读全文

posted @ 2012-07-03 16:10 eastson 阅读(525) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示