Browsed by
Category: Apache

Wildcard Let’s Encrypt with Certbot Apache Ubuntu

Wildcard Let’s Encrypt with Certbot Apache Ubuntu

Google started a campaign to make the web a safer place. So they decided to mark all websites using plain old http as “not secure”. Only websites that were using https we marked as “safe” to use. Nobody wants to see their website marked as “not secure” because they didn’t use https. In order to remove the warning message, the website needs a SSL certification. But that costs money. Fortunately, there is a free way to SSL your website. Let’s…

Read More Read More

Apache Custom Environment Variables in PHP

Apache Custom Environment Variables in PHP

If you ever wanted to create a new Environment Variable, you can do so by setting them in the VirtualHost section.For example, And to use it in PHP simply use $_SERVER[‘VARNAME’] or getenv(‘VARNAME’);If you were to check the output of phpinfo(), you can actually see the Environment Variable as the image illustrates below.