Report this

What is the reason for this report?

Server domain name replaced with IP address

Posted on January 20, 2020

I have installed LAMP server and set up website to get resolve the appropriate IP address so when I connect to a server with it’s domain name with an IP address in address bar. It looks like this; /etc/apache2/sites-available/default

NameVirtualHost *:80

<VirtualHost *:80>
        ServerAdmin ...
        ServerName mydomainname.irrelevant.to.the.question

        DocumentRoot /var/www
...

I think that was invented fix that behavior because I also recheck the 3xx redirect path. Path Redirect/RedirectMatch/RewriteRule directives . But in the php application apache won’t misbehave this kind of redirection with their tag Redirect or RewriteRule as I mentioned in the configure file. What else is required?

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.