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)

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 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 ...
Chloe Ophelia Watzko's user avatar
0 votes
1 answer
48 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] [...
X3R0's user avatar
  • 123
0 votes
1 answer
49 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 ...
icalvete's user avatar
  • 141
0 votes
0 answers
22 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> ...
ggahni's user avatar
  • 1
-1 votes
0 answers
28 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
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 ...
Marcell Nemeth's user avatar
-1 votes
1 answer
28 views

Why server is interpreting the JavaScript files as PHP [closed]

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
30 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
31 views

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

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
0 votes
1 answer
49 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
  • 119
0 votes
0 answers
24 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
54 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
84 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
247 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
50 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
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 ...
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
85 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
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 ...
Pavel's user avatar
  • 427
0 votes
0 answers
28 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 ...
Devops Cloud's user avatar
0 votes
1 answer
323 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] ...
spider5414's user avatar
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 ...
John Oliver's user avatar
-1 votes
1 answer
97 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 ...
divB's user avatar
  • 570
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 ...
Tobias's user avatar
  • 165
0 votes
0 answers
79 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/...
Étienne Miret's user avatar
0 votes
1 answer
66 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/...
mohamad zbib's user avatar
0 votes
1 answer
102 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-...
Jeff Loughlin's user avatar
1 vote
1 answer
80 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 ...
sKling's user avatar
  • 13
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 "...
user1936810's user avatar
0 votes
1 answer
94 views

Opening "/server-status" in Apache2 with a WordPress installation is serving a "403 Forbidden" error response

I have been trying to open "/server-status" in Apache2 on my site that's facilitated by a WordPress installation and it is serving a "403 Forbidden" error response when I attempt ...
Michael Wilmshurst's user avatar
0 votes
1 answer
347 views

Getting an error message when trying to run apache2 on ubuntu

Hello i wanna run a server for my php application on apache2, but when i try to download apache2 like it sais on this website https://www.digitalocean.com/community/tutorials/how-to-install-lamp-stack-...
Kemal007023 oz's user avatar
0 votes
1 answer
49 views

I can't log-in to the webserver via LDAP

We using a VM for a web server running with apache2 regulating a specific service. Both SSH-login and logging to the front end were regulated by our LDAP-server. A few weeks ago, some changes were ...
Assa Yeroslaviz's user avatar
1 vote
1 answer
35 views

ProxyPassMatch backreference issues

I am attempting to take all requests matching the regex ^/(map/maps/[^/]*/live/.*) redirect into a local server http://127.0.0.1:8100/. However, the path that needs to be passed to the backreference ...
Firav's user avatar
  • 11
3 votes
1 answer
440 views

How to match beginning of file name using htaccess

I am attempting to modifying my .htaccess file within a specific directory. If a web user attempts to find any file in this directory that may be named like the following options, I want them to be ...
klewis's user avatar
  • 133
0 votes
1 answer
63 views

Apache2 Not Running Custom PHP App After Uploading to /var/www/html folder

I am installing a software that I bought. It's in PHP. So, I got a DigitalOcean server(ubuntu 22.04). Installed Apache2 and PHP 8.1. Now, when I upload files to /var/www/html folder, it does nothing ...
Salman Khan's user avatar
0 votes
0 answers
27 views

Is setting the ownership / permission for /etc/apache2 to have the group ownership `adm` and chmod g+w "safe"?

Good morning. I'm daring to ask my first ever qestion here. I'm annoyed having to use sudo all the time to modify the apache config files - mostly when I use the Remote SSH feature of my editor, then ...
JulianW's user avatar
0 votes
0 answers
110 views

Connection refused to Flask WSGI application on Apache2

I am attempting to get a Flask API running on Apache2 Server but I am getting a net::ERR_CONNECTION_REFUSED Since I am running the flask API on another server I am using a Proxy Reverse on my main ...
Elcid_91's user avatar
  • 151
0 votes
2 answers
123 views

apache2 can not set REMOTE_ADDR or any other var as header

i trying to setup apache as a reverse proxy and i need to add e.g. the REMOTE_ADDR and some other values as an header (required by the backend), for some reason always "null" is set. ...
sususo's user avatar
  • 1
0 votes
0 answers
55 views

Virtual host on Apache2 for Mautic "This site can't be reached" on specified subdomain (but can be reached somewhere else)

I am configuring a brand new Mautic 5.0.3 instance on a Debian GNU/Linux 12 (bookworm) in AWS shared server with other 3 webs. Let's say (for security reasons) that its on aaaa.com. I have configured ...
Iago's user avatar
  • 1
0 votes
0 answers
207 views

Apache & PHP-FPM: AH01144: No protocol handler was valid for the URL /index.php (scheme 'unix')

This error occurs despite all the fixes that I Googled. Apache was loaded next modules: # /usr/local/apache/bin/apachectl -M | grep proxy [Thu Mar 14 22:37:35.825542 2024] [core:trace3] [pid 9087:tid ...
YpaHeL1's user avatar
  • 131
0 votes
0 answers
52 views

How to change the URL for Web UI Foreman?

Hi Can I change the url link for the web UI interface? I am using Foreman 3.9 versions. I try to change url with foreman-installer --foreman-url but I get error with ssl-certificate problem. Changing ...
Иван Довгань's user avatar
1 vote
0 answers
406 views

What causes "Partial results are valid but processing is incomplete" for mod_fcgi in Apache WITHOUT mod_reqtimeout

I am running Apache 2.4 to serve Nextcloud and I occasionally get the error [proxy_fcgi:error] cloud.my-domain.tld: (70008)Partial results are valid but processing is incomplete: AH01075: Error ...
user2690527's user avatar
0 votes
0 answers
24 views

Apache2: LocationMatch does'nt working

I need to disable mod_security for /admin/ location, this is a full config of my virtual host: <VirtualHost *:443> DocumentRoot /home/example/sites/example.com ServerName example.com ...
YpaHeL1's user avatar
  • 131
0 votes
0 answers
28 views

How can I find out how Apache makes certain decisions?

As my Apache configuration gets more and more complex and there are many moving parts, it can be tricky to debug problems. Right now, I have a setup where a certain virtual host setup generates a 301 ...
Bart Friederichs's user avatar
0 votes
0 answers
118 views

Apache2 404 Not Found Error for file which really exists in folder

On my ubuntu server i have user farmer inside home/farmer directory i created directories /var/www/html/ and inside html i put file index.html I have granted following rights to directories and index....
Naglyj.Spamer's user avatar
-1 votes
1 answer
103 views

fail2ban cannot block ip public, it works only for private ip

My server live behind the reverse proxy nginx, but the ip of the client access shows in the apache log like this, looks normal, there is no x-forward things in the log. 103.221.234.206 - - [28/Feb/...
Riska K A's user avatar
0 votes
0 answers
58 views

Website redirects are not working when using Pihole on docker instead of VM

I’m currently in the middle of moving some infrastructure to containers from a ton of VM’s running simple things. I’m trying to move our pihole DNS server to a container. All was working well, until I ...
Tayotoka's user avatar
1 vote
1 answer
208 views

Creating a .htaccess in a subdirectory causes rewrite rules in higher level .htaccess to stop working

Sorry if this has been asked/answered before, but I was not able to find an answer to this particular problem. If I create a .htaccess file with a simple rewrite rule, that rule works. If I create ...
KBM's user avatar
  • 13
0 votes
0 answers
99 views

Putting a Django application into production on Ubuntu server with Apache2 and Cloudflare

I have this Django application which works very well, but I do not understand at all, how to put it in production on a Ubuntu 22.04 LTS server using apache2 and to link it in HTTPS, on a domain such ...
Ghost0159's user avatar

1
2 3 4 5
37