When using Webfonts via @font-face or other CSS3 methods, some browsers like Firefox and IE will refuse to embed the font when it’s coming from a 3rd party URL because it’s a security risk. The solution is very simple, just add a few lines in your .htaccess file to permanently solve the problem. Please add
Continue reading Solve webfonts CORS error
Category: Apache
Create a Self Signed SSL Certificate
When we request a new certificate, we can specify how long the certificate should remain valid by changing the 365 to the number of days we prefer. As it stands this certificate will expire after one year. The most important line is Common Name. Enter your official domain name here or, if you don’t have
Continue reading Create a Self Signed SSL Certificate
Apache: the Status module
The Status module allows a server administrator to find out how well their server is performing. A HTML page is 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
Continue reading Apache: the Status module
Google PageSpeed Module
PageSpeed speeds up your site and reduces page load time. This open-source webserver module automatically applies web performance best practices to pages and associated assets (CSS, JavaScript, images) without requiring that you modify your existing content or workflow. Features: Image Optimization (Compression and Resizing) CSS & JavaScript Concatenation, Minification, and Inlining Asset Caching Deferred Loading
Continue reading Google PageSpeed Module
Apache: create a password protected directory
It’s is useful to protect a directory with a password and to allow a directory index. In order to this you need to create a .htaccess file in the directory you created, with these lines: AuthType Basic AuthName "Restricted Files" AuthBasicProvider file AuthUserFile /usr/local/apache2/bin/.htpassword Require valid-user Options +Indexes IndexOptions FancyIndexingAuthType Basic AuthName "Restricted Files" AuthBasicProvider file
Continue reading Apache: create a password protected directory