NerdOCRACY, the server hosting barisione.org, moved to lighttpd as it’s less resource-hungry and easier to configure.
I had only some problems with WordPress, to have clean addresses like http://www.example.com/about instead of something like http://www.example.com/?p=123 it uses this htaccess file:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
I resolved using server.error-handler-404
as suggested on snippets.dzone.com:
$HTTP["host"] == "www.example.com" { server.document-root = "/usr/share/wordpress" server.error-handler-404 = "/index.php" }
This probably means that perfectly valid URLs to blog posts will return a 404 error status, which is wrong and violates the standard. Search engines for one won’t index such pages.
LikeLike
No,
server.error-handler-404
returns a 200 status code, if you want a 404 code you have to useserver.errorfile-prefix
.LikeLike