Forum Moderators: phranque
However on domain2 the .htacess file seems to be beeing ignored.
Here is a sanitised chunk of the httpd.conf file
VirtualDocumentRoot /web/pathway/%0
NameVirtualHost 123.23.123.123
<VirtualHost 123.23.123.123 >
ServerAdmin postmaster@domain1.com
DocumentRoot /web/pathway/www.domain1.com/
ServerName domain1.com
ErrorLog /var/log/domain1.com-error_log
CustomLog /var/log/domain1.com-access_log common
ErrorDocument 404 /404/index.html
<Directory "/web/pathway/www.domain1.com">
Options Indexes FollowSymLinks ExecCGI Includes
AllowOverride All
</Directory>
Options Indexes FollowSymLinks ExecCGI Includes
</VirtualHost>
<VirtualHost 123.23.123.123 >
ServerAdmin postmaster@domain2.com
DocumentRoot /web/pathway/www.domain2.com/
ServerName domain2.com
ErrorLog /var/log/domain2.com-error_log
CustomLog /var/log/domain2.com-access_log common
ErrorDocument 404 /404/index.html
<Directory "/web/pathway/www.domain2.com">
Options Indexes FollowSymLinks ExecCGI Includes
AllowOverride All
</Directory>
Options Indexes FollowSymLinks ExecCGI Includes
</VirtualHost>
The VirtualDocumentRoot supports the domains that do not need url forwarding.
Interestingly when I comment it out Domain2 shows Domain1's content.
Can anyone tell me what is wrong?
Hopefully, an expert will check in on this thread. In the meantime, see [httpd.apache.org...] and [httpd.apache.org...] for more info.
Jim