AH-64 Apache

Editor: Dmytro Sokol 699 5 min Audio

What is an Apache server?

Apache is a free open-source cross-platform web server. It supports BSD, MS Windows, Linux, Mac OS, BeOS, Novell NetWare and is used by the hosting companies to process the website queries. Owners of shared hosting package only have partial access to change this server or no such access at all. If you purchase a VPS or a dedicated server, you will be able to change any settings.

How to properly set up an Apache server?

Normally an Apache server setup is performed in httpd.conf file. .htaccess file is used in cases when changing global server settings is not possible or settings are being changed for one specific website. You can set up a web server using this manual. In most cases, the .htaccess file can be found in the root folder on the server where the particular website is located, depending on which directory you intend to configure. The server reads the content of .htaccess and applies the settings specified in the file. We will list the main parameters that can be changed in the .htaccess file and might be useful for the developers.

Automatic redirect

  • Redirect from http://www.site.com to http://site.com
  • Reverse redirect from http://site.com to http://www.site.com
  • Moving from an old domain to a new one
  • Redirecting site.com/page or site.com/page/ to site.com/page.html
  • And reverse from site.com/page.html to site.com/page
  • Removing forward slash at the end of the URL (site.com/page/ to site.com/page)
  • Redirecting of all pages of one section site.com/section-1/section-2/page to pages of a different section site.com/section-1/page

How to set up redirects?

Error customization

  • In case an error occurs the user will see a nice, custom made error page instead of the default error message.

How to set up error processing?

Website security settings

  • Injection protection
  • Image theft protection
  • Blocking users by IP
  • File and folder protection
  • Working with User agents

How to configure website security?

Website pages encoding

  • Working with pages encoding on a server level

How to set up encoding?

Website optimization

  • Speeding up the website
  • Сaching
  • Changing the main page of the website

How to optimize a website?

PHP setup

  • Working with PHP setting on a server level

How to configure PHP?

Information on Apache

Configuration reliability and flexibility are among the main advantages of Apache. Using this software allows to modify error messages and use DBMS for user authentication. Starting April 1996 and up till now, Apache was the most common and popular HTTP server on the Internet. According to the August 2007 statistics, it was the server of choice for 51% of all the webservers. By May 2009 the number decreased to 46% but went up to 59% in January 2011. By January 2016 Apache was used by 33.56% of all the webservers, which is over 304 million websites.

Currently, Apache is the second most popular web server after Nginx. Apache is maintained by an open community of developers patronized by the Apache Software Foundation. Apache is included in most software products like IBM WebSphere and DBMS Oracle.

Apache is equipped with a virtual hosts mechanism that allows maintaining multiple domain names (web projects) with their unique content on one IP address. It is possible to specify individual settings for each module and core, as well as access limitation for the whole website or separate files, per each virtual hosting account. Apache ITK allows launching the httpd process with git and uid identifiers for each virtual hosting. There also are modules that allow limiting the usage of the server resources (RAM, CPU, Traffic) per each virtual hosting account.

Correlation with programming languages and software

There are multiple modules that allow Apache to support development systems and multiple programming languages. Some of those are:

  • Python (mod wsgi, mod python);
  • PHP (mod_php);
  • Perl (mod perl);
  • Ruby (apache-ruby);
  • ASP (apache-asp).

In addition to that, Apache supports FastCGI and CGI that allow executing programs in different programming languages, like Java, sh, C, C++.

Apache official website is http://www.apache.org/

Dmytro Sokol
Did not find an answer to your question?
Ask the experts! Answers are quick and go directly to your email.

Adding confirmation "I'm not a robot" you also agree to receive messages from hostings.info and accept its Privacy Policy, allowing hostings.info to store and process your personal information indicated above to provide requested content.

Ratings of hosting providers by site tasks
Hosting price

We highly recommend not to purchase the cheapest hosting package. Usually, they come with a row of issues: the server is often down, the hardware is outdated, lousy and slow support, registration and payment errors, etc.

For your convenience, we have created a tool that can help you to choose the right hosting package for you just by answering a few simple questions.

CMS

CMS is a content management system. A lot of hosting providers offer so-called CMS optimized packages. However, this is a marketing trick because most CMSs do not have special software or hosting requirements.

Free trial

Trial period is a period of time, usually from 7 to 30 days, during which you can use the hosting services for free to test them.

Moneyback policy allows the customer to receive a refund for his order within a certain period after the purchase.

OS

OS means the operating system is installed on the server. We recommend to choose Linux hosting unless your website requires another OS.

Other

Bulletproof hosting - it’s a type of service that allows to host almost any type of content, even the restricted one (adult content, warez, spam etc). Bulletproof hosting providers do not remove your content in case someone reports an abuse.

Unlimited hosting - refers to companies that provide packages with unlimited disk space, bandwidth, number of domains, databases or email accounts, etc. This is usually a marketing trick but sometimes you can find something worth a try.

Secure hosting - it’s a type of service when the hosting provider is mostly responsible for the security of the user’s account: updates the software installed on their servers, provides an antivirus and malware scanner, firewalls and basic anti-DDoS protection, etc.

DDoS-protected hosting - companies that provide packages that include anti-DDoS protection. These packages are considerably more expensive than regular ones. Nevertheless, they’re totally worth their price because the company will ensure that your website is secured from cyber attacks.

Technologies

Most websites require MySQL and PHP installed on the server to work correctly. Almost all hosting providers support these technologies.

ASP.NET is a Microsoft web application development platform.

Control panel

The more comfortable the control panel is, the easier will it be for you to change the website and hosting account settings.

Most hosting providers that are in TOP20 in our rating offer user-friendly control panels, such as cPanel, Plesk or DirectAdmin. That’s why we recommend to pay attention to other, more important parameters, while choosing a hosting provider.

Disk type