You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Sparky Kopetzky <sp...@blackmesa-isp.net> on 2003/07/21 16:49:57 UTC
[users@httpd] Virtual Host problem
Hi!
I've added a auction package to my server and set the virtual host section as follows:
NameVirtualHost 208.252.219.129
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost 208.252.219.129>
ServerAdmin admin@fttta.com
DocumentRoot /htdocs/phpauction-2.0
ServerName blackmesa.blackmesa-isp.net
</VirtualHost>
When I try to hit www.fttta.com, I get a 404 error. I have done this previously on another server and it worked. What did I goof up now??
Thanks in advance...
Robin E. Kopetzky
Black Mesa Computers/Internet Services
www.blackmesa-isp.net
Re: [users@httpd] Virtual Host problem
Posted by Paul Chvostek <pa...@it.ca>.
That question was one to which your response was supposed to be "Oooooh,
I get it now."
Your <VirtualHost> entry makes no mention of the host www.fttta.com. On
the basis of what you posted to the list, it looks as if your web site's
URL should be http://blackmesa.blackmesa-isp.net/. If it's really
http://www.fttta.com/ that is your URL, then you have to use that as a
ServerName or ServerAlias.
Check http://httpd.apache.org/docs/vhosts/examples.html for examples.
- Paul
On Mon, Jul 21, 2003 at 08:57:09AM -0600, Sparky Kopetzky wrote:
>
> Yep, it's on the same machine. In fact, it's the ONLY site on it. I
> dedicated one machine to the auction.
>
> Sparky
> ----- Original Message -----
> From: "Martin Hudec" <co...@corwin.sk>
> To: <us...@httpd.apache.org>
> Sent: Monday, July 21, 2003 08:59
> Subject: Re: [users@httpd] Virtual Host problem
>
>
> > Hello,
> >
> > On Monday 21 July 2003 16:49, Sparky Kopetzky wrote:
> >
> > > <VirtualHost 208.252.219.129>
> > > ServerAdmin admin@fttta.com
> > > DocumentRoot /htdocs/phpauction-2.0
> > > ServerName blackmesa.blackmesa-isp.net
> > > </VirtualHost>
> >
> > So far it is good...
> >
> > > When I try to hit www.fttta.com, I get a 404 error. I have done this
> > > previously on another server and it worked. What did I goof up now??
> >
> > And where is fttta.com located? If it is server residing on same machine
> like
> > blackmesa.blackmesa-isp.net, then you should have also <VirtualHost> entry
> > for fttta.com site. If it is not on the same machine, then try to contact
> > site's system administrator.
> >
> > Martin Hudec
--
Paul Chvostek <pa...@it.ca>
it.canada http://www.it.ca/
Free PHP web hosting! http://www.it.ca/web/
---------------------------------------------------------------------
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 problem - still!!!
Posted by Martin Hudec <co...@corwin.sk>.
Search for DirectoryIndex and set it like this:
<IfModule mod_dir.c>
DirectoryIndex index.php index.php3 index.html
</IfModule>
And add to each VirtualHost entry:
<VirtualHost .... >
....
<Options>
Options Indexes
</Options>
</VirtualHost>
On Monday 21 July 2003 19:45, Sparky Kopetzky wrote:
> Tried just setting the main entries in config to www.fttta.com and the
> right documents folder. All I get now is a list of all files in the system,
> and it's not running the index.php file.
>
> SParky
MH
---------------------------------------------------------------------
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 problem - still!!!
Posted by Milan Reznicek <re...@gytool.cz>.
Did you set the DirectoryIndex?
----------------------------------
Milan Reznicek
Software Developer
e-mail: reznicekm@gytool.cz
----- Original Message -----
From: "Sparky Kopetzky" <sp...@blackmesa-isp.net>
To: <us...@httpd.apache.org>
Sent: Monday, July 21, 2003 7:45 PM
Subject: Re: [users@httpd] Virtual Host problem - still!!!
> Tried just setting the main entries in config to www.fttta.com and the
right
> documents folder. All I get now is a list of all files in the system, and
> it's not running the index.php file.
>
> SParky
> ----- Original Message -----
> From: "Sparky Kopetzky" <sp...@blackmesa-isp.net>
> To: <us...@httpd.apache.org>
> Sent: Monday, July 21, 2003 11:39
> Subject: Re: [users@httpd] Virtual Host problem - still!!!
>
>
> > I tried that... Error log returned ' File does not exist:
> > /htdocs/phpauction-2.0/'
> >
> > Something weird is going on here...
> >
> > ----- Original Message -----
> > From: "Martin Hudec" <co...@corwin.sk>
> > To: <us...@httpd.apache.org>
> > Sent: Monday, July 21, 2003 09:06
> > Subject: Re: [users@httpd] Virtual Host problem
> >
> >
> > > Hmm, then I recommend to create entry like
> > >
> > > <VirtualHost 208.252.219.129>
> > > ServerAdmin admin@fttta.com
> > > DocumentRoot /htdocs/fttta_site
> > > ServerName fttta.com
> > > ServerAlias www.fttta.com
> > > </VirtualHost>
> > >
> > > On Monday 21 July 2003 16:57, Sparky Kopetzky wrote:
> > > > Yep, it's on the same machine. In fact, it's the ONLY site on it. I
> > > > dedicated one machine to the auction.
> > >
> > > > > > <VirtualHost 208.252.219.129>
> > > > > > ServerAdmin admin@fttta.com
> > > > > > DocumentRoot /htdocs/phpauction-2.0
> > > > > > ServerName blackmesa.blackmesa-isp.net
> > > > > > </VirtualHost>
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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
> >
>
>
> ---------------------------------------------------------------------
> 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] Virtual Host problem - still!!!
Posted by Sparky Kopetzky <sp...@blackmesa-isp.net>.
Tried just setting the main entries in config to www.fttta.com and the right
documents folder. All I get now is a list of all files in the system, and
it's not running the index.php file.
SParky
----- Original Message -----
From: "Sparky Kopetzky" <sp...@blackmesa-isp.net>
To: <us...@httpd.apache.org>
Sent: Monday, July 21, 2003 11:39
Subject: Re: [users@httpd] Virtual Host problem - still!!!
> I tried that... Error log returned ' File does not exist:
> /htdocs/phpauction-2.0/'
>
> Something weird is going on here...
>
> ----- Original Message -----
> From: "Martin Hudec" <co...@corwin.sk>
> To: <us...@httpd.apache.org>
> Sent: Monday, July 21, 2003 09:06
> Subject: Re: [users@httpd] Virtual Host problem
>
>
> > Hmm, then I recommend to create entry like
> >
> > <VirtualHost 208.252.219.129>
> > ServerAdmin admin@fttta.com
> > DocumentRoot /htdocs/fttta_site
> > ServerName fttta.com
> > ServerAlias www.fttta.com
> > </VirtualHost>
> >
> > On Monday 21 July 2003 16:57, Sparky Kopetzky wrote:
> > > Yep, it's on the same machine. In fact, it's the ONLY site on it. I
> > > dedicated one machine to the auction.
> >
> > > > > <VirtualHost 208.252.219.129>
> > > > > ServerAdmin admin@fttta.com
> > > > > DocumentRoot /htdocs/phpauction-2.0
> > > > > ServerName blackmesa.blackmesa-isp.net
> > > > > </VirtualHost>
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
---------------------------------------------------------------------
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 problem - still!!!
Posted by Sparky Kopetzky <sp...@blackmesa-isp.net>.
I tried that... Error log returned ' File does not exist:
/htdocs/phpauction-2.0/'
Something weird is going on here...
----- Original Message -----
From: "Martin Hudec" <co...@corwin.sk>
To: <us...@httpd.apache.org>
Sent: Monday, July 21, 2003 09:06
Subject: Re: [users@httpd] Virtual Host problem
> Hmm, then I recommend to create entry like
>
> <VirtualHost 208.252.219.129>
> ServerAdmin admin@fttta.com
> DocumentRoot /htdocs/fttta_site
> ServerName fttta.com
> ServerAlias www.fttta.com
> </VirtualHost>
>
> On Monday 21 July 2003 16:57, Sparky Kopetzky wrote:
> > Yep, it's on the same machine. In fact, it's the ONLY site on it. I
> > dedicated one machine to the auction.
>
> > > > <VirtualHost 208.252.219.129>
> > > > ServerAdmin admin@fttta.com
> > > > DocumentRoot /htdocs/phpauction-2.0
> > > > ServerName blackmesa.blackmesa-isp.net
> > > > </VirtualHost>
>
>
> ---------------------------------------------------------------------
> 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] Virtual Host problem
Posted by Martin Hudec <co...@corwin.sk>.
Hmm, then I recommend to create entry like
<VirtualHost 208.252.219.129>
ServerAdmin admin@fttta.com
DocumentRoot /htdocs/fttta_site
ServerName fttta.com
ServerAlias www.fttta.com
</VirtualHost>
On Monday 21 July 2003 16:57, Sparky Kopetzky wrote:
> Yep, it's on the same machine. In fact, it's the ONLY site on it. I
> dedicated one machine to the auction.
> > > <VirtualHost 208.252.219.129>
> > > ServerAdmin admin@fttta.com
> > > DocumentRoot /htdocs/phpauction-2.0
> > > ServerName blackmesa.blackmesa-isp.net
> > > </VirtualHost>
---------------------------------------------------------------------
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 problem
Posted by Sparky Kopetzky <sp...@blackmesa-isp.net>.
Yep, it's on the same machine. In fact, it's the ONLY site on it. I
dedicated one machine to the auction.
Sparky
----- Original Message -----
From: "Martin Hudec" <co...@corwin.sk>
To: <us...@httpd.apache.org>
Sent: Monday, July 21, 2003 08:59
Subject: Re: [users@httpd] Virtual Host problem
> Hello,
>
> On Monday 21 July 2003 16:49, Sparky Kopetzky wrote:
>
> > <VirtualHost 208.252.219.129>
> > ServerAdmin admin@fttta.com
> > DocumentRoot /htdocs/phpauction-2.0
> > ServerName blackmesa.blackmesa-isp.net
> > </VirtualHost>
>
> So far it is good...
>
> > When I try to hit www.fttta.com, I get a 404 error. I have done this
> > previously on another server and it worked. What did I goof up now??
>
> And where is fttta.com located? If it is server residing on same machine
like
> blackmesa.blackmesa-isp.net, then you should have also <VirtualHost> entry
> for fttta.com site. If it is not on the same machine, then try to contact
> site's system administrator.
>
> Martin Hudec
>
> ---------------------------------------------------------------------
> 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] Virtual Host problem
Posted by Martin Hudec <co...@corwin.sk>.
Hello,
On Monday 21 July 2003 16:49, Sparky Kopetzky wrote:
> <VirtualHost 208.252.219.129>
> ServerAdmin admin@fttta.com
> DocumentRoot /htdocs/phpauction-2.0
> ServerName blackmesa.blackmesa-isp.net
> </VirtualHost>
So far it is good...
> When I try to hit www.fttta.com, I get a 404 error. I have done this
> previously on another server and it worked. What did I goof up now??
And where is fttta.com located? If it is server residing on same machine like
blackmesa.blackmesa-isp.net, then you should have also <VirtualHost> entry
for fttta.com site. If it is not on the same machine, then try to contact
site's system administrator.
Martin Hudec
---------------------------------------------------------------------
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