Jump to content

access domain via IP in multi-domain server


sneskid

Recommended Posts

I'm trying to write a script that can connect to a domain using it's IP address.

But I'm dealing with a multi-domain server, so the IP address needs an additional string describing which domain I want to access.

I've seen it done before but forgot the syntax.

It's an apache server with cPanel.

 

Help? Thanks.

 

don't worry about the code, it's the url syntax that im asking about.

 

Say you ping "www.electionsites.ca" from the command prompt in windows. you'll get a reply from 74.52.10.226.

Now if you use a browser to visit "http://74.52.10.226" you will see a cPanel screen not electionsites.ca, because the server hosts more than one domain.

my question is how to access the site using the ip syntax.

Something like "http://74.52.10.226/electionsites/"?

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.