R
R
RJs452014-12-18 13:37:47
PHP
RJs45, 2014-12-18 13:37:47

How to change the server address for the script?

I have a web server on vmware virtual machine under ubuntu + nginx + php + php-fpm. It is accessible from the host machine at 192.168.146.134.
in the hosts of the host Windows it is written site.local 192.168.146.134
Is it possible to make it so that when accessing site.local, the script that is being executed thinks that the address of the server on which it is running is not 192.168.146.134, but 127.0.1.8?
I will explain why this is: I am developing modules for WHMCS. They have problems with the license and it fits into the documentRoot and the IP address of the server. It became necessary to transfer from the old server (where everything happened locally and the address was 127.0.1.8) to the new ones, where the IP is 192.168.146.134.
You can't reissue a dev license.
UPD: The source code was run through ioncube and it is impossible to find out where it takes the IP from.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question