|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
I have lots of virtual hosts but SSL cert. has been purchased only for "www". How do I redirect/rewrite the following:
1. https://*.abc.com to http://*.abc.com but 2. https://www.abc.com to go thru. thanks |
|
#2
|
|||
|
|||
|
You need to specify how the full directory path is layout for both https and http.
|
|
#3
|
|||
|
|||
|
Have you solved your problem yet? If not, please provide what I requested previously so I can write up the appropriate mod_rewrite code for you.
I need further details from you. |
|
#4
|
|||
|
|||
|
My full problem in detail - two parts:
1. I need https://www.abc.com to succeed but https://*.abc.com to redirect to http://*.abc.com <VirtualHost 1.2.3.4:80> ServerName abc.com ServerAlias *.abc.com www.abc.com VirtualDocumentRoot /home/httpd/%1 ..... </VirtualHost> Same thing for port 443 2. The next problem, I want some paths in the www.abc.com site to be accessed by https only, i.e. if somebody types in htttp, it should be redirected to https only for certian directories. For example, http://www.abc.com/secure/... should be redirected to https://www.abc.com. However, http://www.abc.com/test/.. should still succeed. Any help is greatly appreciated. Hemanth |
|
#5
|
|||
|
|||
|
Now I need to make sure whether you can get the environment variable "SERVER_PROTOCOL" correctly. Do you know how? If so, please provide the output of $ENV{'SERVER_PROTOCOL'} or <!--#echo var="SERVER_PROTOCOL"--> for both http and https.
|
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Massvirtual hosts and SSL redirection |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|