You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "DeSouza, Wellington Oliveira" <wd...@highpoint.edu> on 2004/03/29 22:26:38 UTC
[users@httpd] Problem with Virtual Hosts
I have a very bad problem with my Virtual Hosts.
Keep in mind that I have just upgraded to Apache2.0
First let me list the relevant part of my http configuration:
----------------------------------------------------------
NameVirtualHost *:80
<virtualHost *:80>
ServerName www.highpoint.edu
DocumentRoot /var/www/html/
ServerAdmin webmaster@highpoint.edu
RewriteEngine On
RewriteRule /athletics(.*) http://www.highpointpanthers.com$1
[R,L]
</VirtualHost>
<VirtualHost *:80>
ServerName www.revolutionaryeurope.org
DocumentRoot /home/admin/wdesouza/public_html
ServerAdmin webmaster@highpoint.edu
ErrorLog logs/rev-eorope-error_log
TransferLog logs/rev-europe-access_log
</VirtualHost>
----------------------------------------------------
Here is the problem:
In 4 out of 10 requests to www.highpoint.edu I will get the index page
located in the document root of my www.revolutionaryeurope.org virtual
host. The images will not show up because it seems that even though I
got the wrong page displayed, apache does think that the document root
is /var/www/html so the path to the images are wrong. The other 6
requests (out of 10) are answered correctly.
The same kind of problem is present when I make requests to
www.revolutionaryeurope.org.
It seems to me that apache is mixing things up internally. Has anyone
run into this problem?
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Problem with Virtual Hosts
Posted by Joshua Slive <jo...@slive.ca>.
On Mon, 29 Mar 2004, DeSouza, Wellington Oliveira wrote:
> In 4 out of 10 requests to www.highpoint.edu I will get the index page
> located in the document root of my www.revolutionaryeurope.org virtual
> host. The images will not show up because it seems that even though I
> got the wrong page displayed, apache does think that the document root
> is /var/www/html so the path to the images are wrong. The other 6
> requests (out of 10) are answered correctly.
>
> The same kind of problem is present when I make requests to
> www.revolutionaryeurope.org.
>
> It seems to me that apache is mixing things up internally. Has anyone
> run into this problem?
I have seen this problem reported only in one situation: where people are
using non-default apache configurations with strange third-party modules.
(In particular, mod_dyn_vhost has been known to do this.)
Are you using Apache directly from httpd.apache.org with no patches or
third-party modules?
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org