Category Archives: Apache

Letsencrypt error – Server only speaks HTTP, not TLS

If you have encountered following error, Domain: xxx.xxx.com Type: malformed Detail: Failed to connect to xxx:443 for tls-sni-01 challenge: Server only speaks HTTP, not TLS Make sure you have following lines in your Apache virtual host conf file SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key Include /etc/letsencrypt/options-ssl-apache.conf 0

Read More »

Virtualhost code in Apache

<VirtualHost www.website.com:80> ServerAdmin root@localhost DocumentRoot /var/www/website/www_website_com/ ServerName www.website.com ServerAlias www.website.com ErrorLog /var/www/website/logs/www.website.com.error_log CustomLog /var/www/website/logs/www.website.com.access_log common <Directory /var/www/website/www_website_com/> AllowOverride All Order allow,deny Allow from all Require all granted </Directory> </VirtualHost> 0

Read More »

Alias code in Apache

If you want to add alias in apache, place this code in apache.conf or httpd.conf (depending on your OS) Alias /alias_name/ “/var/www/alias_dir/” <Directory “/var/www/alias_dir”> Options Indexes MultiViews FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> 0

Read More »