If you want to follow best security practices and implement Strict Transport Security and Secure Headers in your Azure App Service you will need to add Security Headers in web.config or .htaccess files in your web application’s root folder. Before you start remember that App Services run on a PaaS. This means that not everything …
Tag: apache
Oct 15 2021
No input file specified error
When going on some link you can get “No input file specified” error in your browser. To resolve this error, check that in the file .htaccess there was no line:
1 |
RewriteRule ^(.*)$ /index.php/$1 [L,QSA] |
Copy
May 05 2021
Letsencrypt Unable to find a virtual host listening on port 80
I installed Goautodial where access via HTTPS was configured “out-of-the-box” with self-signed certificate. HTTP access was configured through like default website in Apache without using VirtualHost directive. I tried to get a certificate from Letsencrypt and got the following error: Unable to find a virtual host listening on port 80 which is currently needed for …
Mar 09 2021
Virtualmin: no Manage SSL certificate option
The problem is that you want to enable SSL certificate for virtual domain in Virtualmin but the Manage SSL certificate option is absent from the Server Configuration. By default Manage SSL option is absent and you need to enable it in Features. To do so go toEdit Virtual Server -> Enabled Features, and set “Apache …
Aug 19 2020
How to remove mod_pagespeed from access.log
If you have mod_pagespeed installed on your webserver you may notice the following lines in access.log file:
1 2 3 |
*ipofserver* - - [24/Jan/2019:13:40:13 +0100] "GET /wp-content/***.jpg HTTP/1.1" 200 1806 "https://***.com/*" "Serf/1.3.9 (mod_pagespeed/1.13.35.2-0)" *ipofserver* - - [24/Jan/2019:13:40:13 +0100] "GET /wp-content/***.jpg HTTP/1.1" 200 1806 "https://***.com/*" "Serf/1.3.9 (mod_pagespeed/1.13.35.2-0)" *ipofserver* - - [24/Jan/2019:13:40:13 +0100] "GET /wp-content/***.jpg HTTP/1.1" 200 1806 "https://***.com/*" "Serf/1.3.9 (mod_pagespeed/1.13.35.2-0)" |
Depending on the size of your website requests from mod_pagespeed can add flood your logfiles and their size will be significantly larger. Here is how you can exclude mod_pagespeed requests from access.log file
Aug 19 2020
How not to log certain requests in Apache
By default Apache logs all requests. Sometimes you need to exclude logging of certain requests from Apache‘s access.log. For example some automated requests coming and flood your log distorting your statistics. This short guide shows how you use Apache’s SetEnvIf directive to prevent Apache from logging such requests.
Jan 24 2020
Magento server performance configuration
There are best practices in Magento 2 performance configuration of operating system, MySQL, PHP and webserver. This article covers important configurations of all components that will speed up the Magento site.
Mar 28 2018
How To Create SSL Certificate for Apache on CentOS 7
An SSL certificate is an electronic ‘document’ that is used to bind together a public security key and a website’s identity information (such as name, location, etc.) by means of a digital signature. The ‘document’ is issued by a certificate provider such as GlobalSign, Verisign, GoDaddy, Comodo, Thawte, and others. In this article I will …
Mar 28 2018
Redirect HTTP to HTTPS in Apache
Let’s say you want all traffic to your website use secured connection. You can redirect HTTP to HTTPS in Apache like following: Using virtual hosts and Redirect directive When using SSL, you will frequently have at least two virtual hosts: one on port 80 to serve ordinary requests, and one on port 443 to serve …
Feb 15 2018
Apache Display Active Connections
To see active connections and performance of Apache server Status module can be used. A HTML page will be presented that gives the current server statistics in an easily readable form. If required this page can be made to automatically refresh (given a compatible browser). Another page gives a simple machine-readable list of the current …
- 1
- 2