FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 07-26-2011, 06:04 AM
Amrit Pal Pathak
 
Default Virtual hosting set up problem

I have struggle to do virtual hosting from many days.Till now what i did as follow.

1)At the end of the /etc/apache2/apache2.conf file i added the following line:

**** NameVirtualHost ip.addressort
*

2) in /sites-available directory i created a file with name " ubuntu-tutorials.com" with having the following contents.

* <VirtualHost 1.2.3.4:80>

ServerName ubuntu-tutorials.com
ServerAlias www.ubuntu-tutorials.com
ServerAdmin christer.edwards@ubuntu.com

DocumentRoot /var/www/ubuntu-tutorials.com
</VirtualHost>


3) in /var/www i made a file with name "ubuntu-tutorials.com" and just simply added a hello word to it.


4) Now i restarted the apache and it gave me the following message.

** Restarting web server apache2******************************************* **** [Tue Jul 26 01:53:37 2011] [error] (EAI 5)No address associated with hostname: Could not resolve host name dev.example.com -- ignoring!

Warning: DocumentRoot [/home/myuser/public_html/example.com] does not exist
Warning: DocumentRoot [/var/www/ubuntu-tutorials.com/html] does not exist

[Tue Jul 26 01:53:37 2011] [error] (EAI 5)No address associated with hostname: Could not resolve host name ip.addressort -- ignoring!
*... waiting [Tue Jul 26 01:53:38 2011] [error] (EAI 5)No address associated with hostname: Could not resolve host name dev.example.com -- ignoring!

Warning: DocumentRoot [/home/myuser/public_html/example.com] does not exist
Warning: DocumentRoot [/var/www/ubuntu-tutorials.com/html] does not exist

[Tue Jul 26 01:53:39 2011] [error] (EAI 5)No address associated with hostname: Could not resolve host name ip.addressort -- ignoring!
************************************************** ********************** [ OK ]





Please anybody see if i can make it working.
I will be greatful to you.

Thanks in advance.

amritpalpathak.blogspot.com

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-26-2011, 06:26 AM
Eero Volotinen
 
Default Virtual hosting set up problem

2011/7/26 Amrit Pal Pathak <amritpalpathak1@gmail.com>:
> I have struggle to do virtual hosting from many days.Till now what i did as
> follow.
>
> 1)At the end of the /etc/apache2/apache2.conf file i added the following
> line:
>
> **** NameVirtualHost ip.addressort
>
> 2) in /sites-available directory i created a file with name "
> ubuntu-tutorials.com" with having the following contents.
>
> * <VirtualHost 1.2.3.4:80>
> ServerName ubuntu-tutorials.com
> ServerAlias www.ubuntu-tutorials.com
> ServerAdmin christer.edwards@ubuntu.com
> DocumentRoot /var/www/ubuntu-tutorials.com
> </VirtualHost>
>
>
> 3) in /var/www i made a file with name "ubuntu-tutorials.com" and just
> simply added a hello word to it.
>
> 4) Now i restarted the apache and it gave me the following message.
>
> ** Restarting web server
> apache2******************************************* **** [Tue Jul 26 01:53:37
> 2011] [error] (EAI 5)No address associated with hostname: Could not resolve
> host name dev.example.com -- ignoring!
> Warning: DocumentRoot [/home/myuser/public_html/example.com] does not exist
> Warning: DocumentRoot [/var/www/ubuntu-tutorials.com/html] does not exist
> [Tue Jul 26 01:53:37 2011] [error] (EAI 5)No address associated with
> hostname: Could not resolve host name ip.addressort -- ignoring!
> *... waiting [Tue Jul 26 01:53:38 2011] [error] (EAI 5)No address associated
> with hostname: Could not resolve host name dev.example.com -- ignoring!
> Warning: DocumentRoot [/home/myuser/public_html/example.com] does not exist
> Warning: DocumentRoot [/var/www/ubuntu-tutorials.com/html] does not exist
> [Tue Jul 26 01:53:39 2011] [error] (EAI 5)No address associated with
> hostname: Could not resolve host name ip.addressort -- ignoring!

Read docs at http://httpd.apache.org/docs/2.2/vhosts/examples.html.
you also need working dns and document root must also exists.

--
Eero

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 01:52 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org