LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   webserver is not working.. (https://www.linuxquestions.org/questions/linux-newbie-8/webserver-is-not-working-778142/)

niaz_ph 12-26-2009 03:30 AM

webserver is not working..
 
Hi,

i am new in linux. i use redhat enterprise 5.0. i configured /etc/httpd/conf/httpd.conf. In this configuration file i made changes on last seven lines. changes are..

<VirtualHost adnan.example.com>
ServerAdmin webmaster@adnan.example.com
DocumentRoot /var/www/html #i've made index.html in html folder
ServerName adnan.example.com
ErrorLog logs/adnan.example.com-error_log
TransferLog logs/adnan.example.com-access_log
</VirtualHost>


but when i open firefox and type "adnan.example.com" , it gives no reply. but when i type 127.0.0.1, it shows the index.html . what wrong i've made in the configuration file ?? please give me a solution. it stops my further activity on redhat.

repo 12-26-2009 03:38 AM

Do you have a DNS entry for
adnan.example.com ?

niaz_ph 12-26-2009 09:38 AM

thanks repo... i didn't make any change to /etc/hosts....should i change it...?? or what should i do the next..?? sorry for such questions but i am helpless ....thanks

repo 12-26-2009 09:43 AM

You can add
Code:

<ip server> adnan.example.com
to /etc/hosts

niaz_ph 12-27-2009 02:24 AM

thanks repo for ur nice cooperation. it worked finally.. i like to know should i need to change any other file for better performance...?? waiting for reply.....thanx....


All times are GMT -5. The time now is 09:57 AM.