Hi,
I have a problem with my WEB server. I can access it via port 80 (normal http), but I want to restrict access to special folder with SSL (https).
So, part of my httpd.conf looks like this:
Listen 80
DocumentRoot "/var/www/html"
Just the default values...
So everybody who comes to the web like this
http://192.168.1.1/, can see everything.
But if somebody wants to enter my subfolder (
http://192.168.1.1/admin/), it must be only with https (SSL). How can I specify this in /etc/conf.d/ssl.conf?
So far, this is my ssl.conf
# HTTPS with SSL
LoadModule ssl_module modules/mod_ssl.so
Listen 443
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /sslcert/server.cer
SSLCertificateKeyFile /sslcert/server.key
SSLVerifyClient require
SSLVerifyDepth 1
SSLCACertificateFile /sslcert/ca.cer
DocumentRoot "/var/www/html/admin"
ServerName 127.0.0.1
</VirtualHost>
Edit: Nevermind, got the solution:
<Directory /some/where/important>
SSLRequireSSL
</Directory>