Questions tagged [apache2]

The Apache HTTPd Server. When asking questions about virtualhosts, please include the output of the following command: "apache2ctl -S" (or "httpd -S" depending on your OS)

The Apache HTTP Server is a popular Open Source Web server. This tag should be used for general questions about Apache HTTPd.

Although there is large degree of commonality between the different versions in the 2.x branches, please consider using the Apache-2.2 or Apache-2.4 tags instead for more specific Apache HTTP Server related questions.

Documentation for all major versions is both comprehensive and has a high degree of accuracy.


1741 questions
2
votes
1 answer

How to setup Apache as reverse proxy to a docker container

I struggling to setup my Apache server as reverse proxy for a docker contained Greenlight instance. In the official docs it is proposed to run Greenlight in a docker container with an Nginx instance as revers proxy (mainly to make it easy to run it…
user5950
  • 161
  • 1
  • 2
  • 6
2
votes
3 answers

Apache server port 443 connection refused

Recently configured SSL on Apache 2.4/Ubuntu 20.04 hosted on Oracle Cloud and have been getting connection refused for https/port 443. External device: $ curl simpliassure.com:443 curl: (7) Failed to connect to simpliassure.com port 443: Connection…
Robbie Zhao
  • 21
  • 1
  • 1
  • 4
2
votes
2 answers

OpenLitespeed vs. Apache difference for WordPress?

What is the biggest difference and concerns about OpenLitespeed (not premium Litespeed) and Apache? About speed, security and management issues, what should newbies understand? This is not about web hosting service, I mean to install by myself?…
babbaweb
  • 21
  • 2
2
votes
0 answers

Returning custom HTTP status apache2

I'm hosting a webpage with apache and would like to be able to return custom HTTP status codes on a certain page. PHP does this just fine with http_response_code($code) but once it gets to apache it fails with HTTP 500. I have found where the http…
Juckix
  • 21
  • 1
2
votes
0 answers

Apache2 Segmentation Fault after upgrading to PHP8.0 Ubuntu 20

I recently upgraded a production server from PHP 7.4 to PHP 8.0 (this is using the ondrej packages). As a reference, I'm using Ubuntu 20.04.3, apache2.4.46 and now PHP8.0. After about 18 hours, the apache server stopped responding, giving an empty…
Alex
  • 221
  • 2
  • 8
2
votes
1 answer

Centos - Deploy Web Application - What is the best way using non-apache User Account with SFTP/WinSCP

I have a simple question, however, I am struggling to understand how to do this in a secure manner, I have a PHP-based web application that runs on Linux (Centos7), I have "user" access with Sudo privilege on the Linux server. The web server…
mahen3d
  • 4,342
  • 14
  • 36
  • 57
2
votes
2 answers

Why is Apache2 not finding my WSGI app?

In my previous question, I asked how to make mod_wsgi use a specific Python version. Following the answer from that question, I created a Python 3.9 virtual environment and made WSGI use it. However, now my Flask app is not running at all - I just…
ThatCoolCoder
  • 193
  • 1
  • 7
2
votes
0 answers

How to handle proxy call in apache

I have a reverse proxy setup as follows in Apache: Server A with address www.proxyserver.com/graphql is the reverse proxy server. It maps to: Server B with address example.com This kind works properly in develop environment. For e.g: when server…
Ming Hieu
  • 21
  • 2
2
votes
1 answer

Apache with HTTP/2 and per-directory upload_max_filesize

I just upgraded my apache2 server on Debian 9.13 Stretch to start using HTTP/2. As far as I'm concerned, that requires switching from mod_php to PHP-FPM. The problem is that PHP-FPM does not obey certain apache directives from .htaccess. For…
2
votes
1 answer

How to get line number of error that .htaccess apache2 is reporting in /var/logs/error.log

I get a internal server error after adding redirects to .htaccess - I've added 600 of them. I check /var/logs/error.log [Wed May 12 16:26:02.600394 2021] [core:alert] [pid 8071] [client 127.127.127.127:60816]…
therobyouknow
  • 471
  • 4
  • 8
  • 18
2
votes
1 answer

Apache prevent access to everything except a single location

I'm trying to block access to everything on a vhost except a single safe-path (and really, everything under it, so /safe-path/item-1, /safe-path/item-2, etc); from reading the docs, it seems that I should be able to do: Order…
Glen Solsberry
  • 1,536
  • 5
  • 28
  • 38
2
votes
0 answers

Upgraded to libcurl4 and broke apache?

Apache2 and Apache2-bin seem to depend on libcurl3. How can I get them to install now that I upgraded to libcurl4? sudo apt-get install apache2-bin Reading package lists... Done Building dependency tree Reading state information... Done Some…
user1413341
  • 163
  • 5
2
votes
1 answer

Apache virtualhost is redirecting to the wrong virtualhost

I am trying to implement a second domain within an existing digitalocean droplet. Because I'm on DO, I followed the answer by ryanpq on this thread:…
Jay Jung
  • 121
  • 3
2
votes
2 answers

Can't serve static files with ampersand in name

I have a website mirrored with wget and I'd like to serve it via Apache. The problem is that I can't access files with special chars. For example, I have files with names like this: $ ls -N components/com_flexicontent/librairies/phpthumb/ | head…
2
votes
2 answers

generate apache compatible password with mysql

I am currently in the process of migrating an old webserver. The old server uses basic auth with users stored in a mysql table and mod_auth_mysql enabled. The password ist stored with apaches build in sha1 function SELECT sha1('secret') which works…
Jürgen Steinblock
  • 316
  • 1
  • 4
  • 16