Question

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

Posted May 9, 2019 318 views
Apache DNS Ubuntu 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 www.domain.net 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 domain.net, it works no problem. When I try to go to www.domain.net, it forwards me to:

https://www.domain.net/var/www/domain.net/public_html/://domain.net/var/www/domain.net/public_html/:/domain.net/var/www/domain.net/public_html/:/domain.net/var/www/domain.net/public_html/:/domain.net/var/www/domain.net/public_html/:/domain.net/var/www/domain.net/public_html/:/domain.net/var/www/domain.net/public_html/:/domain.net/var/www/domain.net/public_html/:/domain.net/var/www/domain.net/public_html/:/domain.net/var/www/domain.net/public_html/:/domain.net/var/www/domain.net/public_html/:/domain.net/var/www/domain.net/public_html/:/domain.net/var/www/domain.net/public_html/:/domain.net/var/www/domain.net/public_html/:/domain.net/var/www/domain.net/public_html/:/domain.net/var/www/domain.net/public_html/:/domain.net/var/www/domain.net/public_html/:/domain.net/var/www/domain.net/public_html/:/domain.net

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.

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.

Submit an Answer