Find the answer to your Linux question:
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 23
I'm trying to setup the virtual host but when I start Apache I get this error: [error] VirtualHost _default_:443 -- mixing * ports and non-* ports with a NameVirtualHost address ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2003
    Posts
    50

    HELP!!! what the heck is this: [error] VirtualHost _default


    I'm trying to setup the virtual host but when I start Apache I get this error:

    [error] VirtualHost _default_:443 --
    mixing * ports and non-* ports with a NameVirtualHost address is not supported,
    proceeding with undefined results

    What does this mean??? Someone please help.

  2. #2
    Linux User
    Join Date
    May 2003
    Location
    CA
    Posts
    370
    this error is because of the conflict in the NameVirtualHost directive and the actual Listen and the VirtualHost directive.
    are you trying to do virtual hosts on specific ports or just the ip address by itself?

  3. #3
    Just Joined!
    Join Date
    Jun 2003
    Posts
    50
    I have it set:

    listen 80

    NameVirtualHost *

    <VirtualHost *>
    ....
    ....

    </VirtualHost>


    I just follow the book and how-tos from the net... I just don't get it. So, I replaced the * with my real IP... but as you know from my other posts, it doesn't resolve my virtual hosts now.

  4. #4
    Linux User
    Join Date
    May 2003
    Location
    CA
    Posts
    370
    Try this:

    Listen 80

    NameVirtualHost <your ip-address>

    <VirtualHost ip-addr>
    ...
    ...
    </VirtualHost>

    <VirtualHost ip-addr>
    ...
    ...
    </VirtualHost>

  5. #5
    Just Joined!
    Join Date
    Jun 2003
    Posts
    50
    Dumb question but do you mean any difference between ip-address and ip-addr ???
    Just thinking you might mean ip-address = my external ip (isp ip)
    and ip-addr = my internal ip (routers dhcp ip)

  6. #6
    Linux User
    Join Date
    May 2003
    Location
    CA
    Posts
    370
    by external ip I meant the ip-address from which people outside can connect to your machine...have you got an ip from your isp dedicated for your server?then that should be the same as that of your router.

  7. #7
    Just Joined!
    Join Date
    Jun 2003
    Posts
    50
    Yes I use the external IP, the IP my isp assigned to my router. But my linux server is behind the router and it has an internal ip the router assigns. Should I be doing this:

    NameVirtualHost 192.211.111.232 (made up - IP assigned to my router)

    <VirtualHost 10.10.10.5> (made up - Ip assigned to linux by router)
    ...
    ...
    </Virtualhost>

  8. #8
    Linux User
    Join Date
    May 2003
    Location
    CA
    Posts
    370
    for the server use the ip the router assigns, in other words
    do a "/sbin/ifconfig -a" and assign that ip in your httpd.conf file
    and on the router just forward that port to your machine,
    for example your machine's ip is 192.168.1.30 and apache is listening on port 80 then on the router
    just forward all request for port 80 to 192.168.1.30:80...so all requests
    will go to the apache instance.

  9. #9
    Just Joined!
    Join Date
    Jun 2003
    Posts
    50
    I think I get it. I'll give it a try later tonight. Thanks for your help. I'll keep you posted if I'm going to be successful or not.

  10. #10
    Just Joined!
    Join Date
    Jun 2003
    Posts
    50
    Okay, still no luck. Going nutz here. Let me know if this is even possible first. Here is what i'm trying to do:

    I have one dynamic ip from my isp.
    My linksys router gets this ip.
    My Linux server is behind this router.
    Linksys router assigns internal ip for my linksys server.
    Configured Linksys router to forward port 80 to my linux's internal ip
    Using zoneedit for my DNS.
    Configured zoneedit with two registered domains
    both domains pointing to my linksys router's ip
    configured httpd.conf with virtualnamehost using linksys router's ip
    My Linux server is NOT running local DNS

    Anybody have the same setup out there? Is it possible that zoneedit is not sending the http header over, thats why my linux box is not able to resolve the virtual host names??? or maybe i need a local DNS????

Page 1 of 3 1 2 3 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •