Questions tagged [apache2]

Apache (HTTP Server) /əˈpætʃiː/ is a modular cross-platform web server software with a large variety of features(called modules) including SSL, compression, log, proxy and server-side programming language interfaces like Perl, Python, Tcl, and PHP.

The Apache HTTP Server, commonly referred to as Apache ( /əˈpætʃiː/), is web server software notable for playing a key role in the initial growth of the World Wide Web. In 2009 it became the first web server software to surpass the 100 million website milestone.
Apache was the first viable alternative to the Netscape Communications Corporation web server (currently known as Oracle iPlanet Web Server), and has since evolved to rival other web servers in terms of functionality and performance. Typically Apache is run on a Unix-like operating system.

Apache is developed and maintained by an open community of developers under the auspices of the Apache Software Foundation. The application is available for a wide variety of operating systems, including , GNU, FreeBSD, , , Novell NetWare, AmigaOS, Mac OS X, Microsoft , OS/2, TPF, and eComStation. Released under the Apache License, Apache is characterized as open-source software.

Apache supports a variety of features, many implemented as compiled modules which extend the core functionality. These can range from server-side programming language support to authentication schemes. Some common language interfaces support , , , and . Popular authentication modules include mod_access, mod_auth, mod_digest, and mod_auth_digest, the successor to mod_digest. A sample of other features include SSL and TLS support (mod_ssl), a proxy module (mod_proxy), a URL rewriter (also known as a rewrite engine, implemented under mod_rewrite), custom log files (mod_log_config), and filtering support (mod_include and mod_ext_filter).
Popular compression methods on Apache include the external extension module, mod_gzip, implemented to help with reduction of the size (weight) of web pages served over HTTP. ModSecurity is an open source intrusion detection and prevention engine for web applications. Apache logs can be analyzed through a web browser using free scripts such as AWStats/W3Perl or Visitors.

Virtual Hosting allows one Apache installation to serve many different actual websites. For example, one machine with one Apache installation could simultaneously serve www.example.com, www.test.com, test47.test-server.test.com, etc.
Apache features configurable error messages, -based authentication databases, and content negotiation. It is also supported by several graphical user interfaces (GUIs). It supports password authentication and digital certificate authentication. Apache has a built in search engine and an authorizing tool and supports .

Although the main design goal of Apache is not to be the "fastest" web server, Apache does have performance comparable to other "high-performance" web servers. Instead of implementing a single architecture, Apache provides a variety of MultiProcessing Modules (MPMs) which allow Apache to run in a process-based, hybrid (process and thread) or event-hybrid mode, to better match the demands of each particular infrastructure. This implies that the choice of correct MPM and the correct configuration is important. Where compromises in performance need to be made, the design of Apache is to reduce latency and increase throughput, relative to simply handling more requests, thus ensuring consistent and reliable processing of requests within reasonable time-frames.

The Apache version considered by the Apache Foundation as providing high-performances is the multi-threaded version which mixes the use of several processes and several threads per process.

Unless you are asking about how to write Apache modules, questions with this tag probably belong on serverfault.com rather than stackoverflow.com.

Reference

7951 questions
503
votes
32 answers

Apache2: 'AH01630: client denied by server configuration'

I get this error when trying to access localhost via a browser. AH01630: client denied by server configuration I checked my site folder permissions using: sudo chmod 777 -R * Here is my configuration file: ServerAdmin…
Hazem Hagrass
  • 9,329
  • 10
  • 32
  • 54
314
votes
11 answers

Site does not exist error for a2ensite

I have cmsplus.dev under /etc/apache2/sites-available with the following code, ServerAdmin master@server.com ServerName www.cmsplus.dev ServerAlias cmsplus.dev DocumentRoot /var/www/cmsplus.dev/public …
Anshad Vattapoyil
  • 23,145
  • 18
  • 84
  • 132
185
votes
6 answers

How to reload apache configuration for a site without restarting apache?

I have edited the variable AllowOverride for one of my websites in sites-enabled directory. How do I reload the new configuration without restarting apache? Is it possible?
hpn
  • 2,222
  • 2
  • 16
  • 23
181
votes
3 answers

Only variable references should be returned by reference - Codeigniter

After the server PHP upgrade I am getting the following error with PHP Version 5.6.2 on Apache 2.0 A PHP Error was encountered Severity: Notice Message: Only variable references should be returned by reference Filename: core/Common.php Line Number:…
Techie
  • 44,706
  • 42
  • 157
  • 243
176
votes
35 answers

CodeIgniter removing index.php from url

My current urls look like this [mysite]index.php/[rest of the slug]. I want to strip index.php from these urls. mod_rewrite is enabled on my apache2 server. In config, $config['index_page'] = ''; My codeignitor root .htaccess file contains,…
Nihar Sarangi
  • 4,845
  • 8
  • 27
  • 32
173
votes
15 answers

413 Request Entity Too Large - File Upload Issue

I am trying to upload 30MB file on my server and its not working. When I upload 30MB file, the page loads "Page Not Found" When I upload a 3MB file, I receive "413 Request Entity Too Large" with nginx/0.6.32 I am trying to find nginx so I can…
Raju Vishwas
  • 1,911
  • 3
  • 13
  • 8
165
votes
3 answers

What is the difference between the 'sites-enabled' and 'sites-available' directory?

What is use of these two directories in Apache 2 and how can we do it?
Amit Mehta
  • 1,777
  • 2
  • 11
  • 3
158
votes
9 answers

Make .git directory web inaccessible

I have a website that I use github (closed source) to track changes and update site. The only problem is, it appears the .git directory is accessible via the web. How can I stop this and still be able to use git? Should I use .htaccess? Should I…
Chris Muench
  • 17,444
  • 70
  • 209
  • 362
131
votes
16 answers

Could not reliably determine the server's fully qualified domain name

I have just installed Apache 2.2.17, and I am using it for the first time. Now when I try to start the server using the command service httpd start it gives me the message: httpd: Could not reliably determine the server's fully qualified domain…
mahesh
  • 4,625
  • 11
  • 42
  • 61
117
votes
8 answers

Configure apache to listen on port other than 80

I use centOS server. I want to configure apache to listen on port 8079. I added LISTEN 8079 directive in httpd.conf. I opened port 8079 in iptables and restarted iptables. I even stopped iptables service. "netstat -nal | grep 8079" shows "tcp 0 0…
vivek.m
  • 3,213
  • 5
  • 33
  • 48
117
votes
8 answers

Correct owner/group/permissions for Apache 2 site files/folders under Mac OS X?

It's hard to find Mac-specific answers to this question on the web, so I'm hoping someone out there can put this one to rest for me? My permissions are screwed up on my sites and I'm not sure how to fix them without just slamming a recursive 777 on…
Fo.
  • 3,752
  • 7
  • 28
  • 44
105
votes
14 answers

Apache won't follow symlinks (403 Forbidden)

I'm having some trouble setting up Apache on Ubuntu. I've been following this guide. # /usr/sbin/apache2 -v Server version: Apache/2.2.17 (Ubuntu) Server built: Feb 22 2011 18:33:02 My public directory, /var/www, can successfully serve up and…
Tim
  • 6,079
  • 8
  • 35
  • 41
104
votes
6 answers

How can I view the complete httpd configuration?

I'm trying to figure out what is the full complete configuration of an httpd setup. All the configurations files are scattered in different files (/etc/httpd/conf.d, httpd.conf, various mod configs) Is there a way to list the final httpd…
Gnafu
  • 1,591
  • 3
  • 10
  • 26
97
votes
7 answers

How can I implement rate limiting with Apache? (requests per second)

What techniques and/or modules are available to implement robust rate limiting (requests|bytes/ip/unit time) in apache?
bd808
  • 1,781
  • 1
  • 22
  • 31
90
votes
6 answers

How to convert .pem into .key?

I already have purchased SSL certificate and i have received certificate and a .pem file as a private key? from the supplier; now i need to convert this .pem key into .key for bitnami Redmine Apache web server in order to make it work. How do I go…
user1644587
  • 909
  • 1
  • 7
  • 4
1
2 3
99 100