No-Ip with Cloudflare and Apache

Hi,

I bought a domain (marketmile.app) from godaddy and I configured it to point to Cloudflare through its nameservers. Then I configured Cloudflare adding the A record (which points manually to my home server IP) and added the vhost configuration in apache.

By the way
My host is a local computer with XAMPP (Apache version 2.4).

Using No-Ip the site works as you can see here;
No-Ip link

but If I use the domain
marketmile.app

it does not. Both http://mileapp.servehttp.com & http://marketmile.app point to the same IP.

In vhosts in apache I have this;

<VirtualHost *>
DocumentRoot "C:\XAMPP\htdocs"
ServerName localhost
<Directory "C:\XAMPP\htdocs">
  Require local
</Directory>
</VirtualHost>

<VirtualHost *>
 DocumentRoot "C:\xampp\htdocs\marketmileapp"
 ServerName mileapp.servehttp.com
 ServerAlias www.mileapp.servehttp.com
<Directory "C:\xampp\htdocs\marketmileapp">
	Require all granted
</Directory>
</VirtualHost>

<VirtualHost *>
 DocumentRoot "C:\xampp\htdocs\marketmileapp"
 ServerName marketmile.app
 ServerAlias www.marketmile.app
<Directory "C:\xampp\htdocs\marketmileapp">
	Require all granted
</Directory>
</VirtualHost>

My question is…What I’m doing wrong. Why if the domain through Cloudflare and the No-Ip point to the same IP, only the No-Ip Works…

Thanks for reading this.

marketmile.app is in DNS-Only mode, so the issue is with your server configuration.

stackoverflow.com is a good resource for troubleshooting server configuration issues.

I don’t agree with that. The server is working fine to mileapp.servehttp.com which points to the same IP that marketmile.app is pointing to. If you read the apache Virtual hosts you can see that they point to the same location but only with marketmile.app it doesn’t work. The host is working for everything except for Cloudflare

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.