Skip to main content

Webserver configuration

Apache and Lighttpd instructions for configuring Drupal virtual hosts.

Apache Virtual Host Configuration
Enable the virtual host config file in /usr/local/apache2/conf/httpd.conf by uncommenting it:

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

Edit /usr/local/apache2/conf/extra/httpd-vhosts.conf and add an entry for your new Drupal install:
<VirtualHost *:80>
  ServerName www.domain.com
  #ServerAlias *.domain.com
  DocumentRoot /var/websites/projectname/drupal-5.10

  <Directory /var/websites/projectname/drupal-5.10>
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
  </Directory>

  ErrorLog /var/websites/projectname/logs/projectname-error_log
  CustomLog /var/websites/projectname/logs/projectname-access_log combined
</VirtualHost>

Lighttpd configuration

http://realize.be/drupal-lighttpd-clean-urls-made-easy