I have a Web site that contains several Web applications. Each Web application corresponds to a subdirectory of the document root whose name starts with "Web". (For example, /WebLulzGenerator
and /WebInternetHateMachine
are Web applications but /MoarHelperz
is not.)
I want that those Web applications be available only via HTTPS, so I did the following in my httpd.conf
file:
<Directory />
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<DirectoryMatch "^/Web[A-Za-z0-9]+">
Order allow,deny
Deny from all
</DirectoryMatch>
# In extra/httpd-ssl.conf, access to "^/Web[A-Za-z0-9]+"
# is reenabled, but only through HTTPS.
However, when I tested my configuration "http://myip/WebTest" opened correctly. What am I doing wrong?