[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Apache server config problem

Posted on 2006-06-20
22
Medium Priority
?
498 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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 1000 total points
ID: 16959037
jcw20 - I've now answered this in two places...
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses
Course of the Month14 days, 6 hours left to enroll

656 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