A
A
Alexey2020-10-20 13:57:21
Apache HTTP Server
Alexey, 2020-10-20 13:57:21

How to proxy only URL only?

Hello.
Tell me how in apache to proxy only the main page (www.example.com) to another domain, and already subdirectories (www.example.com/path/to/file/) locally to the file system?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2020-10-20
@shambler81

mod_proxy is rarely used so much that I would not recommend using it at all , I
suggest you make this crutch something simpler
, for example, put a php proxy in index.php
(so that there are a sea of ​​\u200b\u200bexamples on the git and this is done in 3 lines)
actually that's all

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question