LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-06-2007, 08:40 PM   #1
madhavr
LQ Newbie
 
Registered: Nov 2003
Distribution: Fedora 6
Posts: 10

Rep: Reputation: 0
Unhappy Apache Virtual Host Problems with Tomcat 6 on Fedora 6


Hi

I've had no problems running the first host in my vhosts.conf file however as soon as ive added the second im getting the following message:

Quote:
[Mon May 07 02:07:24 2007] [error] (EAI 2)Name or service not known: Could not resolve host name www.website.qa -- ignoring!
my vhosts.conf looks like below

Quote:

NameVirtualHost *:80

<VirtualHost *:80>
ServerAdmin admin@zzz.com
DocumentRoot /var/www/html/website_com
ServerName www.website.com
ServerAlias website.com *.website.com
ErrorLog logs/web_com-error_log
CustomLog logs/web_com-access_log common

<Directory /var/www/html/web_com>
Options Indexes FollowSymLinks
AllowOverride None
Order deny,allow
#Deny from all
</Directory>

DefaultType text/html

<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/xml text/html text/css
AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>

JkMount /*.jsp router

</VirtualHost>

<VirtualHost *:80>
ServerAdmin admin@zzz.com
DocumentRoot /var/www/html/web_qa
ServerName www.website.qa
ServerAlias website.qa *.website.qa
ErrorLog logs/web_qa-error_log
CustomLog logs/web_qa-access_log common

<Directory /var/www/html/web_qa>
Options Indexes FollowSymLinks
AllowOverride None
Order deny,allow
</Directory>

DefaultType text/html

<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/xml text/html text/css
AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>

JkMount /*.jsp router

</VirtualHost>
router is the name of the load balance worker

both vhosts have an index.jsp file in them

at the moment if i try to view website.qa it simply redirects me to the index.jsp belonging to website.com.

would appreciate any help on this. thanks!
 
Old 05-07-2007, 09:52 AM   #2
madhavr
LQ Newbie
 
Registered: Nov 2003
Distribution: Fedora 6
Posts: 10

Original Poster
Rep: Reputation: 0
any suggestions??

I think it might be because I do not have a DNS server (bind) running but wasnt sure if this was necessary for Vhosts.
 
Old 05-08-2007, 05:13 AM   #3
madhavr
LQ Newbie
 
Registered: Nov 2003
Distribution: Fedora 6
Posts: 10

Original Poster
Rep: Reputation: 0
it seems that although the messages appear the virtual hosts do actually work fine. can someone clarify whether these messages can be ignored?
 
  


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
"mixing * & non * -ports not supported " Tomcat,httpd with mod_jk in virtual host shailesh_mishra Linux - Server 0 02-26-2007 04:37 AM
vhost container - Apache namebased virtual host problems mac_casey Linux - Networking 3 01-03-2005 07:25 AM
Tomcat on Apache on Fedora 2 Problems praveengot Linux - Networking 0 10-20-2004 05:28 AM
Apache virtual host problems Baltasar Linux - Software 8 07-22-2004 07:58 PM
Apache virtual host problems.. Swene Linux - Networking 0 05-02-2002 12:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:46 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