1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Rep Power

    Dedicated server configuration.


    I manage a website that is found on a dedicated server. I use ispconfig as administration panel.

    My problem is:
    If use on my website CURL for example in index.php and request another page from my website eg index2.php it says that host not found.

    I tried php function uses gethostbyname with my website name parameter but I did not receive an IP, a sign that does not find the host, which is a little absurd because the i can enter the website.

    Another strange thing is that if I try CURL or gethostbyname from another website and another host to my site everything is working.

    It's like my site does not know of its existence.

    Another thing to mention is that if you try to enter the site using my IP address says server not found.

    What should I change in ispconfig or what I can do to solve this problem?

  2. #2
  3. No Profile Picture
    Lost in code
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2004
    Rep Power
    If you edit the file /etc/hosts as root you can add an entry that maps your domain name to; that should at least fix the problem with the name not resolving. I'm not familiar with ispconfig so I don't know if there is some way to do it from that.

    Originally Posted by Spad
    Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around
  4. #3
  5. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Rep Power
    Unless you specially configured ispconfig3 your website won't be accessible by IP, only by name.

    As for your other problem, my guess is the router/firewall on your dedicated server doesn't allow "loop-around" tcp access. It can be a security hazard for a network admin to allow a computer "inside" the network to access itself via the public ip.

    Here's one page of interesting reading, although about a different product.

    Doug G
    I've never been able to appreciate the sublime arrogance of folks who feel they were put on earth just to save other folks from themselves .." - Donald Hamilton

IMN logo majestic logo threadwatch logo seochat tools logo