LinuxQuestions.org
Review your favorite Linux distribution.
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 09-20-2013, 08:12 AM   #16
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032

Quote:
Originally Posted by Ashcor View Post
command not found.....
Apparently it's
Code:
httpd2 -S

Quote:
Sep 19 14:47:44 linux01.mydomain.com start_apache2[24338]: [Thu Sep 19 14:47:44 2013] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a Name... results
Sep 19 14:47:44 linux01.mydomain.com start_apache2[24338]: [Thu Sep 19 14:47:44 2013] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a Name... results
Sep 19 14:47:44 linux01.mydomain.com start_apache2[24338]: [Thu Sep 19 14:47:44 2013] [error] VirtualHost *:443 -- mixing * ports and non-* ports with a Nam... results
Sep 19 14:47:44 linux01.mydomain.com start_apache2[24338]: [Thu Sep 19 14:47:44 2013] [warn] NameVirtualHost *:80 has no VirtualHosts
You must make sure that you use the same notation when defining the vhosts:
Code:
NameVirtualHost *:80
<VirtualHost *:80>
...
</VirtualHost>
<VirtualHost *:80>
...
</VirtualHost>
NameVirtualHost *:8080
<VirtualHost *:8080>
...
</VirtualHost>
NameVirtualHost *:443
<VirtualHost *:443>
...
</VirtualHost>
 
Old 09-20-2013, 08:38 AM   #17
Ashcor
LQ Newbie
 
Registered: Mar 2012
Location: New Jersey USA
Posts: 17

Original Poster
Rep: Reputation: Disabled
Smile

Ok, cleaned some stuff up and used
Code:
httpd2 -S
results in:

Code:
# httpd2 -S
[Fri Sep 20 09:35:08 2013] [error] VirtualHost *:443 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80                   is a NameVirtualHost
         default server www.mydomain.com (/etc/apache2/vhosts.d/main.conf:15)
         port 80 namevhost www.mydomain.com (/etc/apache2/vhosts.d/main.conf:15)
         port 80 namevhost www.testdomain.com (/etc/apache2/vhosts.d/testdomain.conf:16)
*:*                    is a NameVirtualHost
         default server linux01.mydomain.com (/etc/apache2/vhosts.d/ip-based_vhosts.conf:1)
         port 443 namevhost linux01.mydomain.com (/etc/apache2/vhosts.d/ip-based_vhosts.conf:1)
Syntax OK
still getting the warning on the *:443 though...

but getting there!
 
Old 09-20-2013, 12:05 PM   #18
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
*:* is a NameVirtualHost
default server linux01.mydomain.com (/etc/apache2/vhosts.d/ip-based_vhosts.conf:1)
port 443 namevhost linux01.mydomain.com (/etc/apache2/vhosts.d/ip-based_vhosts.conf:1)
If you don't need IP-based vhosts (re)move the file /etc/apache2/vhosts.d/ip-based_vhosts.conf. Or else change
Quote:
NameVirtualHost *:*
to the appropriate notation, as in my previous post.
 
Old 09-20-2013, 02:15 PM   #19
Ashcor
LQ Newbie
 
Registered: Mar 2012
Location: New Jersey USA
Posts: 17

Original Poster
Rep: Reputation: Disabled
Talking

Quote:
Originally Posted by bathory View Post
If you don't need IP-based vhosts (re)move the file /etc/apache2/vhosts.d/ip-based_vhosts.conf. Or else change
to the appropriate notation, as in my previous post.
ok, it's all straight now.. did as you suggested, sorry I missed that earlier...

I also had a NameVirtualHost setting in a file I shouldn't have that was causing:

Code:
[Fri Sep 20 14:59:30 2013] [warn] NameVirtualHost *:80 has no VirtualHosts
commented it out and all seems good...

Thanks for everyone's help!!!!
 
  


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
Which config files must be set for virtual hosts apache2.2.6 bassmanb Linux - Server 4 11-27-2007 11:27 PM
apache2 virtual hosts dave`2005 Ubuntu 1 11-19-2007 07:17 AM
Virtual hosts on apache2 70mas Linux - Server 3 07-16-2007 02:29 AM
Apache2 - need help with virtual hosts bioalchemist Linux - Software 5 08-11-2006 01:24 PM
apache2 virtual hosts viniosity Linux - Software 4 02-07-2004 12:15 AM

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

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