Answer the question
In order to leave comments, you need to log in
How to make a redirect from a local server to a remote one?
By the local machine the Apache is lifted, the website site1.ru is configured. There is a remote site site2.ru. I send ajax request to site1.ru/test.php. How can I make the local Apache, seeing this request, redirect it to site2.ru/test.php and return the answer from it to me?
Answer the question
In order to leave comments, you need to log in
ProxyPass / http://api.site2.ru/
ProxyPassReverse / http://api.site2.ru/
<Proxy http://api.site2.ru/>
Order deny,allow
allow from all
</Proxy>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question