Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Linux and Unix
Tag Cloud
access audio black screen blue screen boot bsod connection crash dell desktop driver drivers dvd email error excel excel 2003 firefox hard drive hardware internet itunes keyboard laptop malware monitor motherboard network networking outlook problem recovery router safe mode slow sound spyware tdlwsp.dll trojan upgrade vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
apache, mod_ssl, multiple domains

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
DaijoubuKun's Avatar
Member with 75 posts.
 
Join Date: Oct 2005
Experience: Advanced
15-Apr-2008, 07:57 PM #1
apache, mod_ssl, multiple domains
I've posted the following on several forums, however, they all say it can't be done. I know for a fact this is NOT true and it can be done, because it has been done. Plus I hope I"m posting this in the correct area, because it is on a Linux Server.

I understand the fact that I can not have multiple SSL virtualhosts on the same IP and or port. I know the following can be done because hosting companies like 1&1 do this.

I have an SSL cert built for domain1.com so it can be accessed by http or https without any problems. However, because of this domain2.com can only be accessed by http. If I attempt https it will show domain1.com. What I want to have happen is if someone types https://www.domain2.com, it forwards to https://www.domain1.com/domain2.com.

I have setup a symlink so you can type https://www.domain1.com/domain2.com and it works, but how can I make this happen automatically with apache and not having to rewrite all my website's code?

I'm running Slackware 12 (kernel 2.6.22.2)
Apache 2.2.8 with mod_ssl
php 5.2.5 (if that really matters)
I don't see why anymore info would be needed here, but if it is I will reply.

Hope this all makes sense. Thank you all in advance.
__________________
I'm a creationist; I refuse to believe that I could have evolved from man.
tomdkat's Avatar
Computer Specs
Distinguished Member with 5,019 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
16-Apr-2008, 01:18 PM #2
Could you use the Apache mod_rewrite module to redirect the URL as you want?

Peace...
DaijoubuKun's Avatar
Member with 75 posts.
 
Join Date: Oct 2005
Experience: Advanced
16-Apr-2008, 07:48 PM #3
No. It seems that the rewrite's and redirects only work with subdirectories. I've been unable to use them for domain redirects.
Closed Thread Bookmark and Share

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 09:08 PM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.