Forum Moderators: phranque

Message Too Old, No Replies

Setting up 2 webpages on your local PC

         

Jon12345

10:22 am on Aug 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have two different websites, each of which is a different brand. When someone clicks on the Enquiry Form of Site A, it takes them to a webpage on the PC in my office. If they click on the Enquiry Form on Site B, they are taken to a webpage stored where Site B is hosted.

What I want is to have both Enquiry Forms on my local PC.

The URL for Site A's Enquiry Form is http://MyIPAddress/index.htm

How would I set it up for Site B?

Two important points:

1. I want to have both these sites appear as though they are independent of one another. i.e. I don't want my competitor to just check out the IP address and find out it is the same.

2. Is it possible to have Site A's Enquiry Form on PC1 and Site B's Enquiry Form on PC2, both PC's being on the same network? Both PC1 and PC2 have Win XP Pro on it. Also, I have a router.

Thanks,

Jon

[edited by: DaveAtIFG at 10:34 am (utc) on Aug. 21, 2004]
[edit reason] Delinked URL [/edit]

DaveAtIFG

8:54 pm on Aug 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Also, I have a router.
Most commonly, your router responds to IPs assigned by your ISP. It then assigns "local IPs" to computers on your local network, typically using Network Address Translation, and routes traffic to the appropriate machine.

You would need to secure a second IP from your ISP and configure your router to route each IP to the appropriate page/server/machine. It's probably best to insure your router CAN handle multiple IPs before doing anything else.

I think you would be wise to put BOTH forms where your sites are hosted so you have fewer worries about hardware failures, power failures, and system crashes.

Jon12345

10:42 am on Aug 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The forms have to be on my local PC as they are tied into databases and software that works on the enquiry.

What about if I set up a subdomain on Site B and have the enquiry form link to a page on that subdomain. But on cpanel, you setup the subdomain to point to an IP address on my local PC that already holds one of the pages? Would that work?

If the surfer clicked the link would it show up in the browser window with the IP address or the subdomain url?

mack

10:52 am on Aug 23, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



You mentioned you are running XP pro. Are you running IIS or Apache as your server. If you are using Apache would setting up virtual hosting be an option.

Mack.

Jon12345

11:17 am on Aug 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Using IIS. Need ASP scripts so it might not be an option.