I wish to take over a wiki so I am setting it up on my machine however
it will use the DNS hosted by someone else so they will setup a CNAME
record pointing "wiki.foo.org" to my machine's ip. I have no control
over foo.org.
So how exactly should I set up the name based vhost in apache or
should I use ip based vhost and how would that look? My site hosted on
the VPS is www.jesujuva.org but I don't want that to appear in the
users' browsers, if they enter http://wiki.foo.org it should take them
to the wiki hostesd on my machine.
I was going to us something like this for name-based vhost:
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
02-16-2009, 08:59 PM
Jochen Schulz
setting up vhost for external DNS?
Zach Uram:
>
> I wish to take over a wiki so I am setting it up on my machine however
> it will use the DNS hosted by someone else so they will setup a CNAME
> record pointing "wiki.foo.org" to my machine's ip. I have no control
> over foo.org.
>
> So how exactly should I set up the name based vhost in apache or
> should I use ip based vhost and how would that look?
Whether to use IP-based or name-based virtual hosts doesn't matter in
your case. If you have a spare IP address, you can use the former, but
you can always use the latter.
> I was going to us something like this for name-based vhost:
>
> /etc/apache2/sites-available/wiki
>
> <VirtualHost *:80>
> ServerName wiki.foo.org
> ServerAlias wiki.foo.org
> DocumentRoot /var/www/wiki
> ErrorLog /var/log/apache2/error.log
> TransferLog /var/log/apache2/access.log
> </VirtualHost>
That looks fine. Just don't forget to set something like
'NameVirtualHost *:80". And your ServerAlias is redundant.
J.
--
The houses of parliament make me think of school bullies.
[Agree] [Disagree]
<http://www.slowlydownward.com/NODATA/data_enter2.html>