LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-21-2006, 01:28 PM   #1
laeeq38
LQ Newbie
 
Registered: Jul 2006
Posts: 10

Rep: Reputation: 0
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

Last edited by laeeq38; 07-21-2006 at 01:32 PM.
 
Old 07-21-2006, 06:50 PM   #2
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
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
 
  


Reply



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
Virtual host www.domain.com work, domain.com don't work stormrider_may Linux - Networking 4 05-03-2006 09:52 PM
virtual users and virtual host need to stay at /home nephish Linux - Networking 3 01-14-2006 01:36 PM
Why doesnt my USB mouse doesnt work? barkha Linux - Hardware 2 08-16-2005 11:31 AM
Virtual Host abridge Linux - Software 1 04-13-2005 07:35 AM
Virtual host config won't work klintonray Linux - Networking 18 08-19-2003 02:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:15 AM.

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