Jump to content



Photo

Site Viewing: Browsers Vs. Virtual Host


  • Please log in to reply
3 replies to this topic

#1 Silver

Silver

    Advanced Member

  • Members
  • PipPipPip
  • 53 posts

Posted 19 September 2011 - 11:49 AM

For viewing/running a developed site or script, pls. provide pros. and cons. of using virtual hosts, if any, as opposed to browsers.
  • 0

#2 Larry

Larry

    Administrator/Writer

  • Administrators
  • 3,803 posts
  • LocationState College, PA (USA)

Posted 19 September 2011 - 12:26 PM

I know I'm saying this a lot lately, but I don't think I understand your question. When I think of "virtual host", I think of an Apache configuration that allows me to serve multiple Web sites using multiple names from the same computer using the same Web server. To me, this is not an alternative to a browser, and vice versa.
  • 0

#3 Silver

Silver

    Advanced Member

  • Members
  • PipPipPip
  • 53 posts

Posted 19 September 2011 - 12:41 PM

Yes Larry, that’s exactly what I meant by “virtual host”, and many thanks for answering my regrettable unclear question.
  • 0

#4 Larry

Larry

    Administrator/Writer

  • Administrators
  • 3,803 posts
  • LocationState College, PA (USA)

Posted 19 September 2011 - 12:52 PM

Okay, then. Well, you're always going to use a browser regardless. I prefer to use virtual hosts myself, because it allows me to keep the code for different sites separate. More importantly, it allows me to run all sites as if they were in the Web root, which they will be when they go on a live server. The cons are that you need to set up the virtual host.
  • 0