50030
2012-3-24 14:23
APMServ6啊,等得我坐不住啊。
dong_cg
2012-3-24 12:41
虚拟目录配置:server { listen 80; server_name test01.test.com; access_log /var/log/nginx/t01.cn.access.log main; error_log /var/log/nginx/t01.cn.error.log ;### Virtual directory with PHPsupport on nginx location ~ ^/t01p01/.+\.html$ { alias /var/www/html/t01p01/; rewrite ^([^\.]*)/topic-(.+)\.html$ $1/portal.php?mod=topic&topic=$2 last; rewrite ^([^\.]*)/article-([0-9]+)-([0-9]+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3 last; rewrite ^([^\.]*)/forum-(\w+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last; rewrite ^([^\.]*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&page=$3 last; rewrite ^([^\.]*)/group-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=group&fid=$2&page=$3 last; rewrite ^([^\.]*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&$2=$3 last; rewrite ^([^\.]*)/blog-([0-9]+)-([0-9]+)\.html$ $1/home.php?mod=space&uid=$2&do=blog&id=$3 last; rewrite ^([^\.]*)/(fid|tid)-([0-9]+)\.html$ $1/index.php?action=$2&value=$3 last; if (!-e $request_filename) { return 404; } } location ~ ^/t01p01/.+\.php$ { alias /var/www/html/t01p01/; rewrite /t01p01/(.*\.php?) /$1 break; fastcgi_index index.php; fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME /var/www/html/t01p01$fastcgi_script_name; include fastcgi_params; } location ~^/t01p01($|/.*) { alias /var/www/html/t01p01/$1; index index.php index.html index.htm; }### Virtual directory with PHP support on nginx – end# location /{# root /usr/share/nginx/html;# index index.php index.html index.htm;# }}
dong_cg
2012-3-24 12:41
张老师,您好!帮我看看这设置是不是有什么问题环境:nginx + php + php-fpm + centosweb路径: /var/www/test/t01p01/在nginx设置的时候 ,我设置成虚拟主机时,访问是ok的但是我设置成为虚拟目录时,访问是有问题的?查了很多资料,多不知所解所以请教一下张老师您,谢谢我的邮箱:dong_cg@126.com配置如下:虚拟主机配置:server { listen 80; server_name test01.test.com; root /var/www/test/t01p01/; index index.html index.htm index.php; access_log /var/log/nginx/t01.access.log main; error_log /var/log/nginx/t01.error.log ; rewrite ^([^\.]*)/topic-(.+)\.html$ $1/portal.php?mod=topic&topic=$2 last; rewrite ^([^\.]*)/article-([0-9]+)-([0-9]+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3 last; rewrite ^([^\.]*)/forum-(\w+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last; rewrite ^([^\.]*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&page=$3 last; rewrite ^([^\.]*)/group-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=group&fid=$2&page=$3 last; rewrite ^([^\.]*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&$2=$3 last; rewrite ^([^\.]*)/blog-([0-9]+)-([0-9]+)\.html$ $1/home.php?mod=space&uid=$2&do=blog&id=$3 last; rewrite ^([^\.]*)/(fid|tid)-([0-9]+)\.html$ $1/index.php?action=$2&value=$3 last; if (!-e $request_filename) { return 404; } location ~ \.php$ { fastcgi_index index.php; fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME /var/www/test/t01p01$fastcgi_script_name; include fastcgi_params; }}
yuehuafeng
2012-3-23 01:14
我是菜鸟 我想知道咱们的软件上面的FTP功能能用吗 怎么用?
qqo
2012-3-22 21:00
很期待6.0啊 APMServ 6.0 到底什么时候发布啊???该不会是不发了把???
woaipengjiale
2012-3-22 18:01
你好张兄,我的httpsqs.db越来越大我要如何才能在不停服务器的情况下清除以前不需要的记录,先谢过
我编译安装MySql5.5.21版本的MySql,编译参数如下:cmake -DCMAKE_INSTALL_PREFIX=/lnmp/mysql -DMYSQL_UNIX_ADDR=/lnmp/mysql/tmp/mysql.sock -DDEFAULT_CHARSE=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DEXTRA_CHARSETS=utf8,gbk,gb2312 -DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_MEMORY_STORAGE_ENGINE=1 -DWITH_READLINE=1 -DWITH_DEBUG=0 -DWITH_SSL=yes -DMYSQL_TCP_PORT=3306 -DMYSQL_DATADIR=/lnmp/mysql/database -DENABLED_LOCAL_INFILE=1 -DENABLE_THREAD_SAFE_CLIENT=1 -DWITH_BIG_TABLES=1 -DWITH_EMBEDDED_SERVER=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DENABLE_THREAD_SAFE_CLIENT=1 -DWITH_CLIENT_LDFLAGS:STRING=all-static -DWITH_MYSQLD_LDFLAGS:STRING=all-static -DWITHOUT_ISAM=1 -DMYSQL_USER=mysql结果出现很多警告:如/software/mysql-5.5.21/sql/sql_select.cc: In function ‘void add_key_fields(JOIN*, KEY_FIELD**, uint*, COND*, table_map, SARGABLE_PARAM**)’:/software/mysql-5.5.21/sql/sql_select.cc:3729: 警告:提领类型双关的指针将破坏强重叠规则/software/mysql-5.5.21/sql/sql_select.cc: In function ‘COND* build_equal_items_for_cond(THD*, COND*, COND_EQUAL*)’:/software/mysql-5.5.21/sql/sql_select.cc:8133: 警告:提领类型双关的指针将破坏强重叠规则/software/mysql-5.5.21/sql/sql_select.cc:8185: 警告:提领类型双关的指针将破坏强重叠规则/software/mysql-5.5.21/sql/sql_select.cc: In function ‘COND* substitute_for_best_equal_field(COND*, COND_EQUAL*, void*)’:/software/mysql-5.5.21/sql/sql_select.cc:8527: 警告:提领类型双关的指针将破坏强重叠规则/software/mysql-5.5.21/sql/sql_select.cc: In function ‘bool add_ref_to_table_cond(THD*, JOIN_TAB*)’:/software/mysql-5.5.21/sql/sql_select.cc:16116: 警告:提领类型双关的指针将破坏强重叠规则/software/mysql-5.5.21/sql/sql_select.cc: In member function ‘void JOIN::cache_const_exprs()’:/software/mysql-5.5.21/sql/sql_select.cc:17520: 警告:提领类型双关的指针将破坏强重叠规则/software/mysql-5.5.21/sql/sql_select.cc:17524: 警告:提领类型双关的指针将破坏强重叠规则/software/mysql-5.5.21/sql/sql_select.cc:17533: 警告:提领类型双关的指针将破坏强重叠规则编译到最后还有错误:[ 86%] Building CXX object sql/CMakeFiles/sql.dir/sql_builtin.cc.oLinking CXX static library libsql.a[ 86%] Built target sql[ 86%] Building CXX object sql/CMakeFiles/mysqld.dir/main.cc.oLinking CXX executable mysqldc++: all-static:没有那个文件或目录make[2]: *** [sql/mysqld] 错误 1make[1]: *** [sql/CMakeFiles/mysqld.dir/all] 错误 2make: *** [all] 错误 2不得其解!麻烦能帮忙解答下吗?
VIER
2012-3-21 22:18
APMServ 6.0 什么时候发布啊 APMServ 6.0 什么时候发布啊