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
2
votes
1 answer

apache2 rewrite subfolder and file extension

I want to rewrite domain.com/pages/welcome.php to domain.com/welcome using htaccess under apach2.
John
  • 197
  • 1
  • 2
  • 22
2
votes
1 answer

apache2 not showing flask app on local server

I was following this tutorial: https://pythonprogramming.net/creating-first-flask-web-app/?completed=/flask-web-development-introduction/ On my local server (home machine on local network). Flask itself starts properly >>> python…
tmdag
  • 531
  • 6
  • 17
2
votes
1 answer

Apache pass and login authentication partially failed

I try to add an Apache login and pass authentication. It works ... well, not as intended. I have 2 server names, one ssh and a "normal" one. This is how I've done it so far : AllowOverride AuthConfig order deny,allow allow from…
Rytek
  • 563
  • 8
  • 22
2
votes
4 answers

Is it possible to write an Apache protocol handler in PHP?

I wonder if and how it is possible to write a custom "protocol handler" (listening at a custom port) for Apache 2 in PHP? In C and mod_perl you can write so-called "protocol handlers", which intercept the early Apache stage (after a client socket…
Alexander Farber
  • 21,519
  • 75
  • 241
  • 416
2
votes
2 answers

Accessing the rewritten URI in a php script

So I have a .htaccess file which is performing a rewrite from /testscript1.php/testvar1/testvar2 to /testscript2.php/testvar3/testvar4 (this is an over simplification but you get the idea). Now though in my testscript2.php script when i access the…
Andrew
  • 247
  • 4
  • 9
2
votes
1 answer

Wordpress Environment and Exceedingly high usage (PHP-FPM)

I run an instance of Wordpress on my server. My server needs to support at least 1,000 concurrents at a time. I am using PHP-FPM (PHP 5.4) on Apache with FastCGI as well as Memcache, and APC for my opt-caching. We have two MySQL servers running as…
Matthew
  • 301
  • 5
  • 18
2
votes
0 answers

Understanding the core dump after Segmentation Fault | Phalcon + Php + Apache

I have managed to get the Core dump after a segmentation fault caused in an env that has Phalcon 1.3.1 Php 5.5.9 Apache 2.4.7 Running on Ubuntu 14.04 Core dump : http://pastebin.com/KeWipxU9 Can someone help me to analyse what could be…
greenjambi
  • 181
  • 1
  • 4
2
votes
0 answers

ImportError: No module named flask_sqlalchemy, referer: http://localhost/

Im using flask_sqlalchemy everything looks good from python shell and my script works ok too no problem there but apache2/error.log gives me this [Sat Oct 01 21:37:39.222205 2016] [mpm_event:notice] [pid 9722:tid 140236156835712] AH00489:…
quechon
  • 99
  • 3
  • 10
2
votes
1 answer

Access server using Browser and IP instead of DNS

I want to access my test site from my home by using Firefox and entering IP instead of DNS. My server is AWS Ubuntu and It has Mysql, Apache2 installed. I want to access my test site like this in Firefox: x.x.x.x/test But it showed me 404. When I…
Upside Cat
  • 23
  • 4
2
votes
3 answers

Configuring authentication and authorization in Apache2 with MySQL

I am trying to configure Apache2 so I can use MySQL for authenticating users to access certain pages. Also authorization needs to work so different groups can reach differen pages. Now, I have googled a lot but can't find out how to do this. At…
Nicsoft
  • 3,644
  • 9
  • 41
  • 70
2
votes
1 answer

How to configure Phoenix Framework behind Apache

I'm trying out Phoenix and for reasons beyond my control, I need it to be served through apache2. There's a guide for serving Phoenix behind a proxy webserver but it only gives an example configuration for nginx (which I would be using if I…
PoolOfPeas
  • 383
  • 2
  • 11
2
votes
2 answers

Apache2: Enabled vhost directory is not loading, getting default page instead

My php apache2 site is configured and ready but somehow I keep getting the default page. sworup@sandwitchslayer:/etc/apache2/sites-enabled$ ls -l total 0 lrwxrwxrwx 1 root root 34 Sep 17 00:38 sworup.com.conf ->…
Sworup Shakya
  • 1,328
  • 3
  • 16
  • 44
2
votes
1 answer

RewriteRule is redirecting rather than rewriting

I have a rewrite rule that looks like this: RewriteEngine On RewriteRule ^$ store [L] That's the only thing in the .htaccess file. It's supposed to allow someone to go to http://www.site.com/ and according to the server, they're accessing…
mattalxndr
  • 9,143
  • 8
  • 56
  • 87
2
votes
4 answers

How can I run a long background process from a Perl CGI program?

I have a problem with a long running CGI and the timeout error: Timeout waiting for output from CGI script The client side is a form programmed in jQuery. The user input some data and receives a message that the analyses has been launch. The user…
Flope
  • 21
  • 1
  • 3
2
votes
1 answer

url redirection/mapping of the same java web application to multiple sub-domains

I've a domain, say www.domain.com. And I've developed a java web application, say jwa. Now I want to install the same app for different clients using subdomains, what is the best solution possible? something like "client1.domain.com" points to…
user237865
  • 1,250
  • 4
  • 19
  • 41