Virtual Host Question

Virtual Host Question

am 16.07.2007 07:21:54 von Computer Guy

Hello, I have been signed up to make a neighborhood website. I am
hosting the website on my ubuntu box in my basement which has apache2,
php5, and mysql working great. The only problem I am having now is
that I can't figure out how to set up my virtual host on apache. I
have zoneedit for dynamic dns support. Right now when I go to my
domain name it puts me in /var/www directory (normal document root) I
want it to go to my /var/www/neighborhood directory. I added this to
a file called neighborhood in my sites-enabled directory which is
included in my config file.

NameVirtualHost *:80

ServerAdmin aaron.michalczuk@gmail.com
DocumentRoot /var/www/neighborhood
Servername www.*****.com


I run /etc/init.d/apache2 restart

I get this
apache2: Could not reliably determine the server's fully qualified
domain name, using 127.0.1.1 for ServerName
[Mon Jul 16 00:17:28 2007] [warn] NameVirtualHost *:80 has no
VirtualHosts
apache2: Could not reliably determine the server's fully qualified
domain name, using 127.0.1.1 for ServerName
[Mon Jul 16 00:17:39 2007] [warn] NameVirtualHost *:80 has no
VirtualHosts

[ OK ]


This is my first time trying to use virtual hosts so I am sure there
is a lot of stuff I am doing wrong. Thx in advance.

Re: Virtual Host Question

am 16.07.2007 20:08:29 von number2pencil

On Jul 16, 1:21 am, Computer Guy wrote:
> Hello, I have been signed up to make a neighborhood website. I am
> hosting the website on my ubuntu box in my basement which has apache2,
> php5, and mysql working great. The only problem I am having now is
> that I can't figure out how to set up my virtual host on apache. I
> have zoneedit for dynamic dns support. Right now when I go to my
> domain name it puts me in /var/www directory (normal document root) I
> want it to go to my /var/www/neighborhood directory. I added this to
> a file called neighborhood in my sites-enabled directory which is
> included in my config file.
>
> NameVirtualHost *:80
>
> ServerAdmin aaron.michalc...@gmail.com
> DocumentRoot /var/www/neighborhood
> Servername www.*****.com
>

>
> I run /etc/init.d/apache2 restart
>
> I get this
> apache2: Could not reliably determine the server's fully qualified
> domain name, using 127.0.1.1 for ServerName
> [Mon Jul 16 00:17:28 2007] [warn] NameVirtualHost *:80 has no
> VirtualHosts
> apache2: Could not reliably determine the server's fully qualified
> domain name, using 127.0.1.1 for ServerName
> [Mon Jul 16 00:17:39 2007] [warn] NameVirtualHost *:80 has no
> VirtualHosts
>
> [ OK ]
>
> This is my first time trying to use virtual hosts so I am sure there
> is a lot of stuff I am doing wrong. Thx in advance.



ServerAdmin webmaster@host.foo.com
DocumentRoot /www/docs/host.foo.com
ServerName host.foo.com
ErrorLog logs/host.foo.com-error_log
TransferLog logs/host.foo.com-access_log


This information is from http://httpd.apache.org/docs/2.0/mod/core.html#virtualhost
as I do not have access to my Virutal Hosts file at this moment. I can
try to help you further when I am again in the office.

-#2pencil-
http://www.akroncdnr.com
http://www.GreatTrainNetwork.com

Re: Virtual Host Question

am 18.07.2007 02:17:08 von Computer Guy

On Jul 16, 1:08 pm, #2pencil wrote:
> On Jul 16, 1:21 am, Computer Guy wrote:
>
>
>
> > Hello, I have been signed up to make a neighborhood website. I am
> > hosting the website on my ubuntu box in my basement which has apache2,
> > php5, and mysql working great. The only problem I am having now is
> > that I can't figure out how to set up my virtual host on apache. I
> > have zoneedit for dynamic dns support. Right now when I go to my
> > domain name it puts me in /var/www directory (normal document root) I
> > want it to go to my /var/www/neighborhood directory. I added this to
> > a file called neighborhood in my sites-enabled directory which is
> > included in my config file.
>
> > NameVirtualHost *:80
> >
> > ServerAdmin aaron.michalc...@gmail.com
> > DocumentRoot /var/www/neighborhood
> > Servername www.*****.com
> >

>
> > I run /etc/init.d/apache2 restart
>
> > I get this
> > apache2: Could not reliably determine the server's fully qualified
> > domain name, using 127.0.1.1 for ServerName
> > [Mon Jul 16 00:17:28 2007] [warn] NameVirtualHost *:80 has no
> > VirtualHosts
> > apache2: Could not reliably determine the server's fully qualified
> > domain name, using 127.0.1.1 for ServerName
> > [Mon Jul 16 00:17:39 2007] [warn] NameVirtualHost *:80 has no
> > VirtualHosts
>
> > [ OK ]
>
> > This is my first time trying to use virtual hosts so I am sure there
> > is a lot of stuff I am doing wrong. Thx in advance.
>
>
> ServerAdmin webmas...@host.foo.com
> DocumentRoot /www/docs/host.foo.com
> ServerName host.foo.com
> ErrorLog logs/host.foo.com-error_log
> TransferLog logs/host.foo.com-access_log
>

>
> This information is fromhttp://httpd.apache.org/docs/2.0/mod/core.html#virtualho st
> as I do not have access to my Virutal Hosts file at this moment. I can
> try to help you further when I am again in the office.
>
> -#2pencil-http://www.akroncdnr.comhttp://www.GreatTrainNetwo rk.com

I understand how to do ip virtual hosts, but i am having problems with
my name virtual host. I had already found that documentation on
apache's website, but I could not find a good example about doing a
name based virtual host. Thanks anyways. If anyone else ahs
experience with name based vhosts that would be helpful.

Re: Virtual Host Question

am 19.07.2007 17:55:14 von Your Best Friend

I also want to find how to perform a virtual host using a .htaccess
file, if it's possible.

Computer Guy wrote:
> On Jul 16, 1:08 pm, #2pencil wrote:
>> On Jul 16, 1:21 am, Computer Guy wrote:
>>
>>
>>
>>> Hello, I have been signed up to make a neighborhood website. I am
>>> hosting the website on my ubuntu box in my basement which has apache2,
>>> php5, and mysql working great. The only problem I am having now is
>>> that I can't figure out how to set up my virtual host on apache. I
>>> have zoneedit for dynamic dns support. Right now when I go to my
>>> domain name it puts me in /var/www directory (normal document root) I
>>> want it to go to my /var/www/neighborhood directory. I added this to
>>> a file called neighborhood in my sites-enabled directory which is
>>> included in my config file.
>>> NameVirtualHost *:80
>>>
>>> ServerAdmin aaron.michalc...@gmail.com
>>> DocumentRoot /var/www/neighborhood
>>> Servername www.*****.com
>>>

>>> I run /etc/init.d/apache2 restart
>>> I get this
>>> apache2: Could not reliably determine the server's fully qualified
>>> domain name, using 127.0.1.1 for ServerName
>>> [Mon Jul 16 00:17:28 2007] [warn] NameVirtualHost *:80 has no
>>> VirtualHosts
>>> apache2: Could not reliably determine the server's fully qualified
>>> domain name, using 127.0.1.1 for ServerName
>>> [Mon Jul 16 00:17:39 2007] [warn] NameVirtualHost *:80 has no
>>> VirtualHosts
>>> [ OK ]
>>> This is my first time trying to use virtual hosts so I am sure there
>>> is a lot of stuff I am doing wrong. Thx in advance.
>>
>> ServerAdmin webmas...@host.foo.com
>> DocumentRoot /www/docs/host.foo.com
>> ServerName host.foo.com
>> ErrorLog logs/host.foo.com-error_log
>> TransferLog logs/host.foo.com-access_log
>>

>>
>> This information is fromhttp://httpd.apache.org/docs/2.0/mod/core.html#virtualho st
>> as I do not have access to my Virutal Hosts file at this moment. I can
>> try to help you further when I am again in the office.
>>
>> -#2pencil-http://www.akroncdnr.comhttp://www.GreatTrainNetwo rk.com
>
> I understand how to do ip virtual hosts, but i am having problems with
> my name virtual host. I had already found that documentation on
> apache's website, but I could not find a good example about doing a
> name based virtual host. Thanks anyways. If anyone else ahs
> experience with name based vhosts that would be helpful.
>

--
Thanks,
Bryan K
bk@bkworksproducts.com.info
To reply, remove .com
** PROUD USER OF THUNDERBIRD **