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
-1 votes
0 answers
10 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 ...
-1 votes
0 answers
10 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
12 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
35 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....
0 votes
2 answers
7k views

undefined variables in /etc/apache2/apache2.conf

Whenever I run sudo apache2 -S on my server it throws the following error: [Sun Mar 04 16:17:22.303217 2018] [core:warn] [pid 31405] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined [Sun ...
0 votes
0 answers
42 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
61 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
169 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
41 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 ...
0 votes
2 answers
864 views

Virtual Host Setup Redirecting Request to Local IP address

I want to make an application running on apache2 (ubuntu) available over the internet. So i decided to setup virtual host after purchasing a SSL certificate. Everything works fine on my Local network. ...
0 votes
1 answer
4k views

Error: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration

I have the very same setup as shown in this thread and I'm having the same exact problem. I've already retraced my steps several times over the installation process of the PHP + Apache + PostgreSQL, ...
0 votes
3 answers
9k views

Cannot enable php7.4 on Ubuntu 20.04

I'm trying to set up nextcloud on a home ubuntu box. I've got php 7.4 installed, apache, etc. However apache2ctl -M does not show php as shared. This causes (I guess) the http://localhost/nextcloud ...
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 ...
0 votes
1 answer
17 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
70 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
21 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
1 answer
22k views

curl: (60) SSL certificate : unable to get local issuer certificate - ubuntu

We run the following software versions: Ubuntu 18.04.5 Apache 2.4.29 curl 7.58.0 We run an education application, and as part of this we have numerous APIs which upload files to a third party ...
0 votes
1 answer
62 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
63 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 ...
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 ...
0 votes
1 answer
232 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] ...
1 vote
1 answer
434 views

Discover process that exhausted my memory and CPU limits on Ubuntu

I have a DigitalOcean droplet running Ubuntu 22.04.2 LTS (GNU/Linux 5.15.0-89-generic x86_64). My website went down at approximately Fri Dec 01 6:48 AM GMT. From var/log/apache2/access.log, I ...
-1 votes
1 answer
89 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 ...
1 vote
1 answer
17k views

Laravel "public"-folder error 403 (forbidden) - using Uniform Server (Apache)

I'm trying to create my first MVC project with the help of the framework Laravel, using the server platform Uniform Server. (Uniform Server uses Apache.) The problem is, I cannot seem to get my ...
0 votes
1 answer
296 views

rspamd and Apache reverse proxy: navigation does not work (fragments in URL have no effect)

I have set up Apache 2.4.57 and Rspamd 3.6 on Ubuntu 23.10. I have configured Apache as a reverse proxy to the controller worker of Rspamd. I can access to Web UI of Rspamd, enter a password and I ...
0 votes
1 answer
9 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 "...
user avatar
0 votes
1 answer
35 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
70 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/...
2 votes
2 answers
4k views

Apache reverse proxy based on header

So I have a configuration for apache that is working in 99% of the cases. It is checking a header value in the request and based on that it is redirecting to the correct API version url with a 307 ...
0 votes
1 answer
86 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-...
2 votes
2 answers
4k views

Apache wildcard cert with virtual host subdomain

I have been stuck trying to get my site to work with SSL and a subdomain for a few days now. Have been googling endlessly to no avail. I have a webserver setup on AWS EC2 instance running amazon ...
0 votes
1 answer
8k views

Apache is not serving static files from correct directory

I am actually not sure if the title of the topic is actually the source of my issue but there are serious indications for this. I am not an expert in application servers such as apache so any help is ...
1 vote
1 answer
73 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
271 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-...
0 votes
4 answers
8k views

Apache Upgrade to 2.4.58 on Ubuntu 22.04

I'm trying to upgrade apache from 2.4.52 to 2.4.58 on a droplet with Digital Ocean running Ubuntu 22.04. My upgrade path is: sudo apt update And then: sudo apt install apache But I get a message thats ...
0 votes
1 answer
86 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 ...
0 votes
0 answers
115 views

Apace Reverse Proxy to Docker Container - CSF Breaking Container App

I've been at this all day now and can't seem to figure it out. I installed listmonk on my server and set up an Apache Reverse Proxy to it: <VirtualHost listmonk.ygoprodeck.com:80> ServerName ...
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 ...
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 ...
1 vote
1 answer
4k views

Using RewriteRule only for a specific subfolder/project

I have an application in a subfolder "subfolder" of Apache so I can use a URL such as: https://example.com/subfolder/#/v2/login instead of https://example.com/#/v2/login. I have the following in the ....
0 votes
1 answer
701 views

Openstack Glance Configutarion on HTTPS RESTAPI + Nginx Reverse Proxy

I am trying to install openstack Using ssl certs i am able to run keystone (on port 5000) but when i try to connect to glance api (port 9292) it fails it is only accessible with http not https i feel ...
3 votes
1 answer
411 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 ...
0 votes
1 answer
59 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 ...
0 votes
0 answers
25 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 ...
0 votes
0 answers
97 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 ...
0 votes
2 answers
113 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. ...
0 votes
0 answers
51 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 ...
1 vote
1 answer
661 views

What's the advantage of uwsgi protocol over http for Apache proxying?

I've just set up a couple of WSGI apps behind an Apache server proxying to uwsgi using UNIX sockets on the same host. The generally advertised method to do that seems to be like this: Apache config: ...
0 votes
0 answers
180 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 ...
0 votes
0 answers
51 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 ...

1
2 3 4 5
36