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

Forbidden You don't have permission to access {codeigniter} on this server

I am trying to run CodeIgniter for the first time. I have a running apache2 server on my machine. I downloaded CodeIgniter and copy extracted folder it into /var/www/html folder. Also, I set baseUrl config in CodeIgniter $config['base_url'] =…
Malintha
  • 4,512
  • 9
  • 48
  • 82
2
votes
0 answers

Sonarqube Apache2 Reverse Proxy configuration

I am trying to set up SonarQube behind an Apache2 reverse proxy. Getting a 404 when i hit http://server/sonar. Server is running Ubuntu 16.04 My configuration in /etc/apache2/sites-enabled/sonar.conf: ServerName …
2
votes
1 answer

MAMP Virtual Hosts not working properly, loading 'It Works!' page

I had an issue last night where MAMP just refused to connect to the Apache server(unsure whether this has something to do with my issue). I decided to uninstall and reinstall. I was able to connect once again, however, when I added my virtual host…
mcclosa
  • 943
  • 7
  • 29
  • 59
2
votes
1 answer

OPTIONS requests from iOS

I've got a Web app on Django that makes a bunch of asynchronous calls to the server. It works perfectly well from all browsers except Safari, specifically on iOS where users are reporting at least an intermittent problem. It seems the problem might…
Alex
  • 335
  • 2
  • 11
2
votes
1 answer

WSGI can't find file in same directory in app

I'm trying to set up a Ubuntu server with apache2 and wsgi but I get a 500 internal error. WSGI can't find the file "client_secrets.json". App structure /var/www/FlaskApp/ flaskapp.wsgi - FlaskApp - static // All js, css, imgs and…
Will Scott
  • 77
  • 3
  • 11
2
votes
3 answers

How to enable mod_env in Apache

I'm trying to set Environment variables for PHPMailer and need to enable mod_env in the httpd.conf. I know if you're using Apache (and mod_env is enabled), then Envirnoment variables can be specified in .htaccess. Here is my httpd.conf in XAMPP:…
Ali.Ghodrat
  • 3,348
  • 3
  • 31
  • 31
2
votes
1 answer

Autostart service on boot in Docker-Container

I have a strange problem: I created a docker-container (debian image) and installed an apache-server. However when i restart the container, everything else is there but the server is not starting on bootup. I added apache2 with the systemctl…
Sully
  • 169
  • 3
  • 13
2
votes
1 answer

Where should I set 'Header set Access-Control-Allow-Origin "*"' Header in my apache2 server?

I want to access other servers from my server. When I try to sent a GET/POST request to www.posttestserver.com, it is established successfully. In response, that server provides me response header…
Abhay Bh
  • 139
  • 1
  • 4
  • 16
2
votes
1 answer

Can't display image in html. All Permissions granted and Right path

A couple of days ago I installed a LAMP server on linux mint 18. When browsing a simple html test file at localhost/prueba.html in which I attempt to display a .jpg file with < scr="name.jpg" alt="Name"> the browser will only show "Name", but not…
HKlas
  • 21
  • 1
2
votes
2 answers

Socket.io code 200 Error during WebSocket handshake

I am using socket.io with nodejs and an apache server over it. I am getting a code 200 as response, I know I must get 101. WebSocket connection to 'wss://SITEABC.com/socket.io/?siteId=site1234567&EIO=3&transport=websocket' failed: Error during…
perseus
  • 1,322
  • 1
  • 16
  • 22
2
votes
0 answers

Browser shows 403 response when 401 is explicitly returned

I am using PHP's http_response_code to return various responses within my application. However, sending a 401 response code results in my seeing a 403 response in my browser. Here is the relevant code: test.php
2
votes
1 answer

php page being downloaded instead of being processed while accessing outside a particular domain

I have installed PHP5 with apache 2.2.16 and trying to serve an application based on php. I am able to acess this application inside a particular domain (php scripts are processed normally) but when i trying to access it outside that domain my php…
Amit Singh Tomar
  • 8,380
  • 27
  • 120
  • 199
2
votes
3 answers

Only the landing page load HTTPS all other pages I get The requested URL was not found on this server

My site works fine on http but using https with a valid certificate will only load the landing page successfully. Trying to hit any other page results in URL not found. I have a clone of the site on the same server with a different site name…
Phil
  • 2,176
  • 10
  • 33
  • 56
2
votes
0 answers

GoDaddy Domain name changes to IP address

I am running a personal Apache webserver on Ubuntu using a domain name from GoDaddy. When I navigate to my site using my domain name the URL in the browser changes to the public IP address. I found this same issue but there isn't a answer provided…
rcantrel
  • 177
  • 11
2
votes
1 answer

Why is WSGIScriptAlias not having an effect?

I'm running into an issue with setting a WSGIScriptAlias in Apache, where attempting to use the alias is giving a 404 error due to trying to reach the "literal" URL. Here's the test set-up in my Apache2 sites-available/000-default.conf (mimicking…
NathanC
  • 75
  • 2
  • 10