Hi people

I just installed Drupal 6 on ubuntu and am a little confused about the apache configuration

In my searches I read somewhere to put the following entry... in httpd.conf

<VirtualHost *:80>
    DocumentRoot /etc/drupal/6
    ServerName mysite.com
</VirtualHost>

(Instead of mysite it actually had DB name, Im not sure why, so I assumed it was supposed to be mydomain)

That entry points to a directory that picks up the following apache.conf

----------------------------------------------------

Alias /drupal6 /usr/share/drupal6
<Directory /usr/share/drupal6/>
Options +FollowSymLinks
AllowOverride All
order allow,deny
allow from all
</Directory>

----------------------------------------------------

My Questions are:

a) I am not sure why I dont just point it directly at the drupal site in the first httpd.conf? What is the point in going to /etc/drupal/6 for the conf?
b) I dont understand what the alias is for? It seems to affect my URL now that I have to put mydomain.com/drupal6. I thought alias was only to provide the application with the ability to store files some where other than document root but I am not sure of the reason. This now makes mydomain.com do a directory listing for the /etc/drupal/6 directory where people can browse the apache.conf etc...

My questions are probably more from lack of understanding of apache that drupal but if someone can shed some light... GREAT!

Thanks

tp

Comments

...you need an alias. Point apache to your drupal root, and Drupal looks for sites by matching foldername to servername in the /root-drupal/sites/ directory. If it finds a settings.php file there, it uses that. It falls back to the root-drupal/sites/default directory if no folder matches the servername request from apache.

Any aliases are that person's preference and are not necessary for drupal to work. I'd have to see the tutorial you were looking at to comment as to the point of that. Sometimes people want to have drupal 4.6, 4.7, 5, and 6 core installed on their servers and switch between them. Everyone has their own recipe.

-glass.dimly

Thankyou