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
0
votes
0 answers

Apache: Allow directory browsing while using DirectoryIndex directive

I have a local Apache 2.4 Docker container. My global vhost config is the following: LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so ServerName localWeb DocumentRoot /app ProxyPassMatch ^/(.*\.php(/.*)?)$…
bolino
  • 273
  • 3
  • 15
0
votes
0 answers

Apache2 Reverse Proxy messes up CSS

I have a problem that when I use an SSL reverse proxy from site1 to site2, it works quite well except for the peculiar fact that all images are of the incorrect height. Everything else seems to be in order, only image height is affected. Here's how…
0
votes
1 answer

Connection "not secure" in browser address bar

There is a website https://ccie.pl. It prompts "not secure" connection while using site IP address but everything works correctly for domain name. What is the most likely reason for this behavior ? Is it related to NGINX/Apache WebServer…
0
votes
0 answers

How to set pdo driver in apache?

I have a Debian 11 server On my website I have the following error: Caused by: PDOException could not find driver According to what the phpinfo() function returns, my php.ini file is in: /etc/php/7.4/apache2/php.ini I have the following…
0
votes
0 answers

stop mail.domain.com from browser

I have a mail server setup for a domain using postfix. For the ssl cert, I have created a virtual host for that mail server. The virtual host look like this ServerName mail.domainX.net DocumentRoot /var/www/roundcube/ …
Saaram
  • 101
0
votes
1 answer

This site is missing a valid, trusted certificate || Apache2 webserver, Windows root CA

I'm learning about certificates, HTTPS together and after 4 days I'm out of idea how to set up to become trusted. In my lab env. I have a Windows server with a CA role. Previously I installed a VM-Dell OpenManage for my server. It has a graphical…
0
votes
1 answer

Apache: Allow Certain Users only from specified subnet

I have a requirement to change some Apache 2.4 authentication so that most users can access the website from anywhere, but certain users (who can be identified in a number of ways, but an LDAP group would be the easiest) can only be permitted access…
Mort
  • 166
  • 1
  • 5
0
votes
2 answers

Why is my valid SSL certificate invalid on a particular site with the same host?

I have hosting set up with HostEurope. My SSL certificate seems to be valid (it has not expired etc.) and it works for one the domains I use on my server (the SSL certificate was purchased for this domain). Recently I set up another site with a…
biscuit_
  • 3
  • 1
0
votes
1 answer

apache2 docker container writes logs on my host as root user

I am running a apache2 docker container on my ubuntu box but it keeps writing logs to my host os. Details below: samples/docker/apache2/Dockerfile FROM php:5.6.34-apache COPY ./sites-available/mysite.conf /etc/apache2/sites-available/mysite.conf RUN…
u123
  • 267
  • 1
  • 8
  • 24
0
votes
1 answer

Apache2 writes to /dev/stdout instead of /var/log/apache2/access.log (using docker)?

I am running apache2 2.4.10 in a debian docker container using below docker-compose file: version: '3.8' services: apache2-php: container_name: apache2-php-container image: apache2-php-image build: context: ./docker/apache2 …
u123
  • 267
  • 1
  • 8
  • 24
0
votes
1 answer

Debian web access apache2 for mail server

i am responsible for my mail server i am new to Debian and mail server aswell i am facing issue after install the ssl certificate the page still shows http:// not https:// i use to see this command root@mail:/# apachectl -S the output comes like…
Ana Mal
  • 1
  • 1
0
votes
1 answer

Apache2 serves PHP as plain text after updating to PHP 8

I just updated from PHP7 to PHP8. Now my Apache2 is going crazy. The server is or not accessible, or shows my PHP as plain text. php -v iel@MacBook-Pro-van-Niel apache2 % php -v PHP 8.0.12 (cli) (built: Oct 21 2021 14:38:26) ( NTS ) Copyright (c)…
O'Niel
  • 105
  • 1
  • 9
0
votes
1 answer

htaccess match all words until last slash and redirect 301

I'm trying to escape everything until the last slash, even if there's a slash in between. Example: /site_url/courses/cat1/cat2/subcat/coursename to /site_url/course/courseName or /site_url/course/courseName How could I achieve this with Nginx…
farroh
  • 3
  • 1
0
votes
1 answer

Hacked file regenerates whenever it is deleted - ubuntu/apache2

Have just had a hacked website flagged by Sucuri There were a number of backdoor PHP files flagged, which I HAVE been able to delete However, the index.php file has a spam link injected in to the bottom of it. I've tried deleting it - which DOES…
freestate
  • 109
  • 2
0
votes
1 answer

Ubuntu 18.04: PHP stopped working after I tried to fix phpmyadmin

I have a problem with a Ubuntu 18.04.6 Ubuntu server. I was trying to fix a problem with phpMyAdmin (a lot of errors appearing on screen, and preventing me to use it, pointing to some authorization error). What I did is: I tried to reinstall…