diff --git a/README.md b/README.md index 5e6539c..773beb8 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,61 @@ Admin role can edit/delete all users posts. You can login to admin panel at `www.example.com/login`. +### Lighttpd +Here a example configuration + +```` +$HTTP["url"] =~ "^/config" { + url.access-deny = ( "" ) +} +$HTTP["url"] =~ "^/system/includes" { + url.access-deny = ( "" ) +} +$HTTP["url"] =~ "^/system/admin/views" { + url.access-deny = ( "" ) +} + +url.rewrite-once = ( + "^/(themes|system|vendor)/(.*)" => "$0", + "^/(.*\.php)" => "$0", + + # Everything else is handles by htmly + "^/(.*)$" => "/index.php/$1" +) +```` + +### Nginx +Here a basic configuration for nginx. + +```` +server { + listen 80; + + server_name example.com www.example.com; + root /usr/share/nginx/html; + + access_log /var/log/nginx/access.log; + error_log /var/log/nginx/error.log error; + + index index.php; + + location ~ /config/ { + deny all; + } + + location / { + try_files $uri $uri/ /index.php; + } + + location ~ \.php$ { + fastcgi_pass 127.0.0.1:9000; + fastcgi_index index.php; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include fastcgi_params; + } +} +```` + Both Online or Offline ---------------------- In addition by using the built-in editor in the admin panel, you can also write it offline and then upload them into `content/username/blog` folder (the username must match with `YourUsername.ini` above). @@ -122,4 +177,4 @@ Contribute Copyright / License ------------------- -For copyright notice please read [COPYRIGHT.txt](https://github.com/danpros/htmly/blob/master/COPYRIGHT.txt). HTMLy licensed under the GNU General Public License Version 2.0 (or later). \ No newline at end of file +For copyright notice please read [COPYRIGHT.txt](https://github.com/danpros/htmly/blob/master/COPYRIGHT.txt). HTMLy licensed under the GNU General Public License Version 2.0 (or later). diff --git a/system/admin/views/no-posts.html.php b/system/admin/views/no-posts.html.php new file mode 100644 index 0000000..5d2948a --- /dev/null +++ b/system/admin/views/no-posts.html.php @@ -0,0 +1 @@ +