I have started to work on my personal projects website now I would like to get opinions how to do few things which are quite specific
First : What is most practical way to do multiple sections to website ?
Address would be like
mysite.host.com/ (this is main section)
mysite.host.com/section1 (first section) [resides as subdirectory of main folder]
mysite.host.com/section2 (second section) etc... [same as above]
OR : Is there some way to configure apache so that those websites are in own directories but appear as subdirectories (/subdirectory) ?
Now since the server hosting websites is my own I can get full access to any configuration files needed so I can modify also apache settings as necessary.
Second which applies more to apache settings, but still would be nice to get to work.
How to get rewrite module to work on above mentioned sections if sections are subdirectories in main section folder.
So far I haven't got any luck and I am all out of ideas.
Third, is there information if TOMCAT JAVA server can benefit Drupal on LAMP server ?
My server specs
CPU 2.6 GHz AMD Athlon
2 Gigabytes of RAM
Array of disks
Ubuntu linux 8.04 (LTS) as server operating system.
I would be grateful of help with these issues and you have my thanks in beforehand.
Comments
Not specific enough
There are all sorts of possibilities with Apache site configurations. You can use aliases, subdirectories or whatever. Depends on what you actually *want* to achieve - which you don't say.
See the Drupal troubleshooting FAQ if you are having trouble with Drupal taking over subdirectories - there is a quick fix there.
However, the cleanest for me is subdomains.
If you own the name
mysite.comyou also own*.mysite.commeaning it's probably trivial to set upproject1.mysite.com,project2.mysite.comusing apache virtualhosts (see the apache docs - this is not a Drupal question). You may need wildcard DNS settings - but that's probably already set up. Depends. You may need help from a sysadmin.AND you can either direct them all at the same Drupal install and run multisites (best for Drupal) or you can point them at any folder you like (best for independence)
I can't imagine any reason you'd choose Tomcat over a stock Apache+PHP distro.
.dan. is the New Zealand Drupal Developer working on Government Web Standards
Drupal doesn't use the
Drupal doesn't use the filesystem to create URL hierarchies. Therefore there is no need to use rewrite rules to have separate site sections under different URLs. The path module in core will allow you to set any path you choose for a node. The book module in core will allow you to create a node hierarchy, as will the node_hierarchy module. Check out the pathauto module to automatically assign paths based on a node's location in the hierarchy.
The second issue won't be relevant if you do what I said above. However, if you already have two existing Drupal sites that you want to work this way, here's how I do it:
Install Drupal in some directory, say /drupal
Configure Drupal multisite for the two sections.
Create symlinks from the top level to /drupal (i.e. section1 -> drupal, section2 -> drupal)
For the third issue, I'm not really sure what you are asking. Drupal is a PHP application, Tomcat is a Java HTTP server. There is a PHP implementation written in Java, but I doubt it will perform better than mod_php or PHP in FastCGI.
multi sites with single install
Okay.
My original posting was query for instructions how to make apache to have multiple websites hosted on single machine using virtual hosting.
I know that apache has alot of possibilties but if I don't know where to look, I probably don't find what I am looking for.
Here is quite interesting guide I found out
http://www.howtoforge.com/multisite_drupal_installation_ubuntu
That guide gives quite good insight to installing drupal from scratch on desktop.... I would still prefer server edition as platform.
some homework done
okay I found this
http://httpd.apache.org/docs/2.2/vhosts/name-based.html
Now I need to apply that into practice