N
N
Nikolai Savelyev2018-02-12 06:40:12
linux
Nikolai Savelyev, 2018-02-12 06:40:12

How to exclude .well-known from apache procuration?

Once upon a time, I set up proxying of one site - the 80th port of the router was already forwarded, and I needed access to it on another server. It all looked like this:

<VirtualHost *:80>
    ServerAdmin [email protected]
    ServerName rt.site.ru
    ProxyPass / http://192.168.0.92/
    ProxyPreserveHost On
</VirtualHost>

It was necessary to fasten SSL from letsencrypt for the domain, and then the plug.
The connection takes place on a proxy, which means that the certificate must be there. Every time manually put laziness.
How to technically exclude a request to .well-known from proxying?
There is no desire to remake something on mod_rewrite.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Teremshonok, 2018-02-22
@TerAnYu

Maybe so:

<VirtualHost *:80>
    ServerAdmin [email protected]
    ServerName rt.site.ru
  
  ProxyPass /.well-known !  # добавляем исключение
  
    ProxyPass / http://192.168.0.92/
    ProxyPreserveHost On
</VirtualHost>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question