Answer the question
In order to leave comments, you need to log in
How to setup proxy in apache?
There are two servers with apache - 192.168.0.138 and 192.168.0.92
All http requests come to the first one. One subdomain needed to be moved to another server on the local network. In the httpd config I wrote the following:
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName rt.site.ru
ProxyPass / http://192.168.0.92/
ProxyPreserveHost On
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html
<Directory /var/www/html>
Options FollowSymLinks
AllowOverride All
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question