I'm not really sure if this is a question to ask in this Group or not, but I'm hoping to be surprised here. I've noticed that a lot of the guys in our group are quite knowledgeable so I thought I'd give it a try.
We currently have a Linux set-up as our new web server once the new website launches in the next few months. In the root www folder (/root/srv/www/htdocs) I have multiple folders in there:
- claroline: online classroom software
- drupal_root: this will be the main drupal install that will have the main website and any other mini site stuff in the near future
- drupal_root_backups: contain backups of the drupal_root folder
- drupal_v1: this was a test drupal install that I did a while back to start testing out modules and run a survey to some employees
- etc, etc, etc
Currently in order to get to the drupal_root folder I need to type in "newwebserver.domain.edu/drupal_root." What I would like it to do is to forward anyone that attempts to connect directly to the server to that drupal_root folder. That part is easy though, I also would like someone to be able to type in a classroom.domain.edu (which is set on the DNS server to forward to that same IP address) to forward to the "claroline" directory in the "/htdocs" folder.
I did some messing around today with Virtual Hosts in the httpd.conf file to see if I could get something working and was unsuccessful. I could get it to forward correctly but the main page would work but any secondary pages would give an error. Here is the config file that I was messing around with. I commented everything out just to get the server back to working order for the time being until I figured something out.
#################################################
# Added on Dec 20th 2007 by Andrew Ariotti
#NameVirtualHost
#<VirtualHost *>
# DocumentRoot /srv/www/htdocs/drupal_root
# ServerName newwebserver.datc.edu
# <Directory /srv/www/htdocs/drupal_root>
# Allow from all
# Options +Includes +Indexes +FollowSymLinks
# AllowOverride all
# </Directory>
#</VirtualHost>
#<VirtualHost *>
# DocumentRoot /srv/www/htdocs/claroline
# ServerName classroom.datc.net
#</VirtualHost>
#<VirtualHost *>
# # primary vhost
# DocumentRoot /srv/www/htdocs/drupal_root
# RewriteEngine On
# RewriteRule ^/. /srv/www/htdocs/drupal_root$1
# ServerPath /drupal_root/
#</VirtualHost>
#
#<VirtualHost *:80>
# DocumentRoot /srv/www/htdocs/drupal_v1
# ServerName datcsite.site
# ServerAlias *.datcsite.site
# <Directory /srv/www/htdocs/drupal_v1>
# Allow from all
# Options +Includes +Indexes +FollowSymLinks
# AllowOverride all
# </Directory>
#</VirtualHost>
#################################################Thanks in advance for your guys' help. I wish I could learn more about this kind of stuff. :)
--Andrew

Comments
I figured this out, if
I figured this out, if anyone is interested in seeing what I did to get it working then let me know and I can post it here.
Andrew (amariotti)
I'd be interested in seeing
I'd be interested in seeing a short write-up (don't kill yourself though).
Kyle Mathews
Kyle Mathews
use ServerPath?
You have one entry for ServerPath to point to drupal_root, but I think you need to eliminate the last forward slash. So
ServerPath /drupal_root
then add similar entries where appropriate to direct users to the right directories.
I'm an Apache noob myself - was I close?