Accessing a website on a shared hosted platform

detourFor those in the website business, it can be abit un-nerving if you have to migrate websites only to realize you cannot test them unless they re-point them to the new A-Server records and using http://<ip-address&gt; is just pointless.

The reason this is possible is because when using shared hosting, the hostname parameter is used to identify which website should be accessed and your server knows how to route and server websites based on “hostname” and not IP address alone.

Three options will work;

From the browser;

http://<website-ip-address>/~cpanel username

e.g for kujahapa i would use; http://50.87.32.46/~kusername where kusername is the kujahapa cpanel username, for example purposes i use a dummy username so kusername will not route anywhere

Over CLI on a *nix we have another options

$ wget –header ‘Host:kujahapa.com’ http://50.87.32.46

$ curl –header ‘kujahapa.com’ http://50.87.32.46

Hope this helps.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s