Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2008
    Location
    Rancho Cucamonga, CA, USA
    Posts
    5
    Plugin Contributions
    0

    Default Problem with same host but different domains

    I have ZenCart installed on my machine in the office. I have the office router setup so the office machines are masqueraded to the internet, but I have a public IP that I DNAT forward to my machine.

    Machine: www2.private.network 192.168.1.104
    Internet access www2.public.com (public IP)

    The problem is the configure.php scripts predefine the host/site name with the private machine name, so I am unable to use the cart from the public internet side.

    Currently, I'm forced to use 2 different folders with ZenCart installed ( /private/ for the local office access, and /public/ for the internet access). The other problem is I can login to the admin page via www2.private.network in the office, but I get username/password errors when trying to login to the admin pages from www2.public.com.

    Any suggestions?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Problem with same host but different domains

    Why don't you just use the public address everywhere?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Feb 2008
    Location
    Rancho Cucamonga, CA, USA
    Posts
    5
    Plugin Contributions
    0

    Default Re: Problem with same host but different domains

    Quote Originally Posted by DrByte View Post
    Why don't you just use the public address everywhere?
    publicIP1 -> router1 -> (masq) private network w/15 networked devices
    publicIP2 -> router1 -> dnat to my desktop

    As you can see, I don't have the availability at this time to put the websever directly on the public IP.

 

 

Similar Threads

  1. v139h 2 different sites on same server but want to use same product images
    By ultravires in forum General Questions
    Replies: 10
    Last Post: 4 Apr 2013, 08:16 PM
  2. Different host Same database?
    By Derrian in forum General Questions
    Replies: 1
    Last Post: 30 Aug 2009, 07:59 AM
  3. Moving site contents to different host, but keeping the same database?
    By yelow in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 10 Feb 2009, 05:10 PM
  4. same product but different sizes
    By thebeard in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 14 Dec 2006, 03:10 AM
  5. Same product, but different prices?
    By Aspect in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 29 May 2006, 01:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg