LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-11-2004, 01:42 AM   #1
diverge
LQ Newbie
 
Registered: Aug 2003
Location: Houston, TX
Distribution: RedHat 9, Fedora Core 1, Slackware 9.1
Posts: 11

Rep: Reputation: 0
apache and virtual host


I don't have a domain name for either ip. The main web site on apache thats on the eth0 interface works fine. The problem is with the virtual host. "ps aux" shows 9 httpd daemons are running which sounds correct. However when I do "nmap <addy for eth0:0>" it does not show httpd daemons listening on port 80, but it does show other daemons listening so I know interface eth0:0 is working( also pinged it from another machine, no dropped packets ).

/etc/httpd/conf/httpd.conf

<VirtualHost 64.218.xxx.xxx:80>
ServerAdmin x@sbcglobal.net
DocumentRoot /www
ServerName lilguy.64.218.xxx.xxx:80
ErrorLog /var/log2/error_log
TransferLog /var/log2/access_log common
</VirtualHost>


The ServerName is the same format as the main site. The main site works fine. Firewall is off for troubleshooting.
 
Old 01-11-2004, 01:45 AM   #2
diverge
LQ Newbie
 
Registered: Aug 2003
Location: Houston, TX
Distribution: RedHat 9, Fedora Core 1, Slackware 9.1
Posts: 11

Original Poster
Rep: Reputation: 0
"apachectl configtest" returned syntax OK
 
Old 01-11-2004, 03:45 AM   #3
diverge
LQ Newbie
 
Registered: Aug 2003
Location: Houston, TX
Distribution: RedHat 9, Fedora Core 1, Slackware 9.1
Posts: 11

Original Poster
Rep: Reputation: 0
Got it working. Both sites work properly, the main host and virtual host. I added the ip address of the virtual host ( <VirtualHost xxx.xxx.xxx.xxx:80> ) to the Listen Directive of Section 1: Global Environment.

httpd.conf:


Section 1: Global Environment

#Listen: ...
#
#

# ip of the main host
Listen xxx.xxx.xxx.xxx:80
# ip of the virtual host
Listen xxx.xxx.xxx.xxx:80 // I added the virtual address here also.




I've been working on this so long my contacts are stuck to my eyeballs.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Apache - Name virtual host tisource Linux - Networking 5 03-03-2006 03:52 AM
Apache 2.0 Virtual Host? w0lfeyes Linux - Networking 1 05-03-2004 04:09 PM
Virtual host and apache Samspeed Linux - General 8 08-06-2003 08:41 AM
apache virtual host navinc Linux - Software 10 05-22-2003 01:16 PM
apache virtual host mimi Linux - General 1 04-06-2002 06:11 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration