Why is www.domain forwarding to and exposing my server path?

Posted May 9, 2019 613 views
ApacheDNSUbuntu 16.04

This is a new one for me. Can’t figure it out. I have other domains on my server that are working just fine. They’re all set up the same way as far as I can tell.

The DNS has the same entries:

  • and A record pointing @ to the server
  • a CNAME record pointing www to @

The virtual host file has set as ServerAlias.

I disabled the htaccess file, even though it didn’t have any rules explicitly regarding this.

Yet still, when I go to, it works no problem. When I try to go to, it forwards me to:

Any idea what’s going on? How did I screw this up?

1 comment

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Turns out this was a purely local issue. Was working for other people and once I cleared my local cache, it was resolved.