Solved

Drupal multi site: Installation question

Posted on 2011-02-16
3
477 Views
Last Modified: 2012-05-11
I have a Drupal 6 multi-site installation on a Windows Server 2008 box. I have 3 domains domainA1, domainB and domainC and they all use different databases. So far so good. Now I have domainA2 that should behave like domainA1. It is basically an alias to domainA1.

Unfortunately when I add them as ServerAlias in the http.conf it doesn't work. In that case the default Drupal site is displayed.

I see two theoretical solutions to my problem:
1.) Make Apache change a request to domainA2 into domainA1
2.) Get Drupal to handle requests to domainA2 as requests to domainA1.

Unfortunately I have no idea how to accomplish that. Or maybe there is a third way. I don't care as long as I can get my site to work.

Many thanks in advance!

regards,
Dirk.
0
Comment
Question by:dirkil2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 29

Expert Comment

by:Michael Worsham
ID: 34915480
See if this helps some...

Multi-site on Windows
http://drupal.org/node/288126
0
 

Accepted Solution

by:
dirkil2 earned 0 total points
ID: 34940563
Found the problem myself. The solution is to have one main domain and then specify 301 forwards in an htaccess file like that:

RewriteCond %{HTTP_HOST} ^www\.domainA1\.de$ [NC] 
  RewriteRule ^(.*)$ http://www.domain.de/$1 [L,R=301]

Open in new window


Very important notice: You have to set 'AllowOverride All' in the httpd.conf otherwise it doesn't work. It took me 2 hourse of frustrating debugging to find this out.
0
 

Author Closing Comment

by:dirkil2
ID: 34978096
Found the solution myself.
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question