You are in the right direction. Almost there

You can also give the IP inside the directive for each host

On Tue, Dec 11, 2012 at 5:14 PM, Marikkannan Rajagopal
<[email protected]> wrote:
> Dear All..,
>
>              I have a cloud server in "Rackspace" and my os is in
> "Centos",there i run "LAMP" Server.,and now i plan to run three (3) sites
> by using the same server itself.
>
>   i have three separate domain name like (consider)
>
>   1.www.abc.com            -----> A record  Pointed to  ("198.0.10.255")
>
>  2.www.def.com             ----> A record  Pointed to  ("198.0.10.255")
>
> 3. www.ghi.com            -----> A record  Pointed to  ("198.0.10.255")
>
>
>      Now i configure my "httpd.conf" by
>
>  NameVirtualhost *:80
>
>
> http://www.abc.com
>
> <VirtualHost *:80>
>     ServerAdmin [email protected]
>     DocumentRoot /var/www/html/abc.com
>     ServerName abc.com
>     ErrorLog /var/logs/httpd/abc.com/error_log
>     CustomLog /var/logs/httpd/abc.com/access_log common
> </VirtualHost>
>
>
> http://www.def.com
>
>
> <VirtualHost *:80>
>     ServerAdmin [email protected]
>     DocumentRoot /var/www/html/def.com
>     ServerName def.com
>     ErrorLog /var/logs/httpd/def.com/error_log
>     CustomLog /var/logs/httpd/def.com/access_log common
> </VirtualHost>
>
>
> http://www.ghi.com
>
> <VirtualHost *:80>
>     ServerAdmin [email protected]
>     DocumentRoot /var/www/html/ghi.com
>     ServerName ghi.com
>     ErrorLog /var/logs/httpd/ghi.com/error_log
>     CustomLog /var/logs/httpd/ghi.com/access_log common
> </VirtualHost>
>
>
> Now i got the error while restart the "Apache server"..,
>
> Stopping httpd:                                            [FAILED]
> Starting httpd: httpd: Could not reliably determine the server's fully
> qualified domain name, using 198.101.225.59 for ServerName
>                                                            [FAILED]
>
>  i am going right direction or wrong way..,please suggest me..,and mention
> what are all the changes i would made in "/etc/hosts" file.
>
>
>                        Thanks in Advance.
>
> --
> R.Marikkannan
> Linux System Administrator
> BloomingFeld
> _______________________________________________
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc



-- 
Gayatri Hitech
http://gayatri-hitech.com
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to