Solved

Drupal multi site: Installation question

Posted on 2011-02-16
3
469 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
  • 2
3 Comments
 
LVL 29

Expert Comment

by:Michael W
Comment Utility
See if this helps some...

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

Accepted Solution

by:
dirkil2 earned 0 total points
Comment Utility
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
Comment Utility
Found the solution myself.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
This script checks a path to see if a folder exists. If the folder does exist you will get output "The folder has previously been created. No action taken" If not it will create the folder. Then adds one user modify permission to the folder. It …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now