Apache 2

Exception on a web folder

<Location "/timeline">
 <Limit GET>
 Order deny,allow
 Allow from all
 Require valid-user
 Satisfy any


Restart Apache2 on a RedHat system

# /usr/local/apache2/bin/httpd -f /usr/local/apache2/conf/httpd.conf -k restart

Apache2 – SSL – Put a website on HTTPS

You must have certificates previously created in order to have an https website.

We add to the beginning of our vhosts configution file:

NameVirtualHost *:443
And we addin that same file:
 <VirtualHost *:443>
 SSLEngine on
 SSLCertificateFile    /usr/local/apache2/conf/server.crt
 SSLCertificateKeyFile /usr/local/apache2/conf/server.key

Keep in mind that Apache have in it cache these certificates. If you modify them, you must restart Apache even if they still have the same names as it is previously configured in the vhost configuration file.

Leave a Reply

Your email address will not be published. Required fields are marked *