• <button id="8uwq2"></button>
    无标题文档
    wdCP系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用教程) wdCDN系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用手册)
    wdOS系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用教程) wdDNS系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用手册)
    注册 发贴 提问 回复-必看必看 wddns免费智能 DNS 开通 本地或虚拟机使 用wdcp 一键包在mysql编 译时"卡住"
    【300G高防】双线 无视攻击 wdcp官方技术支持/服务 阿里云8折优惠券 无敌云 腾讯云优惠中,现注册更有260代金额券赠送
    Caoliu1024最新地址二
    返回列表 发帖
    提问三步曲: 提问先看教程/FAQ索引(wdcp,wdcp_v3,一键包)及搜索,会让你更快解决问题
    1 提供详细,如系统版本,wdcp版本,软件版本等及错误的详细信息,贴上论坛或截图发论坛
    2 做过哪些操作或改动设置等

    温馨提示:信息不详,很可能会没人理你!论坛有教程说明的,也可能没人理!因为,你懂的

    [教程] 关于nginx+apache环境伪静态规则是否有效的测试方法

    看到有几个同学在使用nginx+apache引擎的时候需要的伪静态无法使用的问题,请同学们按照如下方式进行测试,并把测试结果回复到本帖,以供我们为你诊断:1.登录wdcp控制面板新建一个测试站点;
    2.在测试站点根目录写入如下index.php测试代码页面:
    <code>
    <?php
    header("Content-type: text/html; charset=utf-8");
    echo 'action:'.$_GET['action'].'<br>id:'.$_GET['id'];
    ?>

    </code>
    3.在测试站点根目录写入如下.htacccess文件:
    <code>
    RewriteEngine on
    RewriteRule ([a-zA-Z]{1,})-([0-9]{1,}).html$ index.php?action=$1&id=$2

    </code>

    4.访问如下url,查看页面输出结果:
    test.example.com/test-2013.html

    如果页面能够输出如:
    action:test
    id:2013
    则说明环境支持伪静态。

    这是我专门下载wdos 1.0 安装的虚拟机测试的。
    如下:
    QQ截图20131225183052.png

    QQ截图20131225183030.png


    QQ截图20131225183059.png


    QQ截图20131225183107.png


    QQ截图20131225183131.png


    QQ截图20131225183140.png

    TOP

    从以上图片来看发现阿帕奇没有起作用。
    下面的图片正面阿帕奇是运行的。

    20131225183555.png

    20131225183632.png


    20131225183654.png

    TOP

    回复 3# crll

    这说明你的伪静态规则确实无效,请使用最新版本的lanmp一键安装包重新安装环境试试,https://github.com/wdlinux/lanmp#%E4%BD%BF%E7%94%A8%E8%BF%99%E9%87%8Cgithub%E6%8F%90%E4%BE%9B%E7%9A%84%E6%9C%80%E6%96%B0%E7%89%88%E6%9C%AC%E5%AE%89%E8%A3%85%E8%84%9A%E6%9C%AC

    TOP

    1. [root@AY1312181404071177cdZ ~]# wget http://dl.wdlinux.cn:5180/lanmp_laster.tar.gz
    2. --2013-12-26 09:14:33--  http://dl.wdlinux.cn:5180/lanmp_laster.tar.gz
    3. Resolving dl.wdlinux.cn... 222.186.43.27
    4. Connecting to dl.wdlinux.cn|222.186.43.27|:5180... connected.
    5. HTTP request sent, awaiting response... 200 OK
    6. Length: 81325773 (78M) [application/x-gzip]
    7. Saving to: `lanmp_laster.tar.gz'

    8. 100%[======================================>] 81,325,773  1.66M/s   in 49s

    9. 2013-12-26 09:15:23 (1.58 MB/s) - `lanmp_laster.tar.gz' saved [81325773/81325773]

    10. [root@AY1312181404071177cdZ ~]# tar xf lanmp_laster.tar.gz
    11. [root@AY1312181404071177cdZ ~]# ls lanmp
    12. debian_patches_disable_SSLv2_for_openssl_1_0_0.patch
    13. eaccelerator-0.9.5.3.tar.bz2
    14. httpd-2.0.64.tar.gz
    15. httpd-2.2.24.tar.gz
    16. libiconv-1.14.tar.gz
    17. mod_rpaf-0.6.tar.gz
    18. mysql-5.1.69.tar.gz
    19. nginx-1.2.9.tar.gz
    20. pcre-8.10.tar.gz
    21. PDO_MYSQL-1.0.2.tgz
    22. php-5.2.17-fpm-0.5.14.diff.gz
    23. php-5.2.17.tar.gz
    24. php-5.3.27.tar.gz
    25. phpmyadmin.tar.gz
    26. pure-ftpd-1.0.36.tar.gz
    27. rpmforge-release-0.5.2-2.el5.rf.i386.rpm
    28. rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
    29. RPM-GPG-KEY.dag.txt
    30. wdcp_v2.5.tar.gz
    31. zend_32.tar.gz
    32. zend_64.tar.gz
    33. [root@AY1312181404071177cdZ ~]# curl https://raw.github.com/wdlinux/lanmp/master/utils/bootstrap|sh
    34.   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
    35.                                  Dload  Upload   Total   Spent    Left  Speed
    36. 100   728  100   728    0     0    618      0  0:00:01  0:00:01 --:--:--  710k
    37. Loaded plugins: fastestmirror
    38. Determining fastest mirrors
    39. * addons: mirrors.163.com
    40. * base: mirrors.163.com
    41. * extras: mirrors.163.com
    42. * updates: mirrors.163.com
    43. addons                                                   | 1.9 kB     00:00
    44. addons/primary_db                                        | 1.1 kB     00:00
    45. base                                                     | 1.1 kB     00:00
    46. base/primary                                             | 995 kB     00:01
    47. base                                                                  2789/2789
    48. extras                                                   | 2.1 kB     00:00
    49. extras/primary_db                                        | 164 kB     00:00
    50. updates                                                  | 1.9 kB     00:00
    51. updates/primary_db                                       | 184 kB     00:00
    52. Excluding Packages in global exclude list
    53. Finished
    54. Setting up Install Process
    55. No package git available.
    56. Nothing to do
    57. sh: line 22: git: command not found
    58. /bin/cp: cannot stat `./*': No such file or directory
    59. File `httpd-2.2.24.tar.gz' already there; not retrieving.

    60. File `nginx-1.2.9.tar.gz' already there; not retrieving.

    61. File `mysql-5.1.69.tar.gz' already there; not retrieving.

    62. File `php-5.3.27.tar.gz' already there; not retrieving.

    63. File `pure-ftpd-1.0.36.tar.gz' already there; not retrieving.

    64. if all packages downloaded,you can begin install now:
    65. type:    ./install.sh    to begin install.
    66. [root@AY1312181404071177cdZ ~]#
    67. [root@AY1312181404071177cdZ ~]#
    68. [root@AY1312181404071177cdZ ~]# ./install.sh
    69. Loaded plugins: fastestmirror
    70. Loading mirror speeds from cached hostfile
    71. * addons: mirrors.163.com
    72. * base: mirrors.163.com
    73. * extras: mirrors.163.com
    74. * updates: mirrors.163.com
    75. Excluding Packages in global exclude list
    76. Finished
    77. Setting up Install Process
    78. Resolving Dependencies
    79. There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
    80. The program yum-complete-transaction is found in the yum-utils package.
    81. --> Running transaction check
    82. ---> Package screen.i386 0:4.0.3-4.el5 set to be updated
    83. --> Processing Dependency: libutempter.so.0 for package: screen
    84. --> Running transaction check
    85. ---> Package libutempter.i386 0:1.1.4-4.el5 set to be updated
    86. --> Finished Dependency Resolution

    87. Dependencies Resolved

    88. ================================================================================
    89. Package              Arch          Version                 Repository     Size
    90. ================================================================================
    91. Installing:
    92. screen               i386          4.0.3-4.el5             base          559 k
    93. Installing for dependencies:
    94. libutempter          i386          1.1.4-4.el5             base           22 k

    95. Transaction Summary
    96. ================================================================================
    97. Install      2 Package(s)
    98. Update       0 Package(s)
    99. Remove       0 Package(s)

    100. Total download size: 580 k
    101. Downloading Packages:
    102. (1/2): libutempter-1.1.4-4.el5.i386.rpm                  |  22 kB     00:00
    103. (2/2): screen-4.0.3-4.el5.i386.rpm                       | 559 kB     00:01
    104. --------------------------------------------------------------------------------
    105. Total                                           259 kB/s | 580 kB     00:02
    106. Running rpm_check_debug
    107. Running Transaction Test
    108. Finished Transaction Test
    109. Transaction Test Succeeded
    110. Running Transaction
    111.   Installing     : libutempter                                              1/2
    112.   Installing     : screen                                                   2/2

    113. Installed:
    114.   screen.i386 0:4.0.3-4.el5

    115. Dependency Installed:
    116.   libutempter.i386 0:1.1.4-4.el5

    117. Complete!
    复制代码

    TOP

    回复 5# crll


       你的yum仓库里没有git,看看yum仓库是不是有问题呢。

    TOP

    应该是".htaccess"!!!不是".htacccess"。。因为这个折腾了半天都不行。。晕倒
    0.0

    TOP

    本帖最后由 mjl840125 于 2014-3-15 18:03 编辑

    1.jpg
    2.jpg
    3.jpg
    4.jpg

    TOP

    看不懂啊。你们都是大神

    TOP

    那样子啊,厉害
    jin7.cn

    TOP

    学习一下!!
    仙人掌

    TOP

    支持的!WORDPRESS 直接就支持了。

    TOP

    我弄WP规则弄了好久才弄好

    TOP

    测试  盗链   http://www.hbike.cn
    laicuxiao.com来促销主机

    TOP

    一会成功    一会不成功    相当的郁闷
    laicuxiao.com来促销主机

    TOP

    返回列表