Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Drupal multi site: Installation question

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
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
Loops Section Overview
Screencast - Getting to Know the Pipeline
Suggested Courses

971 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