Tag: apache

.htaccess: Option FollowSymLinks not allowed here

I moved from mod_php to fcgi style hosting and got the following in Apache error log when I tried to open one of my websites: [Tue Nov 08 08:34:08.357359 2022] [core:alert] [pid 19149] [client 95.158.43.63:14405] /home/domain.com/public_html/.htaccess: Option All not allowed here [Tue Nov 08 08:35:58.058962 2022] [core:alert] [pid 14190] [client 95.158.43.63:46366] /home/domain.com/public_html/.htaccess: Option FollowSymlinks not …

Continue reading

Implementing Security Headers in Azure App Service

Azure-App-Service

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 …

Continue reading

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:

Copy

Continue reading

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 …

Continue reading

Virtualmin: no Manage SSL certificate option

Virtualmin-SSL-certificate-option-enable

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 …

Continue reading

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:

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

Continue reading

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.

Continue reading

Magento server performance configuration

magento-server-perofrmance-setup

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.

Continue reading

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 …

Continue reading

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 …

Continue reading

Load more