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
20
votes
2 answers

How do I run Apache 2 on Alpine in Docker?

According to Alpine wiki I have to run rc-service apache2 startafter installation of Apache 2. However, there's no rc-service in the Alpine running inside the container. How do I get the service command to run inside Docker container?
Psycho Punch
  • 6,418
  • 9
  • 53
  • 86
20
votes
8 answers

Message: ini_set(): A session is active. You cannot change the session module's ini settings at this time

I created a login page with codeigniter,but i get the php message. Message: ini_set(): A session is active. You cannot change the session module's ini settings at this time how to fix this? view (login.php)
noushid p
  • 1,453
  • 5
  • 16
  • 29
20
votes
4 answers

How to remove a cookie in Apache

I need to remove a cookie from the HTTP request that gets to the server. Doing it on the client (that writes this cookie) or on the server (that reads it) is not an option. I have Apache 2.0 that proxies requests between client and the server, so I…
Sergey Golovchenko
  • 18,203
  • 15
  • 55
  • 72
20
votes
8 answers

What Perl RESTful framework do you recommend?

Hi I'm looking for a Perl RESTful framework that have to : work under apache2/mod_perl2 be simple be elegant be light be flexible Am I just dreaming or can I avoid the 'Roll our own' approach? What framework would you recommend?
jeje
  • 3,191
  • 3
  • 26
  • 41
19
votes
7 answers

Apache (2) throws "No such file or directory: exec of '/usr/lib/cgi-bin/fst.cgi' failed"

I am working in Ubuntu 10.10 (Maverick Meerkat) and running my CGI script under Apache, but it is showing me the following error... [Sat errorNo such file or directory: exec of '/usr/lib/cgi-bin/fst.cgi' failed [Sat Oct 22 02:56:45 2011] [error]…
Manju
  • 191
  • 1
  • 1
  • 5
19
votes
4 answers

Treat URL path as virtual host using Apache

The problem is that I have only one domain name on which three different products need to be run (two of them PHP based and one python). So I need to treat the path in the URL as a different virtual host;…
Ruslan
  • 1,208
  • 3
  • 17
  • 28
19
votes
1 answer

Django, Apache2 on Google Kubernetes Engine writing Opencensus Traces to Stackdriver Trace

I have a Django web app served from Apache2 with mod_wsgi in docker containers running on a Kubernetes cluster in Google Cloud Platform, protected by Identity-Aware Proxy. Everything is working great, but I want to send GCP Stackdriver traces for…
Furbeenator
  • 8,106
  • 4
  • 46
  • 54
19
votes
1 answer

Difference between httpd.conf, virtual host in apache2, why none in ubuntu using sudo-apt-get install

I am trying to follow some guides about starting up apache2.2 I'm ubuntu 12.10 What is the httpd.conf file, and is it the same as a vhost file? Where is it located? I did a 'find' using the command line and it is not found. Does this mean that I…
user798719
  • 9,619
  • 25
  • 84
  • 123
19
votes
3 answers

PHP remote debugging: XDebug can't connect to JetBrains php Storm client

i's like to get remote debugging to work with the following software configuration: Win 7 Pro 64bit WAMP Server 2.2 (32bit) incl. Apache 2.2.22, PHP 5.4.3, XDebug php_xdebug-2.2.1-5.4-vc9.dll JetBrains PHPStorm 4.0.3 1.) WAMP is up and running, my…
cimmx
  • 191
  • 1
  • 1
  • 4
19
votes
7 answers

How to fix ERROR: Site domain.com does not exist, while adding subdomain to apache2?

I'm trying to add subdomains to my home server. svn.domain.com trac.domain.com Due to dynamic IP I use dyndns service, on top of that I have domain.com hosted somewhere else. I created CNAME for subdomains on remote host to point to my…
user796443
18
votes
6 answers

How to disable Apache gzip compression for some media files in .htaccess file?

I would like to disable gzip compression for some media files which are already compressed on an Apache server via the .htaccess file. Reason: as it's written on e.g. jPlayer's site, gzip encoding should be disabled for media files: "Media files are…
Sk8erPeter
  • 6,899
  • 9
  • 48
  • 67
18
votes
4 answers

How Can I Have A Conditional .htaccess Block?

This is an Apache question you've probably come across before. I want to have one source package that I can deploy to my workstation, my staging server, and my production server, but for it to load different .htaccess settings based on what the URL…
Volomike
18
votes
3 answers

Is someone trying to Hack? Receiving Suspicious Requests on my Apache2 Ubuntu 18.04 server

Today I was checking my server logs then I noticed some requests which I think is that someone is trying to get into my server. I am hosting PHP Laravel (6) based admin panel and API's on it. I have also checked my public routes and permissions of…
faizan.sh
  • 527
  • 1
  • 5
  • 16
18
votes
1 answer

How do I list all repositories with the SVNParentPath directive on Apache+SVN?

I'm using SVN through Apache with dav_svn_module like this: DAV svn SVNParentPath C:/svn_repository AuthName "Subversion Repository" ... This lets me access my…
Michael Haren
  • 105,752
  • 40
  • 168
  • 205
18
votes
3 answers

How do I redirect 404's to index.html and rewrite the URL to the home page URL?

I changed a bulky, complex website into a small one-page website, so users need to be redirected from 404s to index.html. I put this in .htaccess: ErrorDocument 404 /index.html If you type mydomain.com/lalalalala, this redirects to the home page…
AnnaBlabber
  • 432
  • 1
  • 7
  • 20