I have a Drupal 6 multisite installation that is working great.
Drupal is installed at /var/www/drupal/ and the sites Drupal serves are all below that directory in /sites/domainname.com/.
I am adding a static HTML site to the same server. I have set up the directories and config files for the new virtual host. I think everything is correct. The new site is at /var/www/example2.com/htdocs/
These 2 URLs below are for the new HTML site outside Drupal:
http://test.example2.com/
http://test.example2.com/test.html
However, they are always redirected to this URL
http://test.example2.com/install.php
And that gives this error:
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
If I disable the Drupal sites (defined in /sites-available/default) in apache, the new HTML site will work. (I use "a2dissite default")
But when I enable the Drupal sites (via a2ensite default), I get the error above.
I can't figure it out. The logs just show a normal redirect. I don't see any errors (other than the repeated requests for /install.php).
Any ideas? Thanks.
contents of default:
ServerSignature Off
ServerTokens Prod
<VirtualHost *>
ServerAdmin webmaster@localhost
CustomLog /var/log/apache2/access.log combined
ErrorLog /var/log/apache2/error.log
LogLevel warn
DocumentRoot /var/www/drupal/
<Directory />
Order Deny,Allow
Deny from all
Options None
AllowOverride None
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride All
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Order Deny,Allow
Deny from all
Options none
AllowOverride None
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
<Directory "/var/www/drupal/">
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !-/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Options FollowSymLinks MultiViews -Indexes -ExecCGI -Includes
Order Allow,Deny
AllowOverride None
Allow from All
</Directory>
Redirect permanent old new
[... several of these]
Redirect permanent old new
</VirtualHost>
contents of example2's file:
<VirtualHost *>
ServerAdmin webmaster@example2.com
DocumentRoot /var/www/example2.com/htdocs
ServerName example2.com
ServerAlias *.example2.com
<Directory /var/www/example2.com/htdocs>
RewriteEngine Off
Options +Includes
AllowOverride None
Order allow,deny
Allow from All
AddType text/html .shtml
AddHandler server-parsed .shtml
DirectoryIndex index.shtml
</Directory>
# Logfiles
ErrorLog /var/www/example2.com/logs/error.log
CustomLog /var/www/example2.com/logs/access.log combined
</VirtualHost>
Comments
NameVirtualHost
Try NameVirtualHost in place of VirtualHost
That was it! Well, almost...
Thank you! Your comment helped me fix it.
First I replaced VirtualHost by NameVirtualHost and that failed. But then I read up on NameVirtualHost in the apache docs, and here is what I did:
BTW, I had a bounty on this question. Contact me so we can discuss and make payment arrangements. Thank you!
RewriteBase / ==>
RewriteBase / ==> RewriteBase /drupal
-----------------------------
www.linellae.com
I had already tried that
I had already tried that before, and it didn't work. It broke all the rewriting. I think the base must be off document root?
.htaccess redirect
I would probably look at the redirect commands in the .htaccess file. I remember having to update that to ignore my static pages when I served an old static site in parallel to my drupal site.
-------------------
http://www.PrivacyDigest.com/ News from the Privacy Front (Drupal)
http://www.SunflowerChildren.org/ Helping children around the world ( Drupal)
Almost the same ...
I have a Drupal 6 multisite installation that is working great.
Drupal is installed on HostGator shared hosting in the root directory, /public_html. The sites Drupal serves are all below that directory in /sites/example.com/; /sites/example2.com/; /sites/sub51.example.com/; etc. HostGator automatically set the add-on domain example2.com as a subdomain. I created a folder /sites/example2.com/ and http//example2.com invoked drupal install in the example2.com folder. Piece 'a cake.
I am adding a static HTML site example3.com to the same server. If I point it to the Hostgater automatic subdomain we create a drupal site. Anything else produces 'file not found' or tries to install Drupal in /sites/default/.
How can I point example3.com to /public_html/xyz/index.php?
Where do I place a .htaccess file to intercept, if that could solve the problem?
Thanks, Warren