Answer the question
In order to leave comments, you need to log in
How to make a correct redirect in mod_proxy apache2?
Good day to all!
I have an Apache2 server that uses mod_rewrite for redirects in an .htaccess file located in the /var/www/html directory,
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^/$ [NC]
RewriteRule ^ humhub/index.php [NC,L]
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/var/www/html"
ServerName corp.test.ru
ServerAlias corp.test.ru www.corp.test.ru
ProxyRequests Off
ProxyPreserveHost On
ProxyVia full
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://192.168.6.93:14799/humhub/
ProxyPassReverse / http://192.168.6.93:14799/humhub/
</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