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

Make apache accept requests only if who sent requests is a domain i specified

I currently have an apache2 server accepting api requests on the url mydomain.com/api and i have a client application that runs at mydomain.com. Also, in my api, one can access mydomain.com/api/files/fileId to get a file. Now, in my client…
0
votes
0 answers

apache2, I can't suppress this line from apache logs

I've done this and other attempts, but not working for me: ... setEnvIf Request_URI "refresh.*" dontlog CustomLog /home/alan/logs/apache.log common env=!dontlog ... this line in…
alanvictorjp
  • 31
  • 1
  • 6
0
votes
1 answer

How do I make it so that pages that don't physically exist link to certain page only if after a certain directory?

How do I make it so that when a user goes to mydomain.com/test/ It displays the page at mydomain.com/testhandler/ and without returning any error. For an example I have a system in place where I use the URI to link to an…
0
votes
1 answer

How to respond to "NOTICE: Not enabling PHP 7.4 FPM by default." from system upgrade

I did a standard OS update on Ubuntu LTS (20.04) and the messages end with: Processing triggers for php7.4-fpm (7.4.3-4ubuntu2.6) ... NOTICE: Not enabling PHP 7.4 FPM by default. NOTICE: To enable PHP 7.4 FPM in Apache2 do: NOTICE: a2enmod…
CPBL
  • 101
  • 4
0
votes
0 answers

Sometimes POST request from client to backend does not contain body

We run 2 different apps on Heroku. Both have an API written with PHP and Symfony and run through an Apache. One of the frontend clients is written with Vue the other with Angular. In the API we serialize command and query objects from the POST body.…
0
votes
2 answers

user has no write permission on his owned folders?

i am working on Debian10 with php8 fpm + apache2 , I've created a new user with a group username:username , and i've set a home directory for this user located at /home/username/www of course i've chmod -R all the folders and files to…
Mr Sparrow
  • 121
  • 2
0
votes
1 answer

Enabled HTTP/2 Support in apache2 v2.4.25 on Debian 9.13 but Tests Show No Support for HTTP/2

I am trying to configure HTTP/2 support but something is going wrong My server is a google compute engine vm running Debian 9.13 (stretch) server version Apache/2.4.25 with SSL certs configured using OpenSSL. When I run openssl version it reports…
hyjinx
  • 3
  • 3
0
votes
1 answer

Apache2 mod_rewrite seemingly not doing anything

I'm having difficulty getting mod_rewrite to work in Apache2 on Debian 10. I enabled the extension with a2enmod rewrite systemctl restart apache2 And had no errors and can see the module in apachectl -M ... rewrite_module (shared) ... Although…
0
votes
0 answers

Varnish probe thinks web is down if he gets 103 http code

This is my first post in this forum and I will say that I am sorry for all the mistakes that I will make in this post. This is a desperate call for help as I was not able to find any kind of information on my problem. I am only 20 years old and i…
0
votes
2 answers

Multiple Conditional redirects all in a single .htaccess (Landing Page)

I have a folder that simply has a "Coming Soon" single page html. I then have several domains that I point to this folder from time to time as needed. Simple right? Well what I want to have is a condition where if the original requested page was…
0
votes
2 answers

High CPU usage by Apache/MySQL

I have a problem with CPU usage on the website that uses WordPress, Apache, and MySQL. During the day, from time to time, CPU usage by MySQL and Apache goes up to 2400% (I have 24 cores in total), the server freezes, the average load goes up to…
a b
  • 101
  • 1
  • 3
0
votes
1 answer

Apache server not responding. It just loads and then gives a timeout

I have an apache2 server and have been trying to make it accessible to all but am unable to do so. Here are the outputs: $ netstat -plant | grep apache tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN …
Divyessh
  • 103
  • 3
0
votes
1 answer

Apache2 in docker using IPv6

I'm trying to configure IPv6 on my docker container. I want to expose port 80 on my IPv6. But my website still not working on IPv6. How to check where is the problem? Maybe someone can find it in my config files: docker-compose.yml: version:…
0
votes
2 answers

Using apache reverse proxy to send all requests for /blog to internal wordpress server

I have a website written in react, and now I wanted to add a blog section to the site. The blog is going to be based on wordpress. The react app runs in a docker container, and I use the wordpress docker container to run the wordpress blog. In order…
smac89
  • 138
  • 1
  • 8
0
votes
2 answers

How to block potential attackers on my server

To keep it brief and simple, I will go straight to the point. It seems a bunch of ip adresses are trying to access files that have potential of containing sensitive server information on my website which is still in the development phase powered by…
Dennisrec
  • 121
  • 4