Forum Moderators: phranque
<VirtualHost *:80>
ServerName [domain]
ProxyPass /mv [10.100.1.1:8080...]
ProxyPass /mv [10.100.1.1:8080...]
</VirtualHost>
This works fine but in the browser the ip address shows up instead of the domain name. I am trying to use mod_rewrite to change the ip address back to the domain but I am not having any luck
RewriteEngine On
RewriteRule ^(.*)$ [domainname]/$1 [PT]
Is there a way to just have it rewrite the top level url to always be the same thing?
but in the browser the ip address shows up
And how? By a redirect issued by your application? By HTML links you're clicking on?
Why do you have two ProxyPass directives for the same URL-path /mv? I guess the second one should read ProxyPassReverse?
Not related, but I guess [pathtoapp] does not end with a slash (it shouldn't end with a slash because the path /mv has no trailing slash, too).