LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   apache 2.0.44 vhosts (https://www.linuxquestions.org/questions/slackware-14/apache-2-0-44-vhosts-65989/)

sqn 06-16-2003 03:44 PM

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

jvannucci 06-17-2003 02:03 PM

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.

sqn 06-17-2003 02:23 PM

ok thx i'll try that

jvannucci 06-17-2003 03:12 PM

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.

sqn 06-19-2003 12:54 AM

Oh! ok...
i'm going to check it now...
thx again


All times are GMT -5. The time now is 04:52 AM.