Peter <nospam.luciver.DeleteThis@teleweb.at> wrote:
>
> NameVirtualHost server2.mydomain.at:80
> NameVirtualHost server1.mydomain.at:443
>
> but the Problem is still the same. If i go to <a style='text-decoration: underline;' href="http://server1.mydomain.at" target="_blank">http://server1.mydomain.at</a>
> i got a answer from server2 which is false because it should only answer
> on https Request..
Well, actually no. From what you wrote server2 is responding to http,
and you requested http, so the only VHost available on port 80 is
responding to your request. That is correct.
What I have in my configuration (one of my servers) is:
NameVirtualHost *:80
NameVirtualHost *:443
<VirtualHost *:80>
ServerName ....
ServerAlias ...
ProxyRequest Off
ProxyPass /application1/ http://internalip/application1/
ProxyPassReverse /application1/ http://internalip/application1/
ProxyPass /application2/ http://internalip2/application2/
ProxyPassReverse /application2/ http://internalip2/application2/
...many more...
</VirtualHost>
<VirtualHost *:443>
ServerName ....
ServerAlias ...
ProxyRequest Off
ProxyPass /application4/ http://internalip/application4/
ProxyPassReverse /application4/ http://internalip/application4/
...many more...
</VirtualHost>
Yes, I'm running multiple applications trought one proxy. Note that I use
* and not the ServerName, so the first VHost can respond to multiple
domain names.
Davide
--
| All true wisdom is found on T-shirts.
|
|
|<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Need Help with reverse Proxy