LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-16-2003, 03:44 PM   #1
sqn
Member
 
Registered: Apr 2002
Distribution: Ubuntu, Arch, freeBSD, Slackware
Posts: 210

Rep: Reputation: 30
apache 2.0.44 vhosts


  • [Mon Jun 16 22:29:29 2003] [error] VirtualHost _default_:443 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results

this is the error that my apache gives me when it starts...
I have made an upgrade from apache 1.3.x to 2.0, and moved the vhost configuration from one version to another...
i have checked httpd.apache.org for details, and the confs seams to be ok

here are the conf:
  • NameVirtualHost *

    #
    # VirtualHost example:
    # Almost any Apache directive may go into a VirtualHost container.
    # The first VirtualHost section is used for requests without a known
    # server name.
    #
    <VirtualHost *>
    DocumentRoot /www/
    ServerAdmin next@shadow.ro
    ServerName www.domain1.com
    ErrorLog logs/domain1.com-errorlog
    CustomLog logs/domain1.com-log common
    </VirtualHost>

    <VirtualHost *>
    ServerAdmin next@shadow.ro
    DocumentRoot /home/httpd/forum/
    ServerName forum.domain1.com
    ErrorLog logs/forum.domain1.com.com-errorlog
    CustomLog logs/forum.domain1.com-log common
    </VirtualHost>

    <VirtualHost *>
    ServerAdmin next@shadow.ro
    DocumentRoot /home/httpd/shadow/
    ServerName next.domain2.com
    ErrorLog logs/next.domain2.com-errorlog
    CustomLog logs/next.domain2.com-log common
    </VirtualHost>

Can anyone tell me where is the probel?

THX in advance
 
Old 06-17-2003, 02:03 PM   #2
jvannucci
Member
 
Registered: Jan 2003
Location: Connecticut, US
Distribution: Red Hat 9.0
Posts: 98

Rep: Reputation: 15
Change <virtualhost *> to <virtualhost hostname>:

<VirtualHost www.domain1.com>
DocumentRoot /www/
ServerAdmin next@shadow.ro
ServerName www.domain1.com
...

Do this for each VirtualHost entry.
 
Old 06-17-2003, 02:23 PM   #3
sqn
Member
 
Registered: Apr 2002
Distribution: Ubuntu, Arch, freeBSD, Slackware
Posts: 210

Original Poster
Rep: Reputation: 30
ok thx i'll try that
 
Old 06-17-2003, 03:12 PM   #4
jvannucci
Member
 
Registered: Jan 2003
Location: Connecticut, US
Distribution: Red Hat 9.0
Posts: 98

Rep: Reputation: 15
Sorry, I forgot to add that you'll also have to change the NameVirtualHosts line to:

NameVirtualHosts n.n.n.n

where n.n.n.n is your IP address. You may also need to map your virtual hostnames to the IP address of your host in /etc/hosts or elsewhere (depending on your name resolution setup):

/etc/hosts:

n.n.n.n myrealhostname.mydomain.com myrealhostname www.domain1.com forum.domain1.com

Sorry for any confusion this caused.
 
Old 06-19-2003, 12:54 AM   #5
sqn
Member
 
Registered: Apr 2002
Distribution: Ubuntu, Arch, freeBSD, Slackware
Posts: 210

Original Poster
Rep: Reputation: 30
Oh! ok...
i'm going to check it now...
thx again
 
  


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
Setting up vhosts in apache 1.3.33 Erik Thorsson Debian 2 01-31-2005 09:46 PM
Help with Vhosts in apache please. GEEF Linux - Software 2 10-29-2004 07:18 PM
apache + dns + vhosts albertos Slackware 1 08-03-2003 07:03 PM
apache vhosts question sqn Linux - Networking 0 04-01-2003 04:27 PM
Vhosts on RH 8.0 - Apache 2.0.40 Drogo Linux - Software 5 02-06-2003 11:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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