You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jim Norton <jr...@oregonhanggliding.com> on 2004/06/14 07:20:32 UTC
[users@httpd] virtual host - Document Root problem
Hello all:
I am running Apache 2.0.48 with the following section in /etc/apache2/conf/vhosts/vhosts.conf
....
<VirtualHost 66.80.68.86>
ServerAdmin jrn@midvalleyhosting.com
ServerAlias *webmail.oregonhanggliding.com
DocumentRoot /var/www/localhost/htdocs/horde
ServerName webmail.oregonhanggliding.com
</VirtualHost>
....
Of course webmail.oregonhanggliding.com is setup properly in my DNS zone file for oregonhanggliding.com.
Now when I browse to http://webmail.oregonhanggliding.com I get an error message page:
Not Found
The requested URL /horde/login.php was not found on this server.
Apache/2.0.48 (Gentoo/Linux) mod_ssl/2.0.48 OpenSSL/0.9.7d PHP/4.3.6 Server at webmail.oregonhanggliding.com Port 80
And when I grab a section of the error_log file I see the following:
[Sun Jun 13 22:17:10 2004] [error] [client 66.80.68.86] Negotiation: discovered file(s) matching request: /var/www/localhost/htdocs/horde/horde (None could be negotiated).
Why is apache trying to serve up /var/www/localhost/htdocs/horde/horde? I specified /var/www/localhost/htdocs/horde
Of course the actual non-virtual URL of http://www.midvalleyhosting.com/horde works as expected. I am simply trying to
make an 'alias' for a virtual hosted site to horde.
Any ideas?
Thanks everyone.
--
Jim Norton - http://www.jimnorton.org
"The art of listening is indispensable for the right use of the mind.
It is also the most gracious, the most open and the most generous of
human habits."
(Attributed to R. Barr, St. John's College, Annapolis, MD)
---------------------------------------------------------------------
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] virtual host - Document Root problem
Posted by Jim Norton <jr...@oregonhanggliding.com>.
On Mon, Jun 14, 2004 at 02:09:07AM -0400, Tim Burden wrote:
> http://webmail.oregonhanggliding.com/index.php
> sets a cookie and then attempts to redirect to the login page. Which it
> thinks is at /horde/login.php. So append your docroot to that and you have
> .../horde/horde/... (which doesn't exist).
>
> So you might solve this by configuring horde...
>
Thanks for the help Tim.
--
Jim Norton - http://www.jimnorton.org
"The art of listening is indispensable for the right use of the mind.
It is also the most gracious, the most open and the most generous of
human habits."
(Attributed to R. Barr, St. John's College, Annapolis, MD)
---------------------------------------------------------------------
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] virtual host - Document Root problem
Posted by Tim Burden <ti...@burden.ca>.
http://webmail.oregonhanggliding.com/index.php
sets a cookie and then attempts to redirect to the login page. Which it
thinks is at /horde/login.php. So append your docroot to that and you have
.../horde/horde/... (which doesn't exist).
So you might solve this by configuring horde...
----- Original Message -----
From: "Jim Norton" <jr...@oregonhanggliding.com>
To: <us...@httpd.apache.org>
Sent: Monday, June 14, 2004 1:20 AM
Subject: [users@httpd] virtual host - Document Root problem
> Hello all:
>
> I am running Apache 2.0.48 with the following section in
/etc/apache2/conf/vhosts/vhosts.conf
>
>
> ....
> <VirtualHost 66.80.68.86>
> ServerAdmin jrn@midvalleyhosting.com
> ServerAlias *webmail.oregonhanggliding.com
> DocumentRoot /var/www/localhost/htdocs/horde
> ServerName webmail.oregonhanggliding.com
> </VirtualHost>
> ....
>
>
> Of course webmail.oregonhanggliding.com is setup properly in my DNS zone
file for oregonhanggliding.com.
> Now when I browse to http://webmail.oregonhanggliding.com I get an error
message page:
>
> Not Found
>
> The requested URL /horde/login.php was not found on this server.
> Apache/2.0.48 (Gentoo/Linux) mod_ssl/2.0.48 OpenSSL/0.9.7d PHP/4.3.6
Server at webmail.oregonhanggliding.com Port 80
>
>
> And when I grab a section of the error_log file I see the following:
>
> [Sun Jun 13 22:17:10 2004] [error] [client 66.80.68.86] Negotiation:
discovered file(s) matching request: /var/www/localhost/htdocs/horde/horde
(None could be negotiated).
>
>
>
> Why is apache trying to serve up /var/www/localhost/htdocs/horde/horde? I
specified /var/www/localhost/htdocs/horde
>
> Of course the actual non-virtual URL of
http://www.midvalleyhosting.com/horde works as expected. I am simply trying
to
> make an 'alias' for a virtual hosted site to horde.
>
> Any ideas?
>
> Thanks everyone.
>
>
>
> --
> Jim Norton - http://www.jimnorton.org
>
> "The art of listening is indispensable for the right use of the mind.
> It is also the most gracious, the most open and the most generous of
> human habits."
> (Attributed to R. Barr, St. John's College, Annapolis, MD)
>
> ---------------------------------------------------------------------
> 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
>
---------------------------------------------------------------------
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] newbie -first steps
Posted by Tim Burden <ti...@burden.ca>.
I think that unless your website is very, very busy, you'll have more fun in
life by just putting it all on one box. That's three less boxes to worry
about.
Also, for a single website, I'd recommend getting the free, single-domain
version of Plesk for your OS, which will come with mail, apache, DNS, PHP,
FTP, mod_perl, MySQL etc. all ready to go and set up in a very secure way.
Then you can administer your domain just by clicking stuff. It will all run
perfectly well on a single 400MHz Celeron. I know this because I ran about
30 (relatively quiet) websites on a 333 and 384K RAM for a couple of years
with absolutely no problems.
Then you can think of other things to do with your boxes and your time. Not
that I'm trying to dissuade you, but unless you want to spend your life
adminning boxes that's what I'd do.
----- Original Message -----
From: "Richard Okeby" <ri...@whitecloud.co.nz>
To: <us...@httpd.apache.org>
Sent: Monday, June 14, 2004 2:38 AM
Subject: [users@httpd] newbie -first steps
>
> >Hi
>
> I have bought a whole bunch of celeron 400mhz boxes, with the idea of
> moving my website to my own server. I want to setup a webserver,
> mailserver, primary dns, and a secondary dns with four of the boxes, maybe
> using the rest for a firewall, fileserver and some backup webservers. I
> have a friend whos already done this so I can get some help, but dont want
> to waste to much time with him doing the grunt work... at this stage im
> installing freeBSD on the boxes, and I have apache ready to go, but I
would
> like to have an overview of what steps im going to take next. Can someone
> recommend a tutorial or site that will help me with this project?
>
> thanks for the help,
>
> richard
>
>
>
> ---------------------------------------------------------------------
> 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
>
---------------------------------------------------------------------
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
[users@httpd] newbie -first steps
Posted by Richard Okeby <ri...@whitecloud.co.nz>.
>Hi
I have bought a whole bunch of celeron 400mhz boxes, with the idea of
moving my website to my own server. I want to setup a webserver,
mailserver, primary dns, and a secondary dns with four of the boxes, maybe
using the rest for a firewall, fileserver and some backup webservers. I
have a friend whos already done this so I can get some help, but dont want
to waste to much time with him doing the grunt work... at this stage im
installing freeBSD on the boxes, and I have apache ready to go, but I would
like to have an overview of what steps im going to take next. Can someone
recommend a tutorial or site that will help me with this project?
thanks for the help,
richard
---------------------------------------------------------------------
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