Solved

Apache server config problem

Posted on 2006-06-20
22
483 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
 
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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
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). #…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

759 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now