3

I've setup a LAMP server with Ubuntu. It's a dedicated server hosted by online.net.

Now, I've purchased a domain name and I've created a A registar mapping to my server's IP address http://88.191.157.10/.

If you browse to this IP address, this will reach my website (the 404 is expected). However, if you browse to the website using the dns

http://samuel-*-***.fr

then you end up on a parking page of online.net...
I did a dig on the dns and it returns the correct IP address. So I'm not sure what I'm missing here...

Note: that if on my server I browse to the website using the domain name, then it works. So it must be something simple I've missed.

Edit: since it seems to come from my apache web config, here it is :

<VirtualHost 88.191.157.10:80>
ServerName samuel-***-*.fr
ServerAlias www.samuel-**-*.fr
ServerAdmin [email protected]
DocumentRoot /var/www/ePhotograph/web
DirectoryIndex app.php
<Directory "/var/www/ePhotograph/web">
 AllowOverride All
 Allow from All
</Directory>

<IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteRule ^(.*)$ app.php [QSA,L]
</IfModule>

12
  • I get a 404. Are you sure it's not just your browser cache that fools you?
    – l3dx
    Aug 15, 2013 at 12:15
  • Sounds like you have a local DNS cache issue - works for me.
    – Oli
    Aug 15, 2013 at 12:16
  • @Sam your server isn't aliasing www. starting with your full domain name. Is a misconfiguration, but if you don't tell us the server you are using, we wouldn't be able to help you.
    – Braiam
    Aug 15, 2013 at 12:37
  • 1
    Have you cleared your browser cache yet?
    – l3dx
    Aug 15, 2013 at 13:06
  • 1
    try with a different browser (or smartphone or tablet or whatever) to verify it's not just browser DNS cache
    – Cubiq
    Aug 15, 2013 at 13:13

1 Answer 1

0

@Eliah, I cannot edit my original answer as it's been deleted. I'll write it here again because I believe it is the answer:

It was indeed the browser dns cache. You guys were right.

I basically walked away from computer and tried again a few hours later and it just worked. I guess if I had tried with a different browser it would have work too.

Thanks for helping !

Not the answer you're looking for? Browse other questions tagged .