Hi,
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride all
Order allow,deny
Require all granted
Allow from all
Why use Apache 2.2 directives (Order..., Allow...) with Apache 2.4?
There is no point except to create problems.
The Require directives are sufficient and allow all the possibilities you want.
On the other hand:
For https, the Apache listening port must not only be port 443, but also port 80.
The Apache documentation on this subject specifies that you need both VirtualHost, one on port 80 and the other on port 443.
We can read in the file wamp64/bin/apache/apache2.4.xx/conf/extra/httpd-ssl.conf
# This is the Apache server configuration file providing SSL support.
# When we also provide SSL we have to listen to the
# standard HTTP port and to the HTTPS port
To avoid, as they say in my house, mixing wipes and towels, the VirtualHost port 80 are defined in the httpd-vhosts.conf file and the VirtualHost https port 443 are defined in the httpd-ssl.conf file.
So you need to add a VirtualHost port 80 (ServerName application.orgname.ca) in httpd-vhost.conf.
And, if you want to force https mode, in this VirtualHost port 80, before <Directory...>, you insert:
<IfModule ssl_module>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ 'https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]'
</IfModule>
Without quotes ' on line 03. If you don't put the quotes, it becomes a link on the forum!
------------------------------------------------------------------------------------------------------------
Wampserver 3.3.0 32 bit - Apache 2.4.54.2 - PHP 8.2.4…7.4.33 - MySQL 5.7.40 - MariaDB 10.5.13/10.6.5
Wampserver 3.3.0 64 bit - Apache 2.4.54.2 - PHP 8.2.4…7.4.33 - MySQL 5.7.40/8.0.31 - MariaDB 10.5.17/10.10.2
PhPMyadmin 5.2.1 - MysqlDumper 1.24.5 on W10 Pro 64 bit
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »
Edited 1 time(s). Last edit at 02/24/2023 10:19AM by Otomatic.