Apache setup for Drupal DevServer

Events happening in the community are now at Drupal community events on www.drupal.org.
dr.admin's picture

Hi, all

I had install dev server for our developers, with VirtualDocumentRoot in Apache conf for subdomain easy creation.
In that configuration we need to add "RewriteBase /" in .htaccess.
I thought that i can Add "RewriteBase /" in Apache conf, but it doesn't work.
It works only if i edit .htaccess and add "RewriteBase /" there.

Please, help me to add "RewriteBase /" in Apache conf.

Now my configuration of VirtualHost is:
<VirtualHost *:80>
ServerAdmin info@d7c.ru
ServerName drudev.ru
ServerAlias *.drudev.ru
DocumentRoot /home/webmaster/domain/drudev.ru
VirtualDocumentRoot /home/webmaster/domains/drudev.ru/%0
SuexecUserGroup webmaster webmaster
Alias /robots.txt /home/webmaster/domains/robots.txt
<Directory /home/webmaster/domains/drudev.ru>
Options FollowSymLinks
AllowOverride all
order allow,deny
allow from all
RewriteEngine on
RewriteBase /
</Directory>
ErrorLog /home/webmaster/domains/drudev.ru/logs/apache_errors.log
CustomLog /home/webmaster/domains/drudev.ru/logs/apache_access.log combined
php_admin_value open_basedir "/home/webmaster/domains:/tmp:."
php_admin_value upload_tmp_dir "/home/webmaster/domains/tmp"
php_admin_value session.save_path "/home/webmaster/domains/tmp"
AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml
AddType application/x-httpd-php-source .phps
</VirtualHost>

High performance

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: