Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Drupal multi site: Installation question

Posted on 2011-02-16
3
Medium Priority
?
479 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Read about how to choose the best possible content marketing agency to suit your needs. Content marketing has become an integral part of running a successful tech business, so it is wise to be informed.
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

661 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