R
R
Ramil Z.2016-04-27 13:48:55
Apache HTTP Server
Ramil Z., 2016-04-27 13:48:55

Apache2 - url router. How to direct only certain addresses to a certain folder?

Hello!
The essence of the question is as follows:
1. There is a domain: http://backend.example.com- /var/www/backend
2. And also: https://example.com- /var/www/frontend
It is necessary that some addresses (for example, https://example.com/payment/success) are directed to the /var/www/backend folder
How to do this did not find.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2016-04-27
@r_zaycev

As an option (as a crooked option):
a symlink in the /var/www/frontend directory to /var/www/backend ; mod_rewrite rule, from certain requests (/payment/success) to this symlink.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question