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>