买的是荷兰的VPS, 装了LNMP 1.3,之前建虚拟主机,上传WP建站,一切都正常。。。7 ?) ]& a4 B) m, t n) H. k2 k. C
昨天又买了老外的PHP程序,上传。。。显示安装成功,打开主页却是404错误。。。发TK,提供了FTP。。。回复如下:* A* }3 c3 G, ^. @) ~ Z V
- G0 T' O7 `' t) h6 E5 U5 i
. B$ E9 n: K- M. r; r. \
Hi,( K- Q4 j8 V) q2 g6 n( C' b
' l. _% c1 \4 w* \) d$ I' x
Seems like you have installed it on nginx, you will need to use these rules to make (程序名字隐藏掉吧) work properly: $ Z; e0 h5 H. j$ o& m! q
$ Z; Y( B3 J- G& d. V- j. B9 e
Just replace root /home/forge/default/public; with path to the script on your server. - ]. E' g6 p5 r7 @* |7 F; _. L
7 J4 r1 t0 c# y8 ]
server {0 ^% \+ s8 x) `2 \! p' n! _
listen 80 default_server;" S* l% ?, L( M
server_name default; % {& v" T( g' u# B0 T+ n9 D
root /home/forge/default/public;8 J' g" f; D5 a, I4 l$ Y
9 k8 H" I% Q$ F& U; Q' q r
index index.html index.htm index.php; 2 B1 { F, c9 m: F1 L" Q
Just replace root /home/forge/default/public; with path to the script on your server.% I g0 b- D9 Y( h- |. f+ z
让你把NGINX的ROOT选项配置为程序的根目录。! y8 x" ?, l; q
$ ]0 T2 L3 w. N/ n# h3 ^1 R& g
把你的NGINX配置文件和程序所在路径贴出来看下。