Jump to content

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/"?

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.