Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    Regular Coder GO ILLINI's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    634
    Thanks
    0
    Thanked 7 Times in 7 Posts

    virtual hosts(aint they a *****?)

    Code:
    NameVirtualHost *
    
    <VirtualHost *>
        ServerName adamsworld.name
        DocumentRoot C:/server/xampp/htdocs/
    </VirtualHost>
    <VirtualHost *:81>
        ServerName cfg.adamsworld.name
        DocumentRoot C:/server/xampp/htdocs/cfg
    </VirtualHost>
    That returns no errors(eg apache can start) but I still cant connect to adamsworld.name:81. in firefox "The connection has timed out"
    IE freezes for a bit then gives me a blank page. What am i doing wrong?

    -ILLINI
    Why not thank me?

    http://adamsworld.name

  • #2
    Regular Coder
    Join Date
    Jul 2006
    Posts
    112
    Thanks
    1
    Thanked 0 Times in 0 Posts

  • #3
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    And I assume you have apache setup to listen on port 80 and 81?
    OracleGuy

  • #4
    Regular Coder GO ILLINI's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    634
    Thanks
    0
    Thanked 7 Times in 7 Posts
    it seems apparent that that is my problem.
    I didnt know you were allowed to ahve more then one listen. I thought taht the virtual host acted like a listen. Havent got arround to testing it though...


    -ILLINI
    Why not thank me?

    http://adamsworld.name

  • #5
    Regular Coder GO ILLINI's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    634
    Thanks
    0
    Thanked 7 Times in 7 Posts
    NOGO

    I have

    Code:
    Listen 80
    Listen 81
    --and--
    NameVirtualHost *
    
    <VirtualHost *:81>
        ServerName cfg.adamsworld.name
        DocumentRoot C:/server/xampp/htdocs/cfg
    </VirtualHost>
    now just regular adamsworld.name is gone to be replaced by that.
    Why not thank me?

    http://adamsworld.name

  • #6
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,078
    Thanks
    11
    Thanked 98 Times in 96 Posts
    have you set an entry in the windows host file to tell windows that cfg.adamsworld.name is served by localhost ?

    example hosts file entry (c:/windows/system32/drivers/etc/hosts)

    127.0.0.1 localhost
    127.0.0.1 cfg.adamsworld.name

    thats unless you run your own local DNS server etc
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #7
    Regular Coder GO ILLINI's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    634
    Thanks
    0
    Thanked 7 Times in 7 Posts
    my server is different from the computer I work at.
    I thought that the hosts file was internal only. But would that work? ill try it.
    Why not thank me?

    http://adamsworld.name

  • #8
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,078
    Thanks
    11
    Thanked 98 Times in 96 Posts
    the hosts file overrides all DNS (thats why spyware tends to infect it with fake entries) if your server/network has a DNS server then you dont need the hosts file entry... but it is foolproof for testing)
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)


  •  

    Posting Permissions

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