Solved

Apache server config problem

Posted on 2006-06-20
22
494 Views
Last Modified: 2010-03-04
I hve multipule sites setup  but when  do a httpd restart it tells me it can't resolve jdcamp.ork:0

What does this mean? How do i fix it.
0
Comment
Question by:jcw20
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 13
  • 9
22 Comments
 
LVL 1

Author Comment

by:jcw20
ID: 16946846
It also says it has no vitual host
0
 
LVL 15

Expert Comment

by:periwinkle
ID: 16946858
Are you trying to host a domain named jdcamp.org and have mispelled it?
0
 
LVL 1

Author Comment

by:jcw20
ID: 16947003
Yes a fully qulified domain name but  have already configured another one and it does not give me any errors jessewhittngton.com but i wnat jdcmp.org to work also
0
Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

 
LVL 15

Expert Comment

by:periwinkle
ID: 16947037
Right, but the error says "jdcamp.ork" (with a 'k' instead of a 'g') - is there a typo in your config file?
0
 
LVL 15

Expert Comment

by:periwinkle
ID: 16947040
What happens when you do:

apachectl configtest

... what errors are reported?
0
 
LVL 1

Author Comment

by:jcw20
ID: 16947059
No but i have made that mistake before.
0
 
LVL 1

Author Comment

by:jcw20
ID: 16947065
NameVirtualHost jdcamp.org:0 has no VirtualHosts

System: ok
0
 
LVL 15

Expert Comment

by:periwinkle
ID: 16947084
What are the lines in the httpd.conf file that refer to jdcamp.org?
0
 
LVL 1

Author Comment

by:jcw20
ID: 16947091
<Virtualhost rfnemesis.com>
NameVirtualhost rfnemesis.com
DocumentRoot /var/www/html/aaron
Serveradmin xxthebagxx@gmail.com
</virtualhost>

#<VirtualHost jacob.myphotos.cc>
#NameVirtualHost jacob.myphotos.cc
#documentRoot /var/www/html/jake
#</VirtualHost>

<VirtualHost jessewhittington.com>
#ServerName jessewhittington.com
ServerAdmin jessewhittington@hotmail.com
NameVirtualHost jessewhittington.com
DocumentRoot /var/www/html/jc
CustomLog /var/www/html/jc/logs/access-log common
ErrorLog /var/www/html/jc/logs/error-log
</VirtualHost>


<VirtualHost jdcamp.org>
NameVirtualHost jdcamp.org
Documentroot /var/www/html/jdcamp
CustomLOg /var/www/html/jdcamp/logs/access-log common
ErrorLog /var/www/html/jdcamp/logs/error-log
</VirtualHost>

0
 
LVL 15

Expert Comment

by:periwinkle
ID: 16947168
NameVirtualHost is misused, and belongs outside of the VirtualHost containers.  NameVirtualHost indicates the IP address and port, like:

NameVirtualHost 111.111.111.111:80

where you would replace 111.111.111.111 with the IP address of your virtualhosts.  You can have multiple NameVirtualHost lines for each IP address if there are more than one.

Instead of the NameVirtualHost directive inside your VirtualHost containers, you should use:

ServerName jdcamporg
(or the like).

Also, the VirtualHost directives use IP addresses and port numbers, not domain names:

So, for example:

NameVirtualHost 111.111.111.111:80
Listen 80

<VirtualHost 111.111.111.111:80>
ServerName jdcamp.org
Documentroot /var/www/html/jdcamp
CustomLog /var/www/html/jdcamp/logs/access-log common
ErrorLog /var/www/html/jdcamp/logs/error-log
</VirtualHost>
0
 
LVL 1

Author Comment

by:jcw20
ID: 16947266
Well I only Have one public ip  so what does that change anything
0
 
LVL 1

Author Comment

by:jcw20
ID: 16947283
Starting httpd: [Tue Jun 20 17:55:06 2006] [error] VirtualHost 10.10.10.4:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Tue Jun 20 17:55:06 2006] [warn] NameVirtualHost jdcamp.org:0 has no VirtualHosts
0
 
LVL 1

Author Comment

by:jcw20
ID: 16947301
Starting httpd: [Tue Jun 20 17:59:52 2006] [error] VirtualHost 10.10.10.4:80 -- mixing * ports an                      d non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Tue Jun 20 17:59:52 2006] [error] VirtualHost 10.10.10.4:80 -- mixing * ports and non-* ports wi                      th a NameVirtualHost address is not supported, proceeding with undefined results
[Tue Jun 20 17:59:52 2006] [error] VirtualHost 10.10.10.4:80 -- mixing * ports and non-* ports wi                      th a NameVirtualHost address is not supported, proceeding with undefined results
                                                           [  OK  ]
0
 
LVL 1

Author Comment

by:jcw20
ID: 16947314
well i fixed that last error i think
0
 
LVL 15

Expert Comment

by:periwinkle
ID: 16947483
You MUST only put IP addresses on NameVirtualHost.  You still have one in there that has a domain.  I gave you an example of how to clean up one VirtualHost, but you have to make changes to them all.

One ip address is fine.
0
 
LVL 1

Author Comment

by:jcw20
ID: 16947857
Well now i Get the test page for the  jdcam.org whats wrong no errors on restart
0
 
LVL 1

Author Comment

by:jcw20
ID: 16947883
It would seem that i can see the site just fine using jdcamp.org on the inside of the ne work but acording to afriend on the outside of my network she gets  the apache test  page
0
 
LVL 1

Author Comment

by:jcw20
ID: 16947910
<Virtualhost 10.10.10.4:80>
#NameVirtualhost rfnemesis.com
DocumentRoot /var/www/html/aaron
Serveradmin xxthebagxx@gmail.com
</virtualhost>

#<VirtualHost jacob.myphotos.cc>
#NameVirtualHost jacob.myphotos.cc
#documentRoot /var/www/html/jake
#</VirtualHost>


<VirtualHost 10.10.10.4:80>
ServerName jessewhittington.com
ServerAdmin jessewhittington@hotmail.com
#NameVirtualHost jessewhittington.com
DocumentRoot /var/www/html/jc
CustomLog /var/www/html/jc/logs/access-log common
ErrorLog /var/www/html/jc/logs/error-log
</VirtualHost>

NameVirtualHost 10.10.10.4:80
<VirtualHost 10.10.10.4:80>
ServerName jdcamp.org
#NameVirtualHost jdcamp.org
Documentroot /var/www/html/jdcamp
CustomLOg /var/www/html/jdcamp/logs/access-log common
ErrorLog /var/www/html/jdcamp/logs/error-log
</VirtualHost>

0
 
LVL 15

Expert Comment

by:periwinkle
ID: 16950242
Your first entry doesn't have a ServerName - therefore, it's matching that entry.  Put in ServerName rfnemesis.com, and you should be ok.
0
 
LVL 1

Author Comment

by:jcw20
ID: 16956238
Now i want to know whenen I type http://www.jdcamp.org vs.  http://jdcamp.org

why i get different results  Please Help !!!
0
 
LVL 15

Expert Comment

by:periwinkle
ID: 16956707
Change:

NameVirtualHost 10.10.10.4:80
<VirtualHost 10.10.10.4:80>
ServerName jdcamp.org
#NameVirtualHost jdcamp.org
Documentroot /var/www/html/jdcamp
CustomLOg /var/www/html/jdcamp/logs/access-log common
ErrorLog /var/www/html/jdcamp/logs/error-log
</VirtualHost>


to:

NameVirtualHost 10.10.10.4:80
<VirtualHost 10.10.10.4:80>
ServerName jdcamp.org
ServerAlias www.jdcamp.org
#NameVirtualHost jdcamp.org
Documentroot /var/www/html/jdcamp
CustomLOg /var/www/html/jdcamp/logs/access-log common
ErrorLog /var/www/html/jdcamp/logs/error-log
</VirtualHost>
0
 
LVL 15

Accepted Solution

by:
periwinkle earned 250 total points
ID: 16959037
jcw20 - I've now answered this in two places...
0

Featured Post

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question