aoe:apache
Apache
Authentication
Use .htaccess and .htpasswd
.htpasswd does not have to be in the same directory as .htaccess, but .htaccess must be in the directory or a sub.
In /etc/httpd/conf/httpd.conf, in the <Directory “/var/www/html”> section change to Allow Override All
SSL
using https://
listens on port 443
Generating a key (already done in SL)
openssl genrsa -out key.pem 1024 openssl req -new -key key.pem -out request.pem openssl req -x509 -days 360 -key key.pem -in request.pem -out certificate.pem
main apache configuration file in:
/etc/httpd/conf/http.conf
look for other configuration files called from previous config file in(after all the loads):
/etc/httpd/conf.d/ssl.conf
The key is already generated as referenced in the ssl.conf file by
SSLCertificateFile
/etc/httpd/conf/ssl.crt/server.crt
SSLCertificateKeyFile
/etc/httpd/conf/ssl.key/server.key
—-
Setup (apache2)
aoe/apache.txt · Last modified: 1970/01/18 07:09 by 127.0.0.1