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 acer asus bios bsod computer crash desktop dns driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet laptop lcd malware memory monitor motherboard netgear network printer problem ram registry router slow software sound toshiba trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless xbox
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
apache, mod_ssl, multiple domains

Reply  
Thread Tools
DaijoubuKun's Avatar
Member with 75 posts.
 
Join Date: Oct 2005
Experience: Advanced
15-Apr-2008, 08: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 7,127 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
16-Apr-2008, 02: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, 08: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.
Reply

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.

Search Tech Support Guy

Find the solution to your
computer problem!




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



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 08:22 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.