[users@httpd] Re: three web on the same machine but I get the wrong page for a request using HTTPS (client side)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> <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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux