永久黄网站色视频免费直播,yy6080三理论日本中文,亚洲无码免费在线观看视频,欧美日韩精品一区二区在线播放
標(biāo)題:
[教程]
關(guān)于nginx+apache環(huán)境偽靜態(tài)規(guī)則是否有效的測(cè)試方法
[打印本頁(yè)]
作者:
itxx
時(shí)間:
2013-12-23 22:27
標(biāo)題:
關(guān)于nginx+apache環(huán)境偽靜態(tài)規(guī)則是否有效的測(cè)試方法
看到有幾個(gè)同學(xué)在使用nginx+apache引擎的時(shí)候需要的偽靜態(tài)無(wú)法使用的問(wèn)題,請(qǐng)同學(xué)們按照如下方式進(jìn)行測(cè)試,并把測(cè)試結(jié)果回復(fù)到本帖,以供我們?yōu)槟阍\斷:1.登錄wdcp控制面板新建一個(gè)測(cè)試站點(diǎn);
2.在測(cè)試站點(diǎn)根目錄寫入如下index.php測(cè)試代碼頁(yè)面:
<code>
<?php
header("Content-type: text/html; charset=utf-8");
echo 'action:'.$_GET['action'].'<br>id:'.$_GET['id'];
?>
</code>
3.在測(cè)試站點(diǎn)根目錄寫入如下.htacccess文件:
<code>
RewriteEngine on
RewriteRule ([a-zA-Z]{1,})-([0-9]{1,}).html$ index.php?action=$1&id=$2
</code>
4.訪問(wèn)如下url,查看頁(yè)面輸出結(jié)果:
test.example.com/test-2013.html
如果頁(yè)面能夠輸出如:
action:test
id:2013
則說(shuō)明環(huán)境支持偽靜態(tài)。
作者:
crll
時(shí)間:
2013-12-25 18:40
這是我專門下載wdos 1.0 安裝的虛擬機(jī)測(cè)試的。
如下:
下載
(5.35 KB)
2013-12-25 18:38
下載
(3.77 KB)
2013-12-25 18:38
下載
(3.26 KB)
2013-12-25 18:38
下載
(3.34 KB)
2013-12-25 18:38
下載
(11.24 KB)
2013-12-25 18:38
下載
(8.2 KB)
2013-12-25 18:38
圖片附件:
QQ截圖20131225183030.png
(2013-12-25 18:38, 3.77 KB) / 下載次數(shù) 17324
http://www.fsowen.com/bbs/attachment.php?aid=4027&k=2e2983c5e10710a7e001d21d7ff02c1f&t=1743672152&sid=n49ZaH
圖片附件:
QQ截圖20131225183052.png
(2013-12-25 18:38, 5.35 KB) / 下載次數(shù) 17374
http://www.fsowen.com/bbs/attachment.php?aid=4028&k=307215688b2cf9d209ba4c4c0e0a7a7e&t=1743672152&sid=n49ZaH
圖片附件:
QQ截圖20131225183059.png
(2013-12-25 18:38, 3.26 KB) / 下載次數(shù) 17495
http://www.fsowen.com/bbs/attachment.php?aid=4029&k=674435717275b3c262ecb770942ce97c&t=1743672152&sid=n49ZaH
圖片附件:
QQ截圖20131225183131.png
(2013-12-25 18:38, 11.24 KB) / 下載次數(shù) 17326
http://www.fsowen.com/bbs/attachment.php?aid=4030&k=c01fb06dfacc65c1b4dcbd2654cae2b9&t=1743672152&sid=n49ZaH
圖片附件:
QQ截圖20131225183107.png
(2013-12-25 18:38, 3.34 KB) / 下載次數(shù) 17260
http://www.fsowen.com/bbs/attachment.php?aid=4031&k=a5de40eae1d8cb6c24a60bb34e6f7f73&t=1743672152&sid=n49ZaH
圖片附件:
QQ截圖20131225183140.png
(2013-12-25 18:38, 8.2 KB) / 下載次數(shù) 17325
http://www.fsowen.com/bbs/attachment.php?aid=4032&k=942f495e14ea1bb56e166e01a6b337a3&t=1743672152&sid=n49ZaH
作者:
crll
時(shí)間:
2013-12-25 18:44
從以上圖片來(lái)看發(fā)現(xiàn)阿帕奇沒(méi)有起作用。
下面的圖片正面阿帕奇是運(yùn)行的。
下載
(8.83 KB)
2013-12-25 18:43
下載
(10.85 KB)
2013-12-25 18:43
下載
(3.26 KB)
2013-12-25 18:43
圖片附件:
20131225183555.png
(2013-12-25 18:43, 8.83 KB) / 下載次數(shù) 17191
http://www.fsowen.com/bbs/attachment.php?aid=4033&k=f163f4354f66f2d4f4926c79cdf5b8b0&t=1743672152&sid=n49ZaH
圖片附件:
20131225183632.png
(2013-12-25 18:43, 10.85 KB) / 下載次數(shù) 17179
http://www.fsowen.com/bbs/attachment.php?aid=4034&k=d7a97e37622ab246d930e0b85f022756&t=1743672152&sid=n49ZaH
圖片附件:
20131225183654.png
(2013-12-25 18:43, 3.26 KB) / 下載次數(shù) 17045
http://www.fsowen.com/bbs/attachment.php?aid=4035&k=16362db65ded1cded72e2837eaa2cef3&t=1743672152&sid=n49ZaH
作者:
itxx
時(shí)間:
2013-12-25 22:41
回復(fù)
3#
crll
這說(shuō)明你的偽靜態(tài)規(guī)則確實(shí)無(wú)效,請(qǐng)使用最新版本的lanmp一鍵安裝包重新安裝環(huán)境試試,
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
作者:
crll
時(shí)間:
2013-12-26 09:29
[root@AY1312181404071177cdZ ~]# wget http://dl.wdlinux.cn:5180/lanmp_laster.tar.gz
--2013-12-26 09:14:33-- http://dl.wdlinux.cn:5180/lanmp_laster.tar.gz
Resolving dl.wdlinux.cn... 222.186.43.27
Connecting to dl.wdlinux.cn|222.186.43.27|:5180... connected.
HTTP request sent, awaiting response... 200 OK
Length: 81325773 (78M) [application/x-gzip]
Saving to: `lanmp_laster.tar.gz'
100%[======================================>] 81,325,773 1.66M/s in 49s
2013-12-26 09:15:23 (1.58 MB/s) - `lanmp_laster.tar.gz' saved [81325773/81325773]
[root@AY1312181404071177cdZ ~]# tar xf lanmp_laster.tar.gz
[root@AY1312181404071177cdZ ~]# ls lanmp
debian_patches_disable_SSLv2_for_openssl_1_0_0.patch
eaccelerator-0.9.5.3.tar.bz2
httpd-2.0.64.tar.gz
httpd-2.2.24.tar.gz
libiconv-1.14.tar.gz
mod_rpaf-0.6.tar.gz
mysql-5.1.69.tar.gz
nginx-1.2.9.tar.gz
pcre-8.10.tar.gz
PDO_MYSQL-1.0.2.tgz
php-5.2.17-fpm-0.5.14.diff.gz
php-5.2.17.tar.gz
php-5.3.27.tar.gz
phpmyadmin.tar.gz
pure-ftpd-1.0.36.tar.gz
rpmforge-release-0.5.2-2.el5.rf.i386.rpm
rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
RPM-GPG-KEY.dag.txt
wdcp_v2.5.tar.gz
zend_32.tar.gz
zend_64.tar.gz
[root@AY1312181404071177cdZ ~]# curl https://raw.github.com/wdlinux/lanmp/master/utils/bootstrap|sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 728 100 728 0 0 618 0 0:00:01 0:00:01 --:--:-- 710k
Loaded plugins: fastestmirror
Determining fastest mirrors
* addons: mirrors.163.com
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirrors.163.com
addons | 1.9 kB 00:00
addons/primary_db | 1.1 kB 00:00
base | 1.1 kB 00:00
base/primary | 995 kB 00:01
base 2789/2789
extras | 2.1 kB 00:00
extras/primary_db | 164 kB 00:00
updates | 1.9 kB 00:00
updates/primary_db | 184 kB 00:00
Excluding Packages in global exclude list
Finished
Setting up Install Process
No package git available.
Nothing to do
sh: line 22: git: command not found
/bin/cp: cannot stat `./*': No such file or directory
File `httpd-2.2.24.tar.gz' already there; not retrieving.
File `nginx-1.2.9.tar.gz' already there; not retrieving.
File `mysql-5.1.69.tar.gz' already there; not retrieving.
File `php-5.3.27.tar.gz' already there; not retrieving.
File `pure-ftpd-1.0.36.tar.gz' already there; not retrieving.
if all packages downloaded,you can begin install now:
type: ./install.sh to begin install.
[root@AY1312181404071177cdZ ~]#
[root@AY1312181404071177cdZ ~]#
[root@AY1312181404071177cdZ ~]# ./install.sh
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirrors.163.com
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirrors.163.com
Excluding Packages in global exclude list
Finished
Setting up Install Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
The program yum-complete-transaction is found in the yum-utils package.
--> Running transaction check
---> Package screen.i386 0:4.0.3-4.el5 set to be updated
--> Processing Dependency: libutempter.so.0 for package: screen
--> Running transaction check
---> Package libutempter.i386 0:1.1.4-4.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
screen i386 4.0.3-4.el5 base 559 k
Installing for dependencies:
libutempter i386 1.1.4-4.el5 base 22 k
Transaction Summary
================================================================================
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 580 k
Downloading Packages:
(1/2): libutempter-1.1.4-4.el5.i386.rpm | 22 kB 00:00
(2/2): screen-4.0.3-4.el5.i386.rpm | 559 kB 00:01
--------------------------------------------------------------------------------
Total 259 kB/s | 580 kB 00:02
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libutempter 1/2
Installing : screen 2/2
Installed:
screen.i386 0:4.0.3-4.el5
Dependency Installed:
libutempter.i386 0:1.1.4-4.el5
Complete!
復(fù)制代碼
作者:
itxx
時(shí)間:
2013-12-26 20:12
回復(fù)
5#
crll
你的yum倉(cāng)庫(kù)里沒(méi)有g(shù)it,看看yum倉(cāng)庫(kù)是不是有問(wèn)題呢。
作者:
SaorUicnext
時(shí)間:
2014-2-5 01:47
應(yīng)該是".htaccess"。。〔皇".htacccess"。。
因?yàn)檫@個(gè)折騰了半天都不行。。暈倒
作者:
mjl840125
時(shí)間:
2014-3-15 17:53
本帖最后由 mjl840125 于 2014-3-15 18:03 編輯
下載
(17.61 KB)
2014-3-15 18:02
下載
(17.43 KB)
2014-3-15 18:02
下載
(19.61 KB)
2014-3-15 18:02
下載
(44.26 KB)
2014-3-15 18:02
圖片附件:
1.jpg
(2014-3-15 18:02, 17.61 KB) / 下載次數(shù) 17107
http://www.fsowen.com/bbs/attachment.php?aid=4298&k=bc308d7f950ea296e67cdc776b54e44d&t=1743672152&sid=n49ZaH
圖片附件:
2.jpg
(2014-3-15 18:02, 17.43 KB) / 下載次數(shù) 17221
http://www.fsowen.com/bbs/attachment.php?aid=4299&k=4299e4f60c8e494e3ce0b21dcd161529&t=1743672152&sid=n49ZaH
圖片附件:
3.jpg
(2014-3-15 18:02, 19.61 KB) / 下載次數(shù) 17168
http://www.fsowen.com/bbs/attachment.php?aid=4300&k=53239d27d219625c4e48cbfcd761e52b&t=1743672152&sid=n49ZaH
圖片附件:
4.jpg
(2014-3-15 18:02, 44.26 KB) / 下載次數(shù) 17294
http://www.fsowen.com/bbs/attachment.php?aid=4301&k=6d34f836ca72f7b1c49c1667e0907c84&t=1743672152&sid=n49ZaH
作者:
wuyouseo
時(shí)間:
2014-3-27 18:55
看不懂啊。你們都是大神
作者:
360784502
時(shí)間:
2014-3-29 22:51
那樣子啊,厲害
作者:
yuqi1015918
時(shí)間:
2014-4-6 08:47
學(xué)習(xí)一下。
作者:
96542199
時(shí)間:
2014-4-23 17:41
支持的!WORDPRESS 直接就支持了。
作者:
mingsz8
時(shí)間:
2014-5-6 10:39
我弄WP規(guī)則弄了好久才弄好
作者:
linuxwolf
時(shí)間:
2014-6-27 11:09
測(cè)試 盜鏈 http://www.hbike.cn
作者:
linuxwolf
時(shí)間:
2014-6-27 11:09
一會(huì)成功 一會(huì)不成功 相當(dāng)?shù)挠魫?hr noshade size="2" width="100%" color="#808080">
作者:
limingchuan
時(shí)間:
2014-6-30 23:49
呵呵呵!
作者:
webyxm
時(shí)間:
2014-7-11 14:00
WP規(guī)則弄了好久才弄好
作者:
linuxwolf
時(shí)間:
2014-10-17 17:44
http://www.fsowen.com/bbs/viewthread.php?tid=37688&extra=
作者:
linuxwolf
時(shí)間:
2014-10-17 17:44
wdcp重啟nginx服務(wù)后,.htaccess立馬失效
http://www.fsowen.com/bbs/viewthread.php?tid=37688&extra=
作者:
my1281617143
時(shí)間:
2015-5-20 22:39
用了2種模式,一定要用2種偽靜態(tài)規(guī)則嗎?
作者:
metersbonwe
時(shí)間:
2017-3-28 20:32
WP規(guī)則弄了好久才弄好!~
作者:
laomeng
時(shí)間:
2017-4-29 13:10
回復(fù)
7#
SaorUicnext
:handshake:handshake:handshake:handshake
頂上去,讓更多的人看到
作者:
zzidc
時(shí)間:
2017-10-12 11:27
測(cè)試一下 測(cè)試一下 測(cè)試一下 測(cè)試一下
歡迎光臨 WDlinux官方論壇 (http://www.fsowen.com/bbs/)
Powered by Discuz! 7.2