Does this virtual host setup look right?

April 24, 2019 404 views
Apache Server Optimization Automated Setups Ubuntu 18.04

https://qperfectdesign.com/r/k8

Above is my vhost file for the site I am working with.

When I go to the site I just get a 404 site / was not found on this server.

Here is my version info

https://qperfectdesign.com/r/k9

Not really sure what else to do ... I also added an entry to the hosts file.

4 comments
  • Made a few adjustments but still nothing .... https://qperfectdesign.com/r/ka

  • https://qperfectdesign.com/r/kc seems that it still isn't recognizing the new .conf file... I did use a2ensite to enable it and a2dissite to disable the default.

  • Those configurations look OK to me, although I have to admit I haven't used apache in sometime.

    The site also appears to load to a Hello World page when I load it up, I'm not sure if you need the :8080 configuration (although I assume you have it for a specific reason.

    Certainly, the existence of the DocumentRoot directory and that directories user:group ownership will cause problems. It appears from your logs that Apache is unable to find the directory you specified as the DocumentRoot, or it doesn't have the permissions to Read/Write/Execute.

  • Yeah, I figured out what the big part was. I had the 8080 in there from years ago I had something configured to operate via 8080 and put it in by habit. I had to add a second one for :443 which is why I wasn't able to see the site ... now I have to figure out why I am getting a ssl error. I tried reinstalling and using new certs but hasn't helped. I'm going to follow header info in a bit. Just going to grab some food. Amazing how hungry you get doing this when you stop and take a break.

2 Answers

This question was answered by @quentinpidcock:

Yeah, I figured out what the big part was. I had the 8080 in there from years ago I had something configured to operate via 8080 and put it in by habit. I had to add a second one for :443 which is why I wasn't able to see the site ... now I have to figure out why I am getting a ssl error. I tried reinstalling and using new certs but hasn't helped. I'm going to follow header info in a bit. Just going to grab some food. Amazing how hungry you get doing this when you stop and take a break.

View the original comment

Have another answer? Share your knowledge.