gitblog
文章目录
下载地址
https://github.com/jockchou/gitblog/releases
安装ubuntu 14.04 + apache2 + php
|
|
开启rewrite
|
|
-
修改/etc/apache2/apache2.conf,文件末尾添加
1
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
-
apache2.conf搜索directory字段,添加
1 2 3 4 5
<Directory /var/www/html> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory>
-
网站根目录下添加.htaccess,内容如下
1 2 3 4 5 6
RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1 !^(index.php|images|robots.txt) RewriteRule ^(.*)$ /index.php/$1 [L]
重启apache2服务
|
|
文章作者 carter2005
上次更新 2017-08-31