From 4312fb96534dfa12e4f8d7ac5dd7d5a4054e03d1 Mon Sep 17 00:00:00 2001 From: fanningert Date: Sat, 15 Mar 2014 23:07:36 +0100 Subject: [PATCH 1/4] Update README.md Add lighttpd configuration --- README.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5e6539c..49dd609 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,29 @@ 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 Wordpress + "^/(.*)$" => "/index.php/$1" +) +```` + 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 +145,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). From ff90a17821bbffd57219496f8226d8e52d229c38 Mon Sep 17 00:00:00 2001 From: fanningert Date: Sat, 15 Mar 2014 23:08:34 +0100 Subject: [PATCH 2/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 49dd609..f5f6830 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ url.rewrite-once = ( "^/(themes|system|vendor)/(.*)" => "$0", "^/(.*\.php)" => "$0", - # Everything else is handles by Wordpress + # Everything else is handles by htmly "^/(.*)$" => "/index.php/$1" ) ```` From 0a503cad299a1b7479af67d7be43eda1e861a1ea Mon Sep 17 00:00:00 2001 From: fanningert Date: Mon, 17 Mar 2014 06:01:23 +0100 Subject: [PATCH 3/4] Add nginx configuration example --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/README.md b/README.md index f5f6830..773beb8 100644 --- a/README.md +++ b/README.md @@ -87,6 +87,38 @@ url.rewrite-once = ( ) ```` +### 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). From 323e037c728c48297d77fef48308eb5f5b9c4653 Mon Sep 17 00:00:00 2001 From: fanningert Date: Mon, 17 Mar 2014 06:32:05 +0100 Subject: [PATCH 4/4] Create no-posts.html.php --- system/admin/views/no-posts.html.php | 1 + 1 file changed, 1 insertion(+) create mode 100644 system/admin/views/no-posts.html.php 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 @@ +

No posts found!