apache rewrite subdomain

Published on

if you wanna just redirect a subdomain use this:         RewriteEngine on         RewriteCond %{HTTP_HOST} ^(intranet.)shinternet.ch$         RewriteCond %{HTTPS} !=on         RewriteRule ^(.*?)$ https://%{HTTP_HOST} [nc]

generate own SSL certificate for Apache

Published on

Generate Key and CSR openssl req -new -newkey rsa:2048 -nodes -keyout remote.key -out remote.csr Generate Cert: openssl x509 -req -days 965 -in remote.csr -signkey remote.key -out remote.crt **************************************** Generate private key: openssl genrsa -des3 -out server.key 1024 Create CSR: openssl req -new -key server.key -out server.csr Important: CN must be your hostname Remove passphrase from … Continue reading generate own SSL certificate for Apache