You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Joost de Heer <sa...@xs4all.nl> on 2005/07/28 14:08:41 UTC
[users@httpd] Re: three web on the same machine but I get the wrong page for a
request using HTTPS (client side)
> <VirtualHost xxx.xxx.xxx.37:80>
> ServerName ultra.secret.com
> <VirtualHost xxx.xxx.xxx.37:443>
> ServerName www.secret.com
> Every thing works fine when I try to reach ultra.secret.com on HTTP
> protocole. But when I try to reach ultra.secret.com on HTTPS I get
> www.secret.com page. How can I configure apache so that I will get
> ultra.secret.com on HTTP even I request ultra.secret.com pages on
> HTTPS.
Because the https-site on that IP address is www.secret.com, and the
http-site is ultra.secret.com.
You could try mod_rewrite, and rewrite if the host-header for the request
is ultra.secret.com.
Something like
RewriteEngine on
RewriteCond %{HTTP_HOST} ultra.secret.com
RewriteRule (.*) http://%{HTTP_HOST}$1 [L]
Joost
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org