I have a php script script which should be accessible from multiple ip's (http://xxx.xxx.xxx.xxx/~myfolder/myscript.php), pls. tell how to achieve this on a CentOS 5.5 (64bit) install running apache.

I will be calling the script from another PHP script on same server.


Yes, this is achieved with Apache's configs. Most installs default to listening on all bound IPs any way.


You have to configure your server that he listen on 2 ip-addresses.

When you define your vhost you can make *:80 then your server listen to all ips.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.