Accessing server by real IP address = no form posts?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
deffe
Forum Newbie
Posts: 2
Joined: Tue May 10, 2005 11:05 pm

Accessing server by real IP address = no form posts?

Post by deffe »

Running RedHat EL4, Apache 1.33, PHP5.

When using the server's real external IP I cannot complete a form post. It will keep running forever, as if the request does not know where to go. It works if I use the internal IP address or the dns name from internal or external.

It might be a configuration within httpd.conf or something with /etc/hosts but not sure.
traherom
Forum Newbie
Posts: 13
Joined: Tue Mar 15, 2005 6:43 am

Post by traherom »

If the server is the same one you're testing on, you'll need to add a entry in the hosts file. At least that's what its called under Windows. I don't remember for Linux... :lol:
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

First you need to make sure you can reach the host (try to ping it...)

If that doesn't work, you might want to look at your routing tables, and eventually use a sniffer to find out where the packets get lost in cyberspace ;))

If you can reach the host, you might want to show us the relevant parts from your httpd.conf :)
Post Reply