Angular Service Worker SwUpdate.available not triggered

You will probably need to tell the service worker to check the server for updates, I usually use a service for this: export class UpdateService { constructor(public updates: SwUpdate) { if (updates.isEnabled) { interval(6 * 60 * 60).subscribe(() => updates.checkForUpdate() .then(() => console.log(‘checking for updates’))); } } public checkForUpdates(): void { this.updates.available.subscribe(event => this.promptUser()); } … Read more

OpenSSL not working on Windows, errors 0x02001003 0x2006D080 0x0E064002

The code below works as expected. BUT if you run openssl_error_string() after the openssl methods it shows error:0E06D06C:configuration file routines:NCONF_get_string:no value which is some notice I have not been able to find documentation on. Further note that according to http://www.php.net/manual/en/function.openssl-error-string.php you could be seeing mis-leading errors as error messages are queued: Be careful when using … Read more

htaccess deny from all

You cannot use the Directory directive in .htaccess. However if you create a .htaccess file in the /system directory and place the following in it, you will get the same result #place this in /system/.htaccess as you had before deny from all

.htaccess / .htpasswd bypass if at a certain IP address

For versions 2.2.X you can use the following… AuthUserFile /var/www/mysite/.htpasswd AuthName “Please Log In” AuthType Basic require valid-user Order allow,deny Allow from xxx.xxx.xxx.xxx satisfy any Obviously replace the path to your usersfile and the ip address which you would like to bypass the authentication. Further explanation of the specifics, can be found at: http://httpd.apache.org/docs/2.2/howto/auth.html

How can I prevent tons of apache processes spawning when I start apache and proceeding to kill my machine?

You have probably made the error of configuring Apache to use far more than all of your ram. This is an easy mistake to make. I am assuming you are using a Prefork Apache, and an in-process application server (such as PHP or mod_perl). In this model, you will end up with a maximum of … Read more

Creating a symbolic link in Sites directory

That’s a configurable Apache option. It appears that by default on Macs (and probably most installations) Apache is configured to not follow symbolic links. I’m guessing (as others mention above) that it’s for security purposes. But it can be really convenient at times to enable following of symbolic links, particularly during development of certain kinds … Read more

multiple django sites with apache & mod_wsgi

Your ServerName/ServerAlias directives are wrong. ServerName should be hostname. You probably should just delete ServerAlias. Then just do the obvious and duplicate VirtualHost/Listen directives, just changing the port number and locations of scripts in the file system. Finally, do not set DocumentRoot to be where your Django code is as it makes it easier to … Read more