nginx + php + https 配置用例
	
    
    
	# 
启动服务的用户和组
user
 lighttpd lighttpd;
# 
开多少进程
worker_processes
 2;
# 
错误日志
error_log
 /data/log/nginx/nginx_error/nginx_error.log crit;
# 
pid
pid
        /var/run/nginx.pid;
#
Specifies 
the value for maximum file descriptors that can be opened by this 
process.
worker_rlimit_nofile
 51200;
events
{
    use
 epoll;
   
 worker_connections
 51200;
}
http
{
    # 
开两 php-cgi 服务,端口连接方式速度快,socket方式稳定
   
 # 
使用 
lighttpd 的 spawn-fcgi 起的fast-cgi
    # 
weight 
是设置权重
    upstream phpfastcgi
 {
        server
 
unix:/tmp/php-fastcgi0.sock weight=1;
        server
 unix:/tmp/php-fastcgi1.sock weight=1;
        #
 
server 127.0.0.1:8000   
weight=1;
        # 
server 127.0.0.1:8001   weight=1;
   
 }
    # 
mime 类型 和 默认 header-type
   
 include
       mime.types;
    default_type
 application/octet-stream;
   
 # 
默认 
header-charset
    charset
 utf-8;
    # 
一些限制
    server_names_hash_bucket_size
 128;
    client_header_buffer_size
 32k;
   
 large_client_header_buffers
 4 32k;
    client_max_body_size
 8m;
    # 
sendfile 
应该是 lighttpd 的 sendfile 是一个意思
    sendfile
 on;
    tcp_nopush
     on;
    keepalive_timeout
 60;
    tcp_nodelay
 on;
    #
 
fastcgi 配置
   
 fastcgi_connect_timeout
 300;
    fa
    
     
	
	
    
    
	相关文档:
        
    
    PHP取得成功的一个主要原因之一是她拥有大量的可用扩展。web开发者无论有何种需求,这种需求最有可能在PHP发行包里找到。PHP发行包包括支持各种数据库,图形文件格式,压缩,XML技术扩展在内的许多扩展。 
  扩展API的引入使PHP取得了巨大的进展,扩展API机制使PHP开发社区很容易的开发出几十种扩展。。扩展主要的思想是 ......
	
    
        
    
    本文提供了20个非常有用的PHP类库的名称和下载地址。这20个PHP类库包含了图标库,RSS解析,缩略图生成,支付,OpenID,数据库抽 象,PDF生成器等一系列功能。
下面是一些非常有用的PHP类库,相信一定可以为你的WEB开发提供更好和更为快速的方法。
图表库
下面的类库可以让你很简的创建复杂的图表和图片。当然,它们需要G ......
	
    
        
    
    由于公司项目的需要,最经在研究Quercus一个纯java的php引擎。项目这两个需要做的就是将该引擎裁剪,做一个相对安全的版本,提供给ISV使用,同时,在引擎中提供默认的接口供调用。所以先研究了一下,在Quercus引擎的支持下,PHP如何与java集成。
以下是学习到的几点:
1、如果使用 Resin-IoC/WebBeans来组织应用的服 ......
	
    
        
    
    apache:
如果采用RPM包安装,安装路径应在 /etc/httpd目录下
apache配置文件:/etc/httpd/conf/httpd.conf
Apache模块路径:/usr/sbin/apachectl
web目录:/var/www/html
如果采用源代码安装,一般默认安装在/usr/local/apache2目录下
php:
如果采用RPM包安装,安装路径应在 /etc/目录下
php的配置文件:/etc/php.ini
 ......
	
    
        
    
    / ok
header('HTTP/1.1 200 OK');
//设置一个404头:
header('HTTP/1.1 404 Not Found');
//设置地址被永久的重定向
header('HTTP/1.1 301 Moved Permanently');
//转到一个新地址
header('Location: http://www.example.org/'
);
//文件延迟转向:
header('Refresh: 10; url=http://www.example.org/');
print 'Y ......