What does “VirtualHost overlap on port 443” mean?

Why does Apache report “[warn] _default_ VirtualHost overlap on port 443, the first has precedence” when I start it? If you’re going to be serving HTTP -and- HTTPS, be advised that most Apache2 distributions (including Debian) are missing a necessary “NameVirtualHost *:443” statement in /etc/apache2/ports.conf. Add the line to ports.conf: <IfModule mod_ssl.c> # If you …

Continue reading ‘What does “VirtualHost overlap on port 443” mean?’ »

How do I get Apache to show a different page on a certain date?

You can use mod_rewrite, with a TIME condition, to tell Apache to load a different page based on the date. This redirects /r to /before_r until 8/27/2016 at 9:51pm, then to /after_r afterwards. <IfModule mod_rewrite.c> RewriteCond %{TIME} <20160827215100 RewriteRule ^r$ /before_r [NC,R=301,L] RewriteCond %{TIME} >20160827215100 RewriteRule ^r$ /after_r [NC,R=301,L] </IfModule>

Why doesn’t WP-CLI work?

Why doesn’t WP-CLI work? You installed WP-CLI, per the instructions, but when you run it from the command-line, nothing happens: root@www:/var/www/wordpress# php wp-cli.phar root@www:/var/www/wordpress# …and you see, in /var/log/syslog: Jan 10 21:36:14 www suhosin[16064]: ALERT – Include filename (‘phar://wp-cli.phar/php/boot-phar.php’) is an URL that is not allowed (attacker ‘REMOTE_ADDR not set’, file ‘/var/www/wordpress/wp-cli.phar’, line 4) Solution …

Continue reading ‘Why doesn’t WP-CLI work?’ »