I am the newbie to Drupal. I am planning to set up Drupal for my multiple sites. But it cannot be successfully created.

Domain:
abc.homeip.net

Server:
QNAP TS-119 Turbo

File Structure in Drupal:
/Sites/abc.homeip.net.123
/Sites/abc.homeip.net.456
=====================

There are .conf for my NAS.
Shwon as below.
=====================

ServerName abc.homeip.net
ServerAlias abc.homeip.net, abc.homeip.net/123, abc.homeip.net/456
DocumentRoot "/share/Qweb/abc/"
RewriteEngine On
RewriteOptions inherit

Options FollowSymLinks MultiViews
Order allow,deny
Allow from all


=====================

the code in .htaccess in drupal
=====================
# RewriteBase/
# Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^/123/(.*)$
RewriteRule ^(.*)$ /123/index.php?q=$1 [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^/456/(.*)$
RewriteRule ^(.*)$ /456/index.php?q=$1 [L,QSA]
=====================

I have the above setting, drupal also CANNOT run the installation under my 123 or 456 sub-folder,
do you have any idea?

Thanks bro~~~~~~

Comments

CoderGirl’s picture

OK, I am pretty new to this too, and I have not worked with your host. But I think I can help.

1. Put all the drupal files (that you download from here) in your root directory.
2. Whatever your main url is will be the "default" folder
3. Name folders after each of your other sites (mysite.com, mysite2.com)
4. Direct all of your sites to the root directory of your host.
5. Copy the settings.php & default.settings.php from your default folder into all the other folders
6. Visit each site in your browser and follow the instructions to set up the sites.

Put the modules you want to use for the sites in sites/all/modules/ then you can use any module you install on any of your sites

Put your themes for each site in sites/mysite.com/themes or sites/all/themes depending on if you are going to use the theme on more than one site.

Hope this helps....

vintageb’s picture

"4. Direct all of your sites to the root directory of your host."

Why step no 4?

CoderGirl’s picture

Maybe I said it so it was hard to understand... you direct all your URL's to your host, drupal knows which site is which by the name of he folders.

Anonymous’s picture

if you're using symbolic links, do you need the Rewrite in the htaccess file?

kfwong5e’s picture

Added the Alias command in config file of my NAS server, it is solved.


ServerName xxx
ServerAlias xxx
DocumentRoot "docPath"

Options FollowSymLinks MultiViews
Order allow,deny
Allow from all

Alias /site1 /docPath
Alias /site2 /docPath

Thanks all brothers' help.......

seoforu’s picture

How do I add RSS Feed and Feed Aggregator in drupal?

http://www.a1webdesigner.com/