Checking a site without the domain URL
I'm moving a site from another host over to linode, so I have setup the following:
Added virtual hosts file etc
I have put the files and folders in the public_html folder. Is there any way I can test this without the domain name yet? i.e. IPaddress/website or something. At the moment I don't know if everything is working because I don't know how to test it. It may be a really obvious answer but I can't find it.
I have put the IP address on its own and it tells me 'It works', so I guess i'm on the right path.
Any help would be great!
In my hosts file I have:
127.0.0.1 localhost.localdomain localhost my.IP.add.ress myhostname.pixelatedphotographer.com myhostname
Does this look ok or have I stuffed up?
is this also the right place to put the files? I have phpmyadmin in there and that shows up fine.
I recommend not using phpmyadmin; instead, use something like
re: the document root. Sounds right; once you get your host file set up to test with you'll know for sure.
I have done all the settings in the host file, but it isn't working.
> 127.0.0.1 localhost.localdomain localhost
xxx.xxx.xxx.xx xxxx.pixelatedphotographer.com xxxxx
^^^ ^^^ ^^^^
Linode IP add Servername Servername
Do we have to change 'localhost.localdomain localhost' to something?
I don't have any errors when restarting, it seems to be happy - it just doesn't move.
In the default file, there is:
> DocumentRoot /var/www
Options Indexes FollowSymLinks MultiViews
allow from all
Should it be DocumentRoot /srv/
www.pixelated……. Because that is what my main setup is pointing to, not /var/ ?
Sorry to be a pain, just very new at all this!
what exactly should I enter here? it already has 127.0.0.1 localhost; do I add all the server info?:
xxx.xxx.xxx.xx xxxx.pixelatedphotographer.com xxxxx ?
Putting your LINODE PUBLIC IP ADDR for 18.104.22.168
***This is on your local workstation - NOT your LINODE.