Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. How do I reach a second web site on my local machine?

How do I reach a second web site on my local machine?

Scheduled Pinned Locked Moved The Lounge
question
9 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Brady Kelly
    wrote on last edited by
    #1

    I just created a second web site on my Vista machine, to spare the default site being taken over by Umbraco CMS. I've given it a host name, but how do I cause requests to go to that hostname, and not look for it on external DNS?

    P J H L 4 Replies Last reply
    0
    • B Brady Kelly

      I just created a second web site on my Vista machine, to spare the default site being taken over by Umbraco CMS. I've given it a host name, but how do I cause requests to go to that hostname, and not look for it on external DNS?

      P Offline
      P Offline
      Pierre Leclercq
      wrote on last edited by
      #2

      Use a different port?

      You can't turn lead into gold, unless you've built yourself a nuclear plant.

      P 1 Reply Last reply
      0
      • B Brady Kelly

        I just created a second web site on my Vista machine, to spare the default site being taken over by Umbraco CMS. I've given it a host name, but how do I cause requests to go to that hostname, and not look for it on external DNS?

        J Offline
        J Offline
        James Brown
        wrote on last edited by
        #3

        put an entry in your hosts file: c:\windows\system32\drivers\etc\hosts


        http://www.catch22.net

        B 1 Reply Last reply
        0
        • J James Brown

          put an entry in your hosts file: c:\windows\system32\drivers\etc\hosts


          http://www.catch22.net

          B Offline
          B Offline
          Brady Kelly
          wrote on last edited by
          #4

          Thanks, I just have, and according to advice, before I assign a host-name to the second entry, it should point back to the default localhost site, e.g. I have in hosts: 127.0.0.1 localhost 127.0.0.1 umbraco Then, after I add a hostname to the new site, the name resolution should be OK, but now when I type http://umbraco, I get an external site. :confused:

          J 1 Reply Last reply
          0
          • B Brady Kelly

            Thanks, I just have, and according to advice, before I assign a host-name to the second entry, it should point back to the default localhost site, e.g. I have in hosts: 127.0.0.1 localhost 127.0.0.1 umbraco Then, after I add a hostname to the new site, the name resolution should be OK, but now when I type http://umbraco, I get an external site. :confused:

            J Offline
            J Offline
            James Brown
            wrote on last edited by
            #5

            If I add those two lines to my hosts file, and do 'ping umbraco' from the command-prompt, I get this: Pinging umbraco [127.0.0.1] with 32 bytes of data Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 you should get the same, which indicates that the hosts-file modification is working as expected - in other words, DNS is happening as you want it to. If your browser is then going off to an external site, then this may be a problem with your webserver setup? sorry not got any more ideas that would help. I'd run wireshark next to see what's happening, but chances are someone else here will spot the problem


            http://www.catch22.net

            B 1 Reply Last reply
            0
            • J James Brown

              If I add those two lines to my hosts file, and do 'ping umbraco' from the command-prompt, I get this: Pinging umbraco [127.0.0.1] with 32 bytes of data Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 you should get the same, which indicates that the hosts-file modification is working as expected - in other words, DNS is happening as you want it to. If your browser is then going off to an external site, then this may be a problem with your webserver setup? sorry not got any more ideas that would help. I'd run wireshark next to see what's happening, but chances are someone else here will spot the problem


              http://www.catch22.net

              B Offline
              B Offline
              Brady Kelly
              wrote on last edited by
              #6

              It was directing me to a big funny IIS7 image map thingie, which I, like a tool, thought was online. It seems to be the default IIS 7 page for sites with no content.

              1 Reply Last reply
              0
              • B Brady Kelly

                I just created a second web site on my Vista machine, to spare the default site being taken over by Umbraco CMS. I've given it a host name, but how do I cause requests to go to that hostname, and not look for it on external DNS?

                H Offline
                H Offline
                Henry Minute
                wrote on last edited by
                #7

                Possibly by posting a question in the Web Development Forum?

                Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

                1 Reply Last reply
                0
                • B Brady Kelly

                  I just created a second web site on my Vista machine, to spare the default site being taken over by Umbraco CMS. I've given it a host name, but how do I cause requests to go to that hostname, and not look for it on external DNS?

                  L Offline
                  L Offline
                  leppie
                  wrote on last edited by
                  #8

                  Host headers.

                  xacc.ide
                  IronScheme - 1.0 beta 4 - out now!
                  ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

                  1 Reply Last reply
                  0
                  • P Pierre Leclercq

                    Use a different port?

                    You can't turn lead into gold, unless you've built yourself a nuclear plant.

                    P Offline
                    P Offline
                    Pierre Leclercq
                    wrote on last edited by
                    #9

                    The masked univoter strikes again! :zzz:

                    You can't turn lead into gold, unless you've built yourself a nuclear plant.

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups