易企秀如何開啓僞靜態支持? 一秀如何開啓僞靜態? php
oschina: http://git.oschina.net/jsper/html5Editorhtml
ewesambo.sql
修改html5Editor項目下的配置文件:
修改systemConfig.php的內容,數據庫地址,數據庫庫名,用戶名和密碼
html5
在html5Editor根目錄下編寫重定向文件.htaccess文件,文件內容以下:mysql
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
server {
listen 80;
server_name wanqi520.cn; # 這裏換成你本身的域名
# 下面的if語句是爲了支持thinkphp的重定向,URL_MODE使用的是2
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=$1 last;
break;
}
#if
# 下面的語句制定html5Editor的根目錄
root /usr/local/nginx/html;
index index.php;
charset utf-8;
#include /usr/local/nginx/html/.htaccess;
location ~ \.php$ {
fastcgi_index index.php;
# fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ /phpmyadmin { root /data/www/phpmyadmin;
index index.php;
}
location ~ /phpmyadmin/.+\.php$ {
if ($fastcgi_script_name ~ /phpmyadmin/(.+\.php.*)$) {
set $valid_fastcgi_script_name $1;
}
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME /data/www/phpmyadmin/$valid_fastcgi_script_name;
}
}