Answer the question
In order to leave comments, you need to log in
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>
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question