LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   my defaul virtual host doesnt work (https://www.linuxquestions.org/questions/linux-newbie-8/my-defaul-virtual-host-doesnt-work-466300/)

laeeq38 07-21-2006 01:28 PM

my defaul virtual host doesnt work
 
hello

I put my interface card eth0 into promiscuous mode
and configured httpd.conf as following

NameVirtualHost *:80

<VirtualHost *:80>

DocumentRoot /var/www/html
DirectoryIndex index.html Index.html

</VirtualHost>

<VirtualHost *:80>

ServerAdmin webmaster@skoona.net
DocumentRoot /var/www/mysite
ServerName skoona.net
DirectoryIndex index.html Index.html

<Directory "/var/www/mysite">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

</VirtualHost>

Added zone.skoona.net and its reverse in named and created those files.

I restart both named and httpd evertime i make changes.

skoona.net is working fine but any other request is not served by my default server
I dont know what is wrong with default server??? ( I send request from XP machine to Linux machine)

The error I get is " Cant find the Server or DNS error"

Regards

twantrd 07-21-2006 06:50 PM

Quote:

skoona.net is working fine but any other request is not served by my default server
I dont know what is wrong with default server??? ( I send request from XP machine to Linux machine)
What other requests are trying to make? Do you mean, if you try to hit "fdafdsa.com" you wanted your linux box to return back the content that is in "/var/www/html"? Were the zone files set up for fdafdsa.com?

-twantrd


All times are GMT -5. The time now is 06:58 AM.