?
Solved

Apache server config problem

Posted on 2006-06-20
22
Medium Priority
?
505 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
  • 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
From store locators to asset tracking and route optimization, learn how leading companies are using Google Maps APIs throughout the customer journey to increase checkout conversions, boost user engagement, and optimize order fulfillment. Powered …
Did you know PowerShell can save you time with SaaS platforms? Simply leverage RESTfulAPIs to build your own PowerShell modules. These will kill repetitive tickets and tabs, using the command Invoke-RestMethod. Tune into this webinar to learn how…

589 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