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.

apache2
3,242 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
10 votes
0 answers
2k views

Apache2.2 FallbackResource Not Working?

So I have the fallbackresource configured in Apache to send requests to an index.php in the webroot and it seems to work except when I call a non-existent php file in the webroot directory. For ...
Parry's user avatar
  • 101
9 votes
0 answers
5k views

How to fix "pgadmin4-apache2" error in Ubuntu 18.04 command line installation

When installing on Ubuntu 18.04 (bionic beaver), majority of packages I encounter an error involving "pgadmin4-apache2" that causes the installation to fail. What is causing this error and if it ...
Brent 's user avatar
  • 177
8 votes
0 answers
1k views

RVM - Ruby integration was extracted to a separate gem (`remove $LOAD_PATH.unshift`)

I was upgrading to Rails 3.2.6 (ruby 1.9.3-p194) and installing RVM on Debian and using Apache2 server (2.2.19). I used these very nice instructions: http://dalibornasevic.com/posts/21-rvm-and-...
user909943's user avatar
7 votes
0 answers
269 views

How can I get mod_xsendfile to guess the MIME type of the file to serve?

I am using mod_xsendfile to serve static files using Apache. However, I cannot find a way to get Apache to set a Content-type header based on the extension of the file it serves using xsendfile. This ...
jameshfisher's user avatar
  • 35.7k
7 votes
3 answers
20k views

apache2 and mod wsgi : Target WSGI script cannot be loaded as Python module

I am trying to install mod_wsgi on apache2, on ubuntu. So I install libapache2-mod-wsgi package, I activate him with a2enmod. I got a web site (languageAnalyz), that I am trying to use with mod_wsgi. ...
vekah's user avatar
  • 970
7 votes
1 answer
2k views

Apache2 PHP docker container, how to log errors as stderr and info as stdout to container log?

I am currently using the official php:7.4-apache image and I wanted to log some info and errors to the docker logs. I realize that PHP does not log directly, but logs to the Apache2 Server instead ...
Theo's user avatar
  • 2,522
7 votes
1 answer
2k views

Using mod_evasive on a specific directory

I'm trying to limit requests to an API on an internal site I've managed to implement mod_evasive to successfully block requests after a specific amount in a specific time. But this is causing ...
hipyhop's user avatar
  • 179
6 votes
0 answers
1k views

Heroku Permission denied: AH00072: make_sock: could not bind to address [::]:80

I'm trying to deploy a containerized app to heroku. MY Dockerfile looks like this: FROM ubuntu:14.04 RUN apt-get update && apt-get install -y apache2 && apt-get clean && rm -...
rakeen's user avatar
  • 1,973
6 votes
0 answers
739 views

Accessing File Modified Date in .htaccess

Is it possible to get access to file attributes such as when a file was created or last modified? I have cached gzip files, and would like to be able to set a last-modified header to them. Something ...
Kohjah Breese's user avatar
6 votes
1 answer
3k views

htaccess QUERY_STRING urldecode

I have a problem concerning .htaccess and QUERY_STRING. I try redirecting an URL with my htaccess that looks like this: http://mydomain.tld/out/http%3A%2F%2Fotherdomain.tld%3Fparam%3D0 to http://...
sladda's user avatar
  • 432
6 votes
0 answers
2k views

Mono 2.10.1 apache errors: Command stream corrupted, last command was -1

When starting a test mono server, Immediately the site is giving quite a few errors. The error I'm particularly concerned about is [error] (70014)End of file found: read_data failed [error] Command ...
dben's user avatar
  • 63
5 votes
0 answers
2k views

mod_wsgi : Request data read error when proxying data to daemon process

My wsgi application deployed on apache with mod_wsgi throws error mod_wsgi (pid=25927): Request data read error when proxying data to daemon process: The timeout specified has expired. My application ...
Mubeen Ali's user avatar
5 votes
0 answers
861 views

CORS OPTIONS request with Spring boot on Tomcat and Apache2

I'm trying to configure CORS on my Spring boot application. I added the CrossOrigin annotation to my controller class. @CrossOrigin @RestController @RequestMapping("api/user") public class ...
Bart's user avatar
  • 496
5 votes
0 answers
821 views

Apache mod-x-sendfile but for remote url

I'm writing a PHP application where users can download some files. Not all files can be downloaded by all users and some complicated rights-checking is going on behind the scenes. Because of this ...
heisa's user avatar
  • 844
5 votes
1 answer
202 views

Permission usert Tomcat7 for send files to apache2 folder (httpdocs)

UPDATE 28/07/2016 Help me please. My problem is I have a ubuntu server with the following configuration In summary :: my internal server (tomcat 7) .war owner user does not have permission to create,...
Delari Jesus's user avatar
5 votes
2 answers
829 views

How to configure apache2 on ubuntu for django restful services

I have django restful services on my ubuntu server which are running on port 84. When the request is send, it come through the apache2 server which is running on port 80. Now let say my server ip ...
Vinay's user avatar
  • 715
5 votes
1 answer
2k views

Google Page Speed Leverage browser caching not marked as resolved

I have few warnings wich I'm tyring to solve in the pagespeed test, such as: Leverage browser caching Setting an expiry date or a maximum age in the HTTP headers for static resources instructs ...
Toni Michel Caubet's user avatar
5 votes
0 answers
765 views

Apache + Etags -> returns 200 and send content instead of 304

I have this Apache conf that uses Etags: <VirtualHost *:8080> ServerName xxx.co SSLEngine On SSLProtocol all -SSLv2 SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+...
Sebastien Lorber's user avatar
5 votes
0 answers
628 views

How does Apache handle keep-alive connections for multiple clients on the same proxy?

I am dealing with performance issues and having trouble wrapping my head around Apache keep-alive connections. I understand that Apache is able to maintain a TCP connection for multiple requests, but ...
Chris Hanson's user avatar
  • 2,073
5 votes
1 answer
1k views

Intermittent issue: POST requests getting corrupted

I've been experiencing a weird intermittent issue over the last few months that I've been going crazy trying to isolate. I have a Flash movie running on my site that generates XML data and then sends ...
ZooBurst's user avatar
5 votes
1 answer
4k views

Apache LoadBalancing, sticky session, and Spring security framework

I have a public facing Apache 2.2 webserver that I've configured to proxy and balance requests to back-end web applications deployed on Tomcat 6.0. I am using Spring FW + Spring security framework as ...
Petre Maierean's user avatar
4 votes
0 answers
767 views

Make Apache use Python3.8 instead of 3.6?

I am trying to get my django app hosted and keep running into errors. Someone mentioned my apache version is configured to python3.6 and it should match my venv version which is 3.8. I have also set 3....
gear's user avatar
  • 41
4 votes
0 answers
643 views

HTTPD Issue on Mac Sierra OS - Fails to start on a fresh brew installation

Trying to install Apache on my MAC, using the homebrew. When I do: brew services start httpd I get the following error: Error: Failure while executing; `/bin/launchctl bootstrap gui/501 /Users/{...
kirobo's user avatar
  • 303
4 votes
1 answer
2k views

Django - WSGI script cannot be loaded as Python module

This is a well-known issue it seems but I have spent 8 hours trying to fix the issue without any success. I have been running a Django project with Apache2 on this VPS before, this issue occurred when ...
igteraous's user avatar
  • 117
4 votes
1 answer
13k views

OPCache is enabled, but php -i shows it is disabled

I installed NextCloud and in the summary window it keeps telling me that my OPCache is not enabled. I have enabled it and I am seeing conflicting information about if it really is enabled or not. ...
user2613018's user avatar
4 votes
0 answers
2k views

PHP curl unable to access other servers via VPN

I have a server connected to my company via OpenVPN and I am trying to retrieve JSON from another server using PHP's curl command. Running the most stripped back version of the code in PHP's ...
peteredhead's user avatar
  • 2,614
4 votes
1 answer
4k views

"Unable to install the certificate" error when installing LetsEncrypt ssl certificate

I am trying to install Lets Encrypt, but with no success. I get the following error: Keeping the existing certificate Could not reverse map the HTTPS VirtualHost to the original IMPORTANT NOTES: ...
Yossi Bondasd's user avatar
4 votes
0 answers
1k views

Set up a local server on an external hard drive - Forbidden error

I have a Mac OSX El Capitan operating system. Since my laptop has limited space, I am trying to set up a local server on my 1TB external hard drive with the url http://media.database/, and that uses ...
Jeremy's user avatar
  • 41
4 votes
0 answers
610 views

Browsersync within Vagrant VM does not properly proxy

I'm having an issue where browser-sync is not properly proxying my apache2 server. I'm running browser-sync through gulp within an Ubuntu 14.04 VM with Ubuntu 15.04 on the host. I'm using the ...
Gandalf Coder's user avatar
4 votes
1 answer
6k views

Enable Thread Safety in PHP+Apache2 on Ubuntu - compiling php from source with pthreads

I'm trying to get pthreads running on my Ubuntu-Server (14.04) after I installed Apache2 and PHP5 via apt-get. My initial steps: installed apache2 - apt-get install apache2 installed php5 with the ...
bastiotutuama's user avatar
4 votes
2 answers
7k views

Receiving "Input Variables Exceeded 1000" error even after updating max_input_vars

I'm running Magento, and I am receiving "mod_fcgid: stderr: PHP Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0" when ...
Jimmy Pelton's user avatar
4 votes
1 answer
4k views

Apache2 and mod_wsgi: Truncated or oversized response headers received from daemon process

My application is running with an Apache 2 server using mod_wsgi, Flask, and Python 2.7. Oddly enough, the application crashes when the page refreshes. For me, this happens exactly on every other ...
jds's user avatar
  • 8,080
4 votes
0 answers
1k views

Apache 2 server has 5 sec delay

I have a problem, that I can not solve. Some of the communication (~10-20%) between the frontend and the backend server has stuck. Can anyone give me an advice? Frontend PHP --------- curl --------> ...
Cuf87's user avatar
  • 41
4 votes
0 answers
7k views

gzip / deflate compression for SVG files not working :(

I don't get why my .svg files are not compressed by deflate or gzip though I have enabled it in the .htaccess. The rest (should) be compressed normal - I was watching HTML, JS, and CSS files. Here is ...
Thomas Venturini's user avatar
4 votes
1 answer
3k views

mod_proxy, use wildcards in ProxyPass

I have a configuration that works for explicitly declared server names: <VirtualHost *:80> ServerAdmin [email protected] ServerName sub0.sub1.myco.com ProxyRequests Off ...
bhomass's user avatar
  • 3,512
4 votes
0 answers
1k views

403 forbidden if name/url contains special character

We have many intranet document what linked on our intranet site. We use "apache builed in" directory listing to handle documents on browser. We try to use a template (h5ai) for mod_autoindex. ...
holian's user avatar
  • 755
4 votes
0 answers
1k views

Apache reverse proxy with Tomcat and Session id issue

I am having a issue with cookie path redirection in an environment with Apache as the reverse proxy and tomcat. I am able to login to the application and use it just fine when I access it on 8080. ...
sixpks's user avatar
  • 41
4 votes
0 answers
2k views

Web Service calls fail with Invalid chunk header on Glassfish 3.1.2.2 + Apache2 + proxy_ajp

I have set up Apache 2.2.16 in front of Glassfish 3.1.2.2 server to provide HTTPS on TCP 443. I am using Apache proxy_http and proxy_ajp modules to relay the requests to Glassfish which is listening ...
StrangeLoop's user avatar
4 votes
1 answer
377 views

Apache Httpd in front of Tomcat for faster SSL processing?

Does placing Apache httpd in front of Tomcat facilitate faster SSL processing? Does the overall throughput go up or down when using both servers?
Bob Herrmann's user avatar
  • 9,688
4 votes
1 answer
1k views

Ruby mod_passenger process timeout

A few Ruby apps I've worked with hang for a long time on slow calls causing processes to backup on the machine eventually requiring a reboot. Is there a quick and easy way in Passenger to limit a ...
Andrew Hopper's user avatar
4 votes
1 answer
4k views

Why will mp4 video not work when http basic authentication enabled?

I am trying to get video to play in an HTML5 video tag using the following code: <video id="video" width="768" height="432" controls> <source src="http://example.com/videos/example.mp4" ...
Richard's user avatar
  • 440
4 votes
1 answer
2k views

How to config apache to run Django (mod_WSGI) and Rails (Passenger)

I was running only my django applications with apache2 mod_WSGI but now I want to add Rails (Passenger) applications to the same server. I installed Passenger and it's working fine. After searched ...
Moreno's user avatar
  • 821
4 votes
1 answer
2k views

IE6 and IE7 send HTTP/1.1 without hostname on redirect

we use Redirect-after-Post Pattern in our webapp. Sometimes very few error logs are shown in our apache log like this: [error] [...] client sent HTTP/1.1 request without hostname (see RFC2616 ...
Janning Vygen's user avatar
4 votes
1 answer
2k views

Apache 2.4.x Bandwidth Quota / Throttle / Speed

I'm looking for a new Apache 2.4.x module or solution which allows me to configure Bandwidth Quota's. Long ago I use mod_throttle which only works for 1.3 and is since no longer maintained. I've also ...
Diemuzi's user avatar
  • 3,517
4 votes
1 answer
13k views

Invalid command 'Mutex'

H, am using Ubuntu 13.04 and apache2. When I did sudo apt-get install libapache2-svn in order to install subversion, the apache server doesn't want to run anymore. Here is the error message: Syntax ...
Taieb Baccouche's user avatar
3 votes
1 answer
97 views

Set Header with query_string data- apache2

I am running Apache and I am trying to set a header Content-Security-Policy = X only when the request has a variable shop=X on the query string. I would like something like this in my htaccess: <If ...
Dũng Phạm's user avatar
3 votes
0 answers
647 views

Attempting to build php5.6 on Ubuintu 16.04

This has been a long path to upgrade a 5-year old server that is using a very old version of WordPress. The server has been running fine, but it's time to upgrade WordPress and port the site to an ...
po4599's user avatar
  • 31
3 votes
0 answers
230 views

Flask redirect command intermittently redirecting to http instead of https links

I'm using flask running on an apache2 docker container behind Traefik. The app is a simple guest book app. It has a feature that allows you to vote on entries so they gain points. This link just ...
Razage's user avatar
  • 31
3 votes
0 answers
610 views

WSGI: (11) Couldn't create worker thread

I set up an apache2 server running 2 different django projects as virtual hosts using their own subdomain. Both hosts got their own demon WSGI process. However, when I start the apache2 server only ...
AracKnight's user avatar
3 votes
0 answers
406 views

Apache proxy auth against digest backend

I'm migrating a backend Basic Auth to Digest Auth. Until now, we have an first tier apache2 server making the authentication via header overwrite to avoid users knowing the backend credentials: <...
Javier Grande Gundín's user avatar

1
2 3 4 5
65