Report this

What is the reason for this report?

Apache configuration not serving content

Posted on February 19, 2021

I was following this tutorial on connecting domains and setting up Apache virtual hosts. However, when I try to reach my domain, I get ERR_EMPTY_RESPONSE. I’ve tried a few fixes after searching around including altering the apache2.conf <Directory> blocks “AllowOverride” settings and adding my own to the domain name .conf file.

My configuration looks as follows:

<VirtualHost *:80>
	ServerName skasandbox.com
	ServerAlias www.skasandbox.com
	ServerAdmin admin@skasandbox.com
	DocumentRoot /var/www/skasandbox.com/public_html
	ErrorLog ${APACHE_LOG_DIR}/error.log
	CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

The directory settings I tried (inside said file) were:

	<Directory /var/www/ssandbox.com/public_html/>
	  Options FollowSymLinks
	  AllowOverride All
	  Require all granted
	</Directory>

There is a basic index.html file inside /var/www/ssandbox.com/public_html. I’ve set up an A record for bot @ and www pointing to my Droplet IP Adress. I can ping the site and get a response from the droplet. Any help would be greatly appreciated. I do not know what I’m doing wrong as most information for setting this up is nearly identical to the Digital Ocean tutorial.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.