By skasolutions
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.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello, @skasolutions
Could you please clarify if you’re still experiencing the issue? At the moment the website is loading just fine tested from my end. The site is serving a default WordPress page.
Regards, Alex
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.