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,802
questions
0
votes
0
answers
19
views
Blocking bots with apache htaccess
I am trying to block bots (mostly "AI" bots).
I have this in my .htaccess file.
<IfModule mod_rewrite.c>
...
0
votes
1
answer
35
views
DNS configuration for Apache multisite
I have a friend for whom I set up a website on my publicly-accessible server; however, I'm having a lot of trouble getting DNS to work properly.
I added a file/entry for the new site in /etc/apache2/...
0
votes
0
answers
36
views
Apache2 default won't load on other device
Issue: Accessing Apache2 on VMware Workstation from a Different System
Steps I've Taken:
Started Apache2 on the VM:
sudo su
service apache2 start
Verified Apache2 is Running:
When I open the page ...
0
votes
0
answers
21
views
Invalid Command 'PerlOptions', perhaps misspelled or defined by a module not included in the server configuration
I have very low experience with Linux, and I'm trying to install OCS Inventory Server on an Devian server.
But when I created a symlink of a file that requires ModPerl to run properly, and restart the ...
0
votes
1
answer
71
views
How to fix Apache PHP rejecting post requests which are over 40MBs
My php Laravel API when put behind apache2 (with ssl) when making a post request which is roughly 40Mbs in size, it gives a 500 internal error with following log
[Wed Jul 10 21:08:51.397912 2024] [...
0
votes
1
answer
64
views
Understanding mod_fastcgi apache2 module
I'm working in a Ubuntu 22.04.3 LTS
I'm creating my own apache "arquitecture". I called it "myApache". The idea is that every user can run its own apache listening in its UID as ...
0
votes
0
answers
27
views
Reverse proxy to container is looking for static files outside of the container
I have a website running through a docker container, and I've created a VirtualHost in the host's that is doing a reverse proxy to it, it looks something like this:
<VirtualHost *:80>
...
0
votes
1
answer
98
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 ...
0
votes
0
answers
36
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} (^|&...
0
votes
1
answer
51
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 ...
0
votes
0
answers
28
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 ...
1
vote
1
answer
41
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....
1
vote
0
answers
65
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 ...
0
votes
0
answers
101
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 ...
0
votes
1
answer
278
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 ...
1
vote
1
answer
53
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 ...
1
vote
2
answers
43
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 ...
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;...
0
votes
0
answers
93
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 ...
0
votes
1
answer
25
views
Slow apache restart or gracefull when tee is in use
I have this in each virtual hosts in my Apache HTTPD confs:
CustomLog "|$tee -a /www/domainX/logs/apache/acces_log" combined
On servers with more than 100 domains, there is an issue with ...
0
votes
0
answers
30
views
Having issue with Route53, ec2, Apache Virtual host and wordpress working
I am having wordpress blog - https://blog.pepagora.com, hosted on Amazon aWS EC2 instance and DNS is managed in Route53. Suddenly blog site stopped responding and couldn't figure out why?
For testing ...
0
votes
1
answer
380
views
AH00170: caught SIGWINCH, shutting down gracefully
i have a web server on Debian and Apache2, about once a day or once every 2 days Apache2 crashes, here are the Apache2 error logs:
[Wed May 22 13:04:01.082969 2024] [mpm_prefork:error] [pid 874799] ...
0
votes
1
answer
64
views
Apache config to proxy entire site with 1 exception
I have a website www.example.com on a hosting provider. We use that provider because it has a simple site builder my wife uses to maintain the site. Moving off of it isn't an option for this ...
-1
votes
1
answer
100
views
Basic Auth to NTLM conversion proxy
Is there any solution to not only proxy NTLM but to convert HTTP Basic Auth on the input side to NTLM on the output side?
Background: An internal SharePoint server using NTLM Auth should be accessible ...
0
votes
1
answer
38
views
Serve static content using a (Zope, Plone) backend for Cookie-based authentication
I have a Plone site which I'd like to hide from read-only access and instead serve the contents from a static mirror (mainly for performance reasons, of course); most contents rarely change.
(How to ...
0
votes
0
answers
82
views
Writing Apache2 logs to stdout/stderr on Debian
On Debian 12.5 Bookworm, I want to write apache2 logs to stdout/stderr, so they can be collected by journald.
Per Writing Apache2 Logs to stdout/stderr?, I have the bellow config:
CustomLog /proc/self/...
0
votes
1
answer
67
views
apache set location with subdirectory
I am trying to install iredmail with apache. but now i have a problem i can serve only python file of iredadmin or static files. I need to make both of them working.
<Location "iredadmin/...
0
votes
1
answer
111
views
Apache PHP 8 keeps getting disabled
I have an Ubuntu Linux server (20.04) running Apache2 version 2.4.41
$ apachectl -v
Server version: Apache/2.4.41 (Ubuntu)
Server built: 2024-04-10T17:46:26
with PHP8 enabled in /etc/apache2/mods-...
1
vote
1
answer
88
views
Apache - Redirect www and non subdomain to the same page without getting 404 in TYPO3
So I have the following problem: When I use https://www.example.com as the domain, I get the content but when I use https://example.com I get the generic TYPO3 404 error page.
I tried setting up a ...
0
votes
1
answer
14
views
Apache2 HTTP proxypass or redirect conditionally
In Apache2 HTTP I'd like to redirect or proxypass conditionally.
For instance, I'd like to proxypass to a specific backend if the client's IP addr. is private. Otherwise, I'd like to redirect to "...