10-31-2011 09:32 PM
For the life of me! I can't get the vhosts to work in apache 2.2. I have them specified in the httpd.conf file directly is that what is messing them up?
11-03-2011 02:09 PM
No using them in httpd.conf is fine. You probably have the virtualhost part specified wrong. Here is one I use to do a redirect, notice the *:80 in the virtualhost tag:
redirect permanent / https://www.domain2.com
Make sure you are using the *:80 unless you need to specific a specific IP. Using a wildcard (the *) will help esucre it will work even if there is any NAT or firewalling you might be doing.