albtechportal

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Saturday, 16 November 2013

Web Servers - Advantages

Posted on 11:56 by Unknown
There are many advantages to using a web server within your development environment. Of course, in a production hosting environment, a web server is essential. And, depending on your website, a web server could indeed be essential in your development environment.
When I say "development environment", I'm referring to a copy of your website, usually on your local machine, that you use to perform updates before you commit them to the live (production) environment.
In practice, you could have many copies of your website for different purposes (such as testing, training, protypes etc), but let's just call it "development environment" for now.
Here are some advantages of using a web server within your development environment:
  • Your local website behaves more like the live one. For example, you can configure directory security, test your custom error pages etc before commiting them to the production environment.
  • You can use server-side scripting languages such as PHP and ColdFusion.
  • Allows you to standardize your coding. For example, you can use root-relative paths for your image references and hyperlinks (i.e. "/directory/image.gif"). In other words, your paths can represent the website structure, rather than the directory structure of your computer.
  • Knowledge. The knowledge you gain from using your own web server will help you understand how it works in the live environment. This will most certainly help you when you need to communicate with your hosting provider - you'll be able to use terminology that makes it easier for them to understand your request/issue.

Viewing HTML Files Without a Web Server

When someone learns how to code HTML, chances are, one of the first things they learn to do is how to view their (newly created) HTML file. They will learn that you can simply double click on the HTML file, and this will launch it in their web browser. And from that point on, they can view their web page/website as it was intended to be viewed.
Here are some examples of what the URL could look like when viewing a web page without a web server:
  • file:///C:/Documents%20and%20Settings/Homer%20Simpson/My%20Documents/index.html
  • file:///C:/Inetpub/wwwroot/index.html
These examples are using the file protocol in order to display the files.

Viewing HTML Files With a Web Server

One problem with the above method is that, you're not viewing the website using the HTTP protocol (you're using the file protocol instead).
Now, this isn't normally a problem if you're only using client side languages such as HTML, CSS, and client-side JavaScript. But it is a problem if you're trying to use a server-side language such as PHP, ColdFusion etc.
Also, even if you're not using a server-side language, it could still cause you problems with developing a website that behaves exactly how it should on the web.
When you view a web page via a web server, the URL begins with "http://". Also, the URL will consist of either an IP address or a domain name/host name.
Here are some examples of what the URL could look like when viewing a web page via a web server:
  • http://127.0.0.1
  • http://localhost
  • http://www.quackit.com
  • http://dev.quackit.com
When you first set up a web server, you can usually navigate to your default web site using http://localhost or http://127.0.0.1. When you add more websites, you'll need to create your own URLs for them (via a DNS server or Hosts file), then assign that URL to your websites via your web server.
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in Servers, WebServer | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • ‘Strata’ for iOS and Android game review
    There are games that are fun. There are games that look great. And then there are games that do both. Strata is one such game that h...
  • Call of Duty: Ghosts Review
    Developer: Infinity Ward Publisher: Activision Platforms: PC, X360, PS3, PS4, Xbox One Price: £39.99 Reviewing a Call of Duty game is a ...
  • Review: Seagate 600 480GB SSD
    Seagate Joins the Fray It’s been quite an interesting turn of events over the past couple years in the storage industry. Whereas practical...
  • CCBoot - LAN Boot Software for Windows
    LAN Boot Solution Background LAN boot is a technology based on IP (Internet Protocol), UDP (User Datagram Protocol), DHCP (Dynamic ...
  • How To Splice Fiber Optic Cable - Mechanical Splice
    Instructions for splicing fiber optic cable with the AFL CS004162 mechanical splice kit. Watch quick overview video at bottom of post. 1.0 ...
  • Smart Power Strip now works with SmartThings WiFi hub to keep your home always connected
    If you couldn't tell by its name alone, the Smart Power Strip's a card-carrying member of the 'internet of things' or, for ...
  • Xbox One vs. PS4: How They Stack Up Today
    Two new gaming consoles. Both very powerful. Both very ambitious. Both about to meet head to head... and do battle for your time, money an...
  • ASUS R9 270X DirectCU II TOP 2 GB
    AMD's new Radeon R9 270X draws its lineage more from the Radeon HD 7800 series than any other. The R9 270X is, for all intents and purp...
  • Corsair Raptor M40 Review
    Manufacturer: Corsair UK price (as reviewed): £44.99 (inc VAT) US price (as reviewed): $59.99 (ex Tax) Along with the Raptor M30, Corsai...
  • Intel NUC DC53427RKE / HYE Review
    Manufacturer: Intel UK Price (as reviewed): £308.32 (inc VAT) US Price (as reviewed): $539.99 (ex TAX) Preferred Partner Price: £308.32...

Categories

  • Android
  • Apple
  • Audio
  • Blogger
  • C/C++
  • Cabling
  • Cameras
  • Cases
  • CISCO
  • Cooling
  • CPU
  • Desktop
  • DNS
  • Ebook
  • Fiber Optic
  • Gadgets
  • Game
  • Google
  • Graphic Card
  • Hardware
  • HDD
  • HTC
  • HTMLCSS
  • Hyper-V
  • Intel
  • iOS
  • iPad
  • Iphone
  • IT
  • jQuery
  • Laptop
  • Linux
  • Mac
  • MacTut
  • Microsoft
  • Mobile
  • Mouse
  • Networking
  • News
  • Nexus
  • Nokia
  • Nvidia
  • OS
  • PERIPHERALS & COMPONENTS
  • Photoshop
  • Printers
  • Programming
  • Projectors
  • PS4
  • Ram
  • RedHat
  • Review
  • Samsung
  • Scanners
  • Seagate
  • Security
  • Server2008
  • Server2012
  • Servers
  • Smartphone
  • Software
  • Sony
  • Storage
  • Tablets
  • TechNews
  • Template
  • Tutorials
  • TV
  • Ubuntu
  • Voip
  • Webdesign
  • Webiste
  • WebServer
  • Win7
  • Win8
  • Windows Phone
  • Wordpress
  • Workstation
  • XBOX

Blog Archive

  • ▼  2013 (495)
    • ►  December (35)
    • ▼  November (332)
      • DesktopOK 3.71 + Portable
      • Lynda - Up and Running with iOS SDK with Ron Lisle
      • SIM-free BlackBerry Z10 now available for $199
      • Hands-on with the Fitbit Force
      • Lenovo IdeaCentre Erazer X700 Gaming PC Review
      • LG G2 to get the Android KitKat update in Q1, 2014
      • Image shows Nokia Lumia 929 in white; leak reveals...
      • Watch Out for Seagate Drives Allegedly Sold Under ...
      • Starting a Website? Get a Domain Name and Hosting ...
      • Our Favorite Android, iOS and Windows Phone Apps o...
      • iBuypower Chimera 4SE FX Ultimate: AMD Gaming PC
      • How to Buy a Business Desktop
      • Google Nexus phones are vulnerable to rebooting vi...
      • Android 4.4 KitKat now seeding to Korean LG G2
      • Best For Music: PS4 or Xbox One?
      • Fix your Mac yourself with the new TechTool Pro 7!
      • How to buy the right sound bar to go with your TV
      • Understanding LSI SandForce SF3700 Series Controller
      • ASUS R9 270X DirectCU II TOP 2 GB
      • FIFA rolls out iOS and Android apps ahead of 2014 ...
      • How to Protect Wi-Fi network From Hackers
      • Recover Deleted Files From External Hard Drive
      • Best Video Editing Apps for Android Users-Must have
      • iPhone 6 Release Date,Full Specifications-whats new
      • How to r00t on server : Free E-Book
      • Samsung Galaxy S5 will not have OIS camera
      • Create Windows 8 Bootable Pendrive
      • Top 5 things to look for in a PC monitor
      • 5 things to look for in an 802.11ac router and ada...
      • 7 ways to maximise your Wi-Fi speeds
      • How to make your own Android ROM
      • VMWare Fusion 6 Opens Windows On Your Mac
      • Control iTunes & Apple TV From The Palm Of Your Ha...
      • Use Your Computer, Don’t Let It Use You: Five “U”s...
      • What’s Trending? Find Out With These Real-Time Dat...
      • Cool Websites & Tools – Remote Website Sharing, Lo...
      • Fascinating Earth: 5 Citizen Science Projects For ...
      • Brix on BRIX – Colin talks to Newegg about the lat...
      • Samsung Galaxy S5 Coming Early 2014 With 64-Bit Ex...
      • Get Your (Linux) Game On: Steam Autumn Sale Highli...
      • Firefox debuts new UI that looks like Chrome, but ...
      • World’s fastest wireless network hits 100 gigabits...
      • Intel Unveils 72-Core x86 Knights Landing CPU for ...
      • United States falls to 31st place in global broadb...
      • Xbox One vs. PS4: How They Stack Up Today
      • Got a Defective Xbox? Here’s How Microsoft Will Ma...
      • ASUS Releases “Faster Than Titan” ROG Mars 760 Vid...
      • How to get Android and iOS apps for free or on the...
      • How to remotely install apps on your smartphone
      • Community driven Core Apps convergence
      • Introduction & Packaging
      • Fix: Change PC Settings does not open in Windows 8...
      • How to make your Android look like it's running iOS 7
      • Switching Monitor Profiles
      • Web Administration Scripts
      • Top 10 apps from last week: Courses123, 500 Firepa...
      • Does the idea of a modular phone appeal to you?
      • How to Boost and Increase your Internet Speed
      • Ubuntu Linux server with ARM processor rolled out ...
      • 6 steps for setting up a small business server room
      • The best home backup plan options - Part 3: Extern...
      • The best home backup plan options - Part 4: Cloud ...
      • The best home backup plan options - Part 5: A comp...
      • How to Backup Files On Your Computer - Part 1: The...
      • The best home backup plan options - Part 2: Same m...
      • How To: Crucial Ballistix Elite Memory Installatio...
      • iBuypower Reveals First Steam Machine Prototypes
      • Kingston ships HyperX Predator 2800MHz Memory for ...
      • Samsung ChatON for Android now supports SMS and MM...
      • Grand Theft Auto: San Andreas coming to Android, i...
      • Google bakes photo goodies deep inside KitKat, but...
      • Oops -- YouTube's new commenting system actually i...
      • WD My Cloud Personal Cloud Server Review
      • Acer Unleashes Affordable, Touchscreen Chromebook
      • Apple iPhone 5s makes up a larger percentage of th...
      • Microsoft giving a free game to owners of Xbox One...
      • Samsung Galaxy S4 Google Play edition scores Andro...
      • Apple iPad mini 2 vs Google Nexus 7
      • Sony resetting some PSN passwords as a 'precaution...
      • Chromecast stand-in CheapCast now beams browser ta...
      • Galaxy S5 rumors, the Snapdragon 805 chip, and wil...
      • What about the Wii U?
      • Red Mac Pro Designed by Jony Ive, Marc Newson Fetc...
      • HTC One GPE getting Android 4.4 KitKat
      • BlackBerry ousts marketing and operations chiefs, ...
      • Recuva Data Recovery Software: Recover deleted fil...
      • Mass-market HTC One in Gold goes official
      • Assassin's Creed: Pirates launches for phones and ...
      • WP to put pressure on iOS in enterprise market
      • New Tegra 4-powered Nook leaked from GFXBench
      • Apple confirms PrimeSense buyout, paves way for mo...
      • Pen computing returns: Revenge of the stylus
      • 3D Systems Sense review: a 3D scanner for the mass...
      • Intel Demonstrates First 64-bit Android Tablet
      • DOOO for iPhone Makes Gorgeous To-Do Lists With Te...
      • Chinese supercomputer twice as fast as closest US ...
      • Best 802.11ac routers
      • Mac vs. PC: Is an Apple computer really better tha...
      • Android 4.4 Kit Kat Update Rolling Out to AT&T Mot...
      • Review: Seagate 600 480GB SSD
    • ►  October (12)
    • ►  September (27)
    • ►  August (2)
    • ►  July (10)
    • ►  June (42)
    • ►  May (35)
Powered by Blogger.

About Me

Unknown
View my complete profile