SetEnvIf User-Agent ^Browser\ v3\.14 found_it <Directory /var/www/restricted> Order Deny,Allow Deny from all Allow from env=found_it </Directory>
Category: Servers of Web: Apache2
URL Rewriting doesn’t seem to work in .htaccess – Apache2 ))
Did you check directives in your DocumentRoot ? )))
Options Indexes FollowSymLinks MultiViews AllowOverride all #This was 'None' before, change it to 'all' Order allow,deny allow from all
Apache: .htaccess redirect from HTTP to HTTPS.
RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.(.*) RewriteRule ^.*$ https://%1/$1 [R=301,L]
OR
“Apache: .htaccess redirect from HTTP to HTTPS.”Continue reading
Disabling listening IPv6 in config file of Apache2 server
By default, Apache will listen on all IPs, both IPv6 and IPv4.
This is controlled by the Listen directive:
root@localhost ~ # egrep -r Listen /etc/apache2 ... /etc/apache2/ports.conf:Listen 80 ... root@localhost ~ #
To turn off IPv6 in Apache, just change the Listen directive to:
Listen 0.0.0.0:80
This will limit Apache to listening only to IPv4 connections. Repeat this for port 443 if you want to stop Apache from listening for HTTPS on IPv6.