Virtual Host Question
am 18.01.2005 06:44:18 von jasonlarouche
If I wanna do
Is that done thru virtual host via apache or thru dns?
Right now I have
Which resolves okay but Id like to go into firefox and type in
and have it resolve. Be kinda cool.
Right now I have this
Listen 80
NameVirtualHost *
ServerName www.jslcomputing.com
DocumentRoot /var/www/jslcomputing
Do I just add a serveralias to resolve ?
----------------------------------------------
Posted with NewsLeecher v2.0 Beta 5
* Binary Usenet Leeching Made Easy
* http://www.newsleecher.com/?usenet
----------------------------------------------
Re: Virtual Host Question
am 18.01.2005 08:55:23 von Davide Bianchi
On 2005-01-18, narkotika wrote:
> Is that done thru virtual host via apache or thru dns?
You need a DNS entry that resolve that hostname into an IP address, then
you need a web server that respond to that IP address.
Davide
--
Failure is not an option -- it comes bundled with Windows.
Re: Virtual Host Question
am 18.07.2007 03:02:59 von Malcolm
On Wed, 18 Jul 2007 00:17:08 -0000
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
>=20
> 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.
>=20
Hi
I use DynDNS and have 3 virtual hosts, all I did was add the hostnames
in the hosts file on the ubuntu server and use the following
configuration for them all.
ServerName www.*****.homeunix.net
ServerAlias *****.homeunix.net *****
DocumentRoot /usr/local/*****
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
--=20
Cheers Malcolm °¿° (Linux Counter #276890)
SLED 10.0 SP1 x86_64 Kernel 2.6.16.46-0.14-smp
up 12:09, 4 users, load average: 0.08, 0.10, 0.04
Re: Virtual Host Question
am 18.07.2007 15:16:23 von IanP
Malcolm wrote:
> On Wed, 18 Jul 2007 00:17:08 -0000
> 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.
>>
> Hi
> I use DynDNS and have 3 virtual hosts, all I did was add the hostnames
> in the hosts file on the ubuntu server and use the following
> configuration for them all.
>
>
> ServerName www.*****.homeunix.net
> ServerAlias *****.homeunix.net *****
> DocumentRoot /usr/local/*****
>
>
> Options FollowSymLinks
> AllowOverride All
> Order allow,deny
> Allow from all
>
>
>
>
You have to remember to include the 'master' site as a virtual host,
also to add an alias so that 'www.xxxx.com' and just 'xxxx.com' will work
# These are for the virtual hosts on this server
#
NameVirtualHost *:80
# this is for the 'master' web site
DocumentRoot "/var/www/html"
ServerName miniserver
ServerAlias *.miniserver
# this is for the 'xxxx' web site
DocumentRoot "/var/www/html/xxxx"
ServerName xxxx.com
ServerAlias *.xxxx.com
# this is for the 'yyyy' web site
DocumentRoot "/var/www/html/yyyy"
ServerName yyyy.com
ServerAlias *.yyyy.com
Re: Virtual Host Question
am 19.07.2007 01:25:10 von unknown
Post removed (X-No-Archive: yes)