Skip to main content

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)

-1 votes
0 answers
26 views

How do I set up a server on PC if my router is not connected to the Internet directly? [closed]

For educational purposes I am trying to set up a personal Apache server on a virtual machine on my laptop (the VM runs Ubuntu Server 24.04, the host laptop has Ubuntu Desktop 24.04). The laptop is ...
Daigaku no Baku's user avatar
0 votes
1 answer
59 views

Apache HTTP server under DDoS attack [closed]

One of the servers has been under attack for four weeks. First the attack was weak, but now it is aggressive after I started fighting him. It consumes CPU resources to keep starting the Apache server ...
Marcell Nemeth's user avatar
-1 votes
1 answer
27 views

Why server is interpreting the JavaScript files as PHP

One of my javascript files is returning the below error log [Thu Jul 04 09:55:20.601052 2024] [php:error] PHP Parse error: syntax error, unexpected token "=", expecting "]" in /...
Malaya Sahu's user avatar
0 votes
0 answers
26 views

.htaccess - Apache rewrite rules, some work, some don't

this Rewrite rule is forwarding to url: https://www.fliesen-alfers.de/fliesennivelliersysteme/verlegefix-keilsystem/basis-sets/1-5-mm-basis-set/?number=102 as expected: RewriteCond %{QUERY_STRING} (^|&...
user24710148's user avatar
-1 votes
0 answers
30 views

How to monitor wordpress websites individually deployed on an apache2 server?

Since last few weeks there are sudden downs to my EC2 machine and none of the websites become accessible and also ssh to machine stops working. please help me fix it. I have an EC2 machine where ...
Ranjeet Singh's user avatar
-1 votes
1 answer
42 views

if statement in htaccess

I'm using the following .htaccess to allow access to my website by IP address: <Limit GET POST> Require all denied Require ip x.x.x.x Require ip y.y.y.y </Limit> I was wondering if it ...
vespino's user avatar
  • 109
0 votes
0 answers
19 views

apache mod_php vs php_fpm - huge difference in load time, but only for Wordpress website

I have a Wordpress website, it was set up as nginx proxy apache mod_php. Load time was over 2.5 seconds, so I tried several ways to speed it up. Finally I tried php_fpm and voila - the website loaded ...
Nick's user avatar
  • 882
1 vote
1 answer
39 views

Can I use same subdomain to serve both ColudFront, S3 and Apache?

I'm trying to setting up a application on S3 and CloudFront and the frontend application is using Flutter. Frontend I have managed to deployed S3 and CloudFront successfully. Let's say the domain dev....
502_Geek's user avatar
  • 111
1 vote
0 answers
48 views

How can I make reverse proxy for websocket requests on apache

I have a website written on Laravel with Reverb for websockets. Everything works except websockets. They are sent from the browser to the server in the form wss://mydomain.com/app (which throw an ...
Jivko Jelev's user avatar
0 votes
0 answers
77 views

Fatal error: Uncaught Error: Call to undefined function mysqli_connect() on Debian 12.5 with Apache2

I am trying to run my server with php 8.2 but it can't connect to my MariaDB database with mysqli. I have extension=mysqli in my php.ini When I do php -m | grep mysqli I get this: % php -m | grep ...
aaaaa's user avatar
  • 1
0 votes
1 answer
227 views

What's the best method to implement rate limiting with Apache?

I'm running an Apache web server, and I'd like to add some simple rate limiting per individual IP address. I'm currently getting what appears to be a lot of bot requests hitting the website, and it's ...
inersha's user avatar
  • 131
1 vote
1 answer
47 views

.htaccess to accept parameters in URL

I have a WordPress page with the following structure website.com.au/pre-registration/parameter-value/, where the parameter value was originally a GET parameter, but I was requested to make it part of ...
Leonardo Pessatti's user avatar
1 vote
2 answers
42 views

Apache optionally enable ssl if cert file present

I have a containerized apache setup that needs to optionally enable SSL if the cert file was mapped in. I have this working for the case of when the cert files are mapped in, but struggling with the ...
Snappawapa's user avatar
0 votes
1 answer
18 views

apaceh2 proxy_html does not rewrite links (MWE)

I am using Apache 2.4.59 under Debian as reverse proxy. I can't make it rewrite links in HTML (at all), and I tried everything I could find on various forums: SetOutputFilter, AddOutputFilter, inflate;...
eudoxos's user avatar
  • 363
0 votes
0 answers
79 views

Out of memory: Killed process (apache2). apache2.service: A process of this unit has been killed by the OOM killer

My website was suddenly taken down and the root cause was clearly that it ran out of memory, as revealed by the graph below and the logs from /var/log/syslog on the server that I found from the time ...
Jaime Montoya's user avatar

15 30 50 per page
1
2 3 4 5
120