How to access a name based website without a DNS record

Hosts file

If you want to access a name-based website that you created e.g. in ISPConfig before the DNS records are set up, edit the hosts file on your workstation computer and add a line like this: 192.168.0.100        www.mydomain.com mydomain.com Edit hosts file on macOS X To edit the hosts file on a computer running macOS X, ... Read more

[Solved] Postfix: “queue file write error”

Postfix: Queue File Write Error

If you get an error like: Apr 15 12:41:03 webb4 postfix/sendmail[11234]: fatal: web1_user(12967): queue file write error in your mail log, then the value for message_size_limit in postfix main.cf is too low. Solve Postfix queue file write error Edit postfix main.cf: nano /etc/postfix/main.cf and set the message size limit to a higher value. E.g. message_size_limit ... Read more

Redirect domains without www (e.g. domain.com) to www.domain.com with apache rewrite rules

Apache www redirect rule

If all your visitors shall access your website with a URL like www.domain.com and not without www, use the following apache rewrite rule for redirecting them. RewriteEngine On RewriteCond %{HTTP_HOST} !^www RewriteRule (.*) http://www.%{HTTP_HOST}$1 [L,R] The apache rewrite rule can be added in a .htaccess file in the website root directory or if you use ... Read more