Web Servers

32K

Solutions

21K

Contributors

A web server refers to the software that helps to deliver web content that can be accessed either through the Internet or through an intranet. The primary function of a web server is to store, process and deliver web pages to clients. The communication between client and server takes place using the Hypertext Transfer Protocol (HTTP). The most common use of web servers is to host websites, but there are other uses such as gaming, data storage, running enterprise applications, handling email, FTP, etc.

Share tech news, updates, or what's on your mind.

Sign up to Post

When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and protection.
1
Comprehensive Backup Solutions for Microsoft
LVL 4
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

WebHosting
What You Need to Know when Searching for a Webhost Provider
0
 

Expert Comment

by:Mahesh Patil
Comment Utility
Web hosting is a service that allows organizations and individuals to post a website or web page onto the Internet. A web host, or web hosting service provider, is a business that provides the technologies and services needed for the website or webpage to be viewed in the Internet. Websites are hosted, or stored, on special computers called servers.

For more Information visit us at:  https://www.host.co.in/
0
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
0
Transparent Cloud
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and disk performance.
0
 
LVL 2

Author Comment

by:Superb Internet Corporation
Comment Utility
Understood. Thanks for the help. Do you need me to rewrite it? Let me know.
0
Custom 404 Error Message
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either.
In this article, I will show you how to enable the custom 404 error page, for your site.
1
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
1
 
LVL 17

Expert Comment

by:kadadi_v
Comment Utility
Please make sure IIS_USRS having the Full Control to your Wordpress folder recursively.

Regards,
VK
0
Introduction
This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the case for informational sites) and for this reason, the site should be able to recognize repeated identical requests and return an immediate cached response, rather than going back to the database queries for the reformulation of the original response. 

The rationale for this strategy comes from recognition of the difference in speed between in-memory processes and disk-based processes.  While memory access is typically measured in nanoseconds, even a very fast disk spinning at 7200RPM requires 8.3 milliseconds for a single rotation, and the nature of file lookup or database operations is such that a great many disk rotations may be required for some queries.  Since the ratio of nanoseconds to milliseconds is several orders of magnitude, it follows that cache may produce substantial quantitative improvements in server performance.

Characteristics of a Cache
Popular cache systems include Memcached and Redis, and it is also possible to use the file system for cache storage, but in-memory systems will give the best performance.  All cache systems work in similar ways.  They are key:value data storage systems.  Access to a value in the cache is made …
0
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key.


We will concentrate on single domain certificates in this post but there are wildcard certificates available for companies that use lots of sub-domains.


It’s easier if your email is on the Admin Email contact  of the domain. My recommendation is to get this done first or you will be waiting on emails to someone else at various stages of the process. Here is GoDaddy’s guide for updating domain contact information.


Buying SSL Certificate or Renewal


If you need a new SSL you can find them on the Internet for as little as $5/year.  Be sure to check with your host to ensure the cheap SSLs can be installed on your host. If your SSL is up for renewal you need to renew the SSL or go through the entire procedure for new SSL. It’s easier to renew. 

Certificate Signing Request (CSR)


Once you have purchased a SSL or renewal you will need to generate a Certificate Signing Request (CSR) from your server or utilize an existing one if the server has not changed. Here’s a link to GoDaddy’s CSR generation and SSL Installation page. This request has to be approved by the domain Admin Email contact so this goes much faster if that’s you.


Download and Install the SSL Certificate

0
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server when DNS changes has been propagate (which can take hours).

One of the tricks I do to simulate that DNS has already propagated, even if you haven't still changed your DNS server to point to your new web server, is to edit the file c:\Windows\system32\drivers\etc\hosts.

This file is a text file that acts as a local DNS, where you can see some names and IPs such as:

127.0.0.1      localhost

You can add your new server's IP and your domain to simulate the new configuration on the DNS. After all tests run ok, you can make the changes on your DNS server and then remove the line you added on hosts file. Then wait for the DNS to propagate, but you don't need to cross your fingers as you have already tested your new server with your domain.

This is also userful for new sites too (not only for moving sites from server). You normally buy a domain, and then develop the site, but this is not correct as any development errors will be online for some periods of time.

You can develop your site without buying a domain (but use the domain from your computer where you added the IP of your server and the domain on hosts file) and when development is finish, you can buy the domain so your private domain on hosts files gets public. …
1
 
LVL 15

Author Comment

by:gplana
Comment Utility
You are right. On Mac (and Linux) you should use sudo. On Windows 7 and above you should execute with elevated privileges or otherwise you can't save the file. Thanks for your comment! :)
0
 
LVL 7

Expert Comment

by:Robert Saylor
Comment Utility
No problem. Well mostly Mac is sudo. RedHat based including centOS is not sudo by default where Ubunto is sudo by default.
0
Hey folks, 'bout time for me to come around with a little tip.

Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts.

Now, though it would be nice to be able to simply plug it in and go, unfortunately this is not the case, and there is some configuring to do.

Please see here: http://learn.iis.net/page.aspx/1089/iis-80-application-initialization/

Now, this article is not about the IIS extension, this is about priming or warming up your site.

Now, this is not a necessity, but if you are like me, you take advantage of .Net's Runtime.Caching, so simply priming your App Pools may not be enough.  My SRE (Site Rendering Engine) for one highly utilizes the server's in memory cache, as well as the Runtime.Cache, so the very first load takes a bit.

When we can prime the site itself, we can ensure that hits to it after the fact will be quick.  Thus the need for a WarmUp.

What I've done is pretty simple, yet extremely effective in doing just this.   All it does is fire up a WebClient, passes a valid User-Agent header, and pulls the site.

NOTE:  This is not limited to IIS 7.5.  It should work on any windows system, so long as it has the .Net 4 framework installed.

Here is some code for you all.  Mind you it is a VS 2010 project, so I will attach the source files as well.  Make sure to modify the Settings.xml file, just replace the url and page attributes with whatever …
0
How Blockchain Is Impacting Every Industry
LVL 4
How Blockchain Is Impacting Every Industry

Blockchain expert Alex Tapscott talks to Acronis VP Frank Jablonski about this revolutionary technology and how it's making inroads into other industries and facets of everyday life.

Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after reading, you should get a clear understanding of what each does and which one is best in a given scenario.

Using CFSet

Creating a copy of a Structure using CFSet will result in a new variable having a reference to the original Structure; therefore, changes will affect the original Structure.

Example:
<cfset structtest = structnew()>
<cfset structtest.txt = "Testing">
<cfset structtest.nestedstruc = structnew()>
<cfset structtest.nestedstruc[1] = "sri">
<cfset structtest.nestedstruc[2] = "Kanth">
<cfset Variables.st1 = structtest>

<cfdump var="#structtest#" label="original structtest Structure">

<cfdump var="#st1#" label="st1 struct - using Cfset">

<cfset st1.txt = "Testing1">
<cfset st1.nestedstruc[2] = "Kanth M">
<h3> After assigning Values </h3>
<cfdump var="#structtest#" label="original Session Structure">

<cfdump var="#st1#" label="st1 struct - using Cfset">

Open in new window

Using CFSet
In the above code, we have a Structure structtest with a simple variable txt and nested Structure nestedstruc.
Since st1 references structtest, we can see that values updated for txt and nestedstruc of st1 are also reflected in the original Structure structtest.

Using Duplicate

Creating a copy of a Structure using Duplicate will result in a new variable containing no reference to the original Structure but rather a snapshot of its current contents.

Example:

Open in new window

0
This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like HostDime & LiquidWeb), it is easier than ever to manage and run your own dedicated server. You can have guaranteed uptime from your datacenter, and outsourced support starting at $30/month (considering average rate for the Management Service by LiquidWeb). All you need to do is set up the server and get going. Whether it is for a web hosting company or a couple of personal websites, an inexpensive linux server is powerful, reliable, and easy to setup.

WebHostManager(WHM) is a common linux based tool for managing websites on a server. cPanel is a common control panel to manage an individual website. It allows you to add email accounts, view stats, make backups, install programs, etc. These 2 tools are the most inexpensive set used commonly to manage hosting accounts, and you will find them very prevalent in the budget shared hosting world. It usually adds about $48/month (buycpanel.com) to the cost of a dedicated server but provides most of the features of the more expensive tools.

Whenever you order a dedicated server from a datacenter, you will receive a welcome email with details of the server including the server name, ip addresses, and root password. This information will allow you to setup and configure WHM so that you …
1
 
LVL 18

Administrative Comment

by:WaterStreet
Comment Utility
Hi Andy1988

Looks like a very helpful tutorial.

I'm one of EE's Page Editors assigned to these zones.

I'm changing this Article's status to Author Review so that you can edit it, as discussed below.  When you have responded to the issues below, make a posting here to alert me.  I'm telling every author that I consider unpublished Articles as subject to deletion, if at any time 30 days shall elapse without requested feedback from the author.

1.   You need to tell what are the units for the rates/mo that you mention in the first paragraph.  Eruos, GBP, Dollars, etc.  Even if we were not an an international site, the units should still be given.

2.   If you are quoting costs, then you need to tell who is charging those amounts and give an example of how you made the calculation.  The unit costs might be volume dependent.  For example, if you say $99/mo then what should immediately follow it is the explanation in parentheses: "(assuming Microsoft list price for [product name] at $990 for a 10 user pack)"  Or, you could put an asterisk on the dollar amount, and then have an asterisked note with the explanation at the end.
0
Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you !

First we need a table user_email with columns user_id , email , subject , opened , dateopened to insert  a record when we send out an email with the email details and then update the same record when email is opened with current date and time and opened flag to true.

user_email
------------

user_id  - userid of the user
email - email of the user
subject -  store subject of the email
opened - set the flag true after the email is read, default is false
dateopened -  insert date and time when the email is opened


Example Email
<cfmail to="XXXX@XX.com" 
        from="XXXX@XX.com" 
        subject="Test tracker" 
        type="HTML">
    <img src="http://yourdomain.com/image.cfm?id=1234" />
</cfmail>

Open in new window


Please note the value of the src attribute of the img tag is pointing to a .cfm file and not to a physical image file.  In addition, the id URL parameter is concatenated to the end of the URL for image.cfm in order to uniquely identify each user/email which will be useful in tracking later.

After sending email Insert record in to user_email table with the details of email sent so that we can update the same record  and set the opened flag to true when the email is opened.
<cfquery>
    insert into user_email (
        user_id,
        email,
        subject
    ) values (
        1234,
        'XXXX@XX.com',
        'Test tracker'
    );   
</cfquery>

Open in new window

 
The image.cfm file code

Open in new window

0
A web service is a software related technology that facilitates machine-to-machine interaction over a network.

This article helps beginners in creating and consuming a web service using the ColdFusion Markup Language (CFML) and associated application server.  The article will go through the following steps:

Create a ColdFusion component (CFC).
Create functions within a CFC.
Convert a function to web method to make the CFC a web service.
Publish / test the web service.
Consume the web service.

1. Create a ColdFusion component (CFC)


If you have been developing custom functions and ColdFusion components you are already well on your way to creating a web service.

ColdFusion components are almost OOP based but not totally; they have methods and constructs, and they provide reusable code.



If you know what functions achieve in any programming language, you are not far from understanding components. They turn functions into objects whose methods can be accessed.

The coldfuson component file should be in <cfcomponent>.
<cfcomponent>
      <cffunction name="myFunction"  returntype="string" output="no">
            <cfargument name="myArgument" type="string" required="yes">
            <cfset myResult="Welcome Srikanth">
            <cfreturn myResult>
      </cffunction>
</cfcomponent>

Open in new window

2. Create functions within the CFC


For those who are new to functions in CF.

You can write functions in CFML page:
<cffunction name="myFunction"  returntype="string" output="no">
    <!--- requires a string --->
    <cfargument name="myArgument" type="string" required="yes">
    <cfset myResult=myArgument>
    <!--- returns the same string --->
    <cfreturn myResult>
</cffunction>

Open in new window


And access them as below:
<cfoutput>
   #myFunction("Hi How are you")#
</cfoutput>

Open in new window


Now let's add this is a very simple function which accepts a string and returns the same string to our CFC.

Open in new window

2
In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not?

For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show you how to accomplish this task programmatically within your CFML-based web application.


The Code
<cffunction name="urlExists" output="no" returntype="boolean">
    <!--- Accepts a URL --->
    <cfargument name="urlval" type="string" required="yes">
 
    <!--- Initialize result to FALSE unless returns valid status --->
    <cfset var result=false>
 
    <!--- Attempt to retrieve the URL with method head  to get only the header info in response --->
    <cfhttp url="#arguments.urlval#" method="head" resolveurl="no"  timeout="1000" />
 
    <!--- Check That a Status Code is Returned --->
    <cfif isDefined("cfhttp.responseheader.status_code")>
        <cfif cfhttp.responseheader.status_code NEQ "404">
            <!--- If NOT 404, return TRUE --->
            <cfset result=true>
        </cfif>
    </cfif>
 
    <cfreturn result>
</cffunction>

Open in new window


The function requires that the developer passes in a URL as a parameter and then returns a boolean flag indicating the existence of the specified URL.

For improved performance, the function hits the url using CFHTTP and HEAD method to get only the header status code as a response, rather than retrieving all the page information which we would using GET method.  Thus the process becomes much faster.


The Usage
<!--- set a variable like chkurl to any URL. --->
<cfset chkurl = "http://your.url.here" />

<!--- calling the function urlExists and passing the chkurl value to the function within a cfif conditional --->
<cfif not urlExists(chkurl)>
    <!--- broken link, display alternate information. --->
<cfelse>
    <!--- link valid, continue processing requiring the checked URL. --->
</cfif>

Open in new window


As simple as that!

And you can even put this function in a ColdFusion Component (CFC), allowing it to be used in any application you want.


The Need
2

Web Servers

32K

Solutions

21K

Contributors

A web server refers to the software that helps to deliver web content that can be accessed either through the Internet or through an intranet. The primary function of a web server is to store, process and deliver web pages to clients. The communication between client and server takes place using the Hypertext Transfer Protocol (HTTP). The most common use of web servers is to host websites, but there are other uses such as gaming, data storage, running enterprise applications, handling email, FTP, etc.