Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 12-16-2010, 11:04 AM   #1
LQ Newbie
Registered: Oct 2009
Posts: 15

Rep: Reputation: 0
Apache VirtualHost's

Hello. I created VirtualHost in apache configuration file.


   DocumentRoot "/var/www/host"
Now, works perfect, take site visitor to exact page -

but if I do it take visitor to page.

Whats wrong and what should I include ?

Sorry for thread, I just must include this:
   DocumentRoot "/var/www/host"
And works perfect.

Last edited by Dreft; 12-16-2010 at 11:06 AM.
Old 12-16-2010, 02:55 PM   #2
Senior Member
Registered: Jul 2007
Distribution: Ubuntu 10.10, Slackware 64-current
Posts: 2,124

Rep: Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778
The host name to ip resolution is a typically DNS function. For example you would want an A record to and a CNAME for that points to the same address. In your Apache configuration you can use an ALIAS directive for the host, which will tell Apache that the particular host file is for both and, but it requires that these addresses both resolve to the same location.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
setting up apache from scratch on a linux machine, apache failed message upon bootup dramous43 Linux - Enterprise 2 01-26-2010 07:53 AM
Apache Webserver on Slackware - Failed to Start Apache - 'no listening sockets .." CCTVGuru Linux - Server 4 10-11-2009 01:14 AM
Apache2 VirtualHost's NOT working randomblink Linux - Server 1 09-21-2008 01:35 AM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 10:53 AM
Apache and VirtualHost's slowrider Linux - Networking 0 03-17-2002 12:09 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration