The access restriction by IP is a main feature of web server like Apache. You can specify easily, whom have access to a page and whom haven't, from the IP.
How to block / allow an IP in .htaccess ?
Apache 2.4
Require all granted
Require not ip 192.168.1.2
Require not i...
A new version of wrapper for TMDb API is now available in 1.6.2 version.
In this version, the main feature is the gestion of authentication and account methods for personnalize your experience with this API. You can now connecting to the platform, setting and gettting your favorites movies and...
Development's tests are a mandatory step for guarantee the validity and viability of the code. Sometimes, the tests writing are not trivial. For instance, a method can do an HTTP redirection :
class MyClass
{
/**
* Method to redirect to https://vfac.fr
**/
public function doRedire...
Several methods exist to redirect traffic from HTTP to HTTPS automaticaly.
Apache
From virtual host
The definition fo the redirection is simple, we must specify that all connection on standard port must be rewrite to HTTPS protocol.
...
ServerName subdomain.domain.tl...
When you reviewing your website with Google Pagespeed Insights, you could have the following error :
To fix this problem, a little modification of Nginx configuration is necessary :
In /etc/nginx/nginx.conf
file or in new file /etc/nginx/conf.d/gzip.conf
, add the following code :
gzip...