N
N
Newto2020-12-08 04:21:14
Apache HTTP Server
Newto, 2020-12-08 04:21:14

Proxying in apache2 does not work how to fix it?

Good afternoon. There is an ubuntu server, there is an apache. There is a site, I'll call it mysite.com here.
I'm trying to ensure that when the page https://mysite.com/test is requested, the page https://mysite.com:3000/test is returned . I do this next. way: In the file /etc/apache2/sites-enabled/mysite_com.conf I write the following directives:

<VirtualHost *:443>

  DocumentRoot /var/www/www-root/data/www/mysite.com
  ServerName mysite.com

  SSLEngine on
  #SSLProxyEngine On // эту опцию и включал и выключал -- результат тот же
  ProxyRequests Off
  ProxyPreserveHost On
  RewriteEngine On
  
  SSLCertificateFile  /var/www/www-root/data/www/ssl/mysite_com.crt
  SSLCertificateKeyFile	 /var/www/www-root/data/www/ssl/privatekey.key
  SSLCertificateChainFile  /var/www/www-root/data/www/ssl/mysite_com.ca-bundle
      
  ProxyPass  /test https://mysite.com:3000/test
  ProxyPassReverse  /test https://mysite.com:3000/test
  
</VirtualHost>


I restart Apache, I go to https://mysite.com/test , I get a 404 error, while https://mysite.com:3000/test works
, i.e. Proxification doesn't work. Error.log is silent. What could it be and how to deal with it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2020-12-08
@shambler81

and what prevents you from proxying through php proxy so that the script on the git of only 30 lines
works fine and does not require crutches in Apache?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question