虚拟网站wakeng.wang 配置文件: /etc/apache2/sites-available/wakeng.wang.conf
<VirtualHost *:80>
        # The ServerName directive sets the request scheme, hostname and port that
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        #ServerName www.example.com
        ServerName wakeng.wang
        ServerAdmin 516333132@qq.com
#       DocumentRoot /opt/wakeng.wang
        DocumentRoot /var/www/xiuno/
#       DocumentRoot /opt/xiuno
        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf
        #<ifmodule mod_rewrite.c>
        #Options +FollowSymLinks
        #RewriteEngine On
        ###force https
        #RewriteCond %{HTTPS} off
        #RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
        #</ifmodule>
        <Directory /var/www/html/xiuno>
                Options -Indexes +FollowSymLinks
                AllowOverride None
                Require all granted
        </Directory>
        <IfModule mod_rewrite.c>
                RewriteEngine on
                RewriteRule ^(.*?)([^/]*)\.htm(.*)$ $1/index.php?$2.htm$3 [L]
        </IfModule>
</VirtualHost>使能网站: a2ensite wakeng.wang
下载源码:
cd /var/www/
git clone https://gitee.com/xiuno/xiunobbs.git然后打开 http://wakeng.wang/ 即可进入系统配置运行.

离线
离线
修罗程序伪静态设置: http://www.zidiu.com/thread-1366-1-1.html
我跑的是 apache, 配置文件修改: /etc/apache2/sites-available/wakeng.wang.conf
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^(.*?)([^/]*)\.htm(.*)$ $1/index.php?$2.htm$3 [L]
</IfModule>代码编辑 conf/conf.php:
1. 编辑 'url_rewrite_on'=>1,
2. 清空 tmp 目录
离线
说实话,感觉这个很好用啊,简单但不简陋,与本站内容非常匹配有特色。
修罗xiuno 架构还挺不错, 插件丰富.
想把 伪静态弄成 和这个一样的格式, 没有搞定.
http://wakeng.wang/thread-3.htm
===>
离线
居然没有在github上面放,感觉有点……不太可信?
我知道的几个论坛系统可以推荐一下:
https://github.com/flarum/flarum
https://nodebb.org/
flarum是用PHP写的,Nodebb是用nodejs写的。widora和坑智的论坛都是用的nodebb
离线