All Questions
Tagged with apache-2.4 linux
352
questions
0
votes
0
answers
30
views
How Do You Block & Unblock Internet Sites in Apache?
How do you block all internet sites and only let some sites through in Apache Proxy?
I want to block all sites except some (e.g. updatemicrosoft.com, .windowsupdate.com , google.it etc.)
I have ...
0
votes
1
answer
55
views
PM2 + apache2 Optimization
I am running a Node.js application with PM2 as a reverse proxy through Apache on my Centos 7 server. The website experiences very slow loading times, and its performance is quite poor. Can anyone ...
0
votes
0
answers
29
views
How to configure Apache 2.4 to use ProxyPass to rewrite the websocket's port?
My Nodejs WS ( pure Websocket, I am not using socket.io ) works on port 5000 and I wish to proxy pass to the domain itself.
I have tried to add the following lines but I still failed to get myself ...
0
votes
0
answers
77
views
Add the name of the file analyzed to the e-mail (logcheck)
I use logcheck to receive apache logs. My question is how to configure logcheck to add the name of the file that is analysed in the email. Example: at the moment I have this:
This email is sent by ...
0
votes
1
answer
76
views
Apache Server 2.4.57 / Increasing the maximum number of conections/requests accepted & Check the number of concurrent process
We are using the following configuration and as far as I know this configuration can execute 8000 requests/processes concurrent.
Apache Server Version: 2.4.57, Server MPM: event
<IfModule ...
0
votes
0
answers
58
views
DirectAdmin Apache/Nginx Reverse Proxy Custom Subdomain Config
I have a particular application on a subdomain that needs a custom Nginx configuration to work. I am using DirectAdmin control panel to make per-domain customisations. However, I am getting confused ...
0
votes
1
answer
139
views
VPS server all domains showing This site can’t be reached error
Hello all hoping someone may be able to help.
I have a VPS server running apache with linux centos 8. I have a few domains running on PHP 8 and one wordpress and node API application. Everything was ...
1
vote
1
answer
293
views
Troubleshooting Apache with GSS Proxy Authentication and LDAP Authorization
I'm setting up an internal web server on a domain-joined RHEL server with Kerberos authentication via GSS proxy and tiered authorization with LDAP, where Active Directory is the source of truth. ...
0
votes
1
answer
315
views
Is there any working Apache module to implement NTLM on Ubuntu Server
I am trying to configure NTLM authentication for an internal site running on Apache/Ubuntu Jammy. I was able to implement LDAP authentication. Still, I want to make the login/auth process smooth as ...
1
vote
1
answer
148
views
Could not bind to address no listening sockets available
RockyLinux 9. On reboot Apache fails to start with the message
Jul 21 10:53:13 cl httpd[877]: (99)Cannot assign requested address: AH00072: make_sock: could not bind to address 1.2.3.4:80
Jul 21 10:53:...
0
votes
0
answers
79
views
AH00046: child process {pid} still did not exit, sending a SIGKILL
We hosted our wordpress site in linux apache. We are using apache version 2.4
Our site getting timeout issue and getting downtime frequently or we will face delayed response from site.
While ...
0
votes
0
answers
22
views
Apache : wild card redirection rules
I have the below requirement for an apache redirection. When this url comes
https://example.com/first-path/index.jsp?jpc=red
it should go to.
https://example.com/red
Where jpc is a constant value key ...
0
votes
1
answer
114
views
Apache child processes are launched more than ServerLimit and threads are executed more than ThreadsPerChild
The following version of Apache is used. (MPM : event)
httpd -V
Server version: Apache/2.4.37 (Red Hat Enterprise Linux)
Server built: Jun 15 2022 08:27:14
Server's Module Magic Number: xxxxxxxx:xx
...
0
votes
0
answers
20
views
Large consumption of resources when stopping Apache
During the stop of the apache service, the httpd -prefork processes take 100% load on all cores and take up all available memory, as a result of which the oom killer is triggered.
Stop command:
...
0
votes
1
answer
120
views
apache "Options Indexes" working localhost but not with public DNS name
I have a Kubernetes cluster and a very basic container. I am trying to access it through the internet and the task is very simple, I just need to list the index of the directory. Here is my basic ...
0
votes
1
answer
809
views
Forwarding apache logs from k8s Pod to Syslog server
I am new to Kubernetes, I know there are multiple ways to log collection. but I am specifically asking about my scenario. we have a Syslog xyz.com port 8090. now we want our pods to send logs to our ...
0
votes
1
answer
41
views
Apache HTTP Server - 2.4.5* / Is it Possible to Use Cluster Scenario for WebLogic Server Installed On 2 Different Machines Using Apache HTTP Server?
There are 2 different scenarios.
Scenario-1:
Let's assume that WebLogic is installed on 2 different servers. Server IPs: 192.168.0.111 and 192.168.0.112. These servers are not clustered (ie each ...
1
vote
1
answer
175
views
Apache Server Error After Setting Up SSL Configs
I am running an EC2 Linux 2 AMI and was following an AWS tutorial to enable HTTPS on my server.
But when I try to restart Apache, error seen in the logs:
Apr 10 06:56:40 <maskediphere> systemd[1]...
0
votes
0
answers
100
views
Apache 2.4 ErrorDocument 401 breaks basic authentification
I got an issue with the basic authentication, when I add ErrorDocument 401 /var/www/rainbow/static/401.html you can click on cancel on auth prompt and you got access without auth 😫.
Here is my site ...
0
votes
1
answer
893
views
Apache2.4 returns 403/Forbidden error on symlinks after Ubuntu upgrade
I just upgraded my development workstation from Kubuntu 18.04 to Kubuntu 22.04.2 LTS.
For context, I keep /home on a separate disk from /. The previous / is still present at /mnt/sdc5.
Kubuntu 18.04 ...
1
vote
1
answer
454
views
Default WordPress .htaccess rewrites causes default server page to load due to no default index page present for the root URL
I could really do with some help here please. I know this is a WordPress issue now through testing.
If I allow .htaccess to process rewrites on my Wordpress sites by adding AllowOverride FileInfo to ...
0
votes
0
answers
77
views
I cannot get environment variable from apache
On a Centos 8, I added a SetEnv into my VirtualHost conf:
<VirtualHost *:XXXX>
Alias /static/ /opt/industrialisation/xxxx/xxxx/xxxx/
<Directory /opt/industrialisation/xxx/xxxx/>
...
2
votes
0
answers
32
views
401 Error When Making Basic Authenticated API Calls to X2CRM
We are encountering a 401 error when making basic authenticated API calls to the X2CRM endpoints (index.php/api2/Contacts).
Unauthenticated API calls to other X2CRM VoIP endpoints are successful ...
0
votes
0
answers
96
views
PHP - Session Upload Progress produces 503 error
I've just migrated from APC to using Session Upload Progress (https://www.php.net/manual/en/session.upload-progress.php).
All was going swimmingly until some forms were mysteriously throwing up Access-...
1
vote
2
answers
7k
views
Configuring PHP-FPM in Apache
I installed Apache/2.4.54, PHP72-FPM, PHP74-FPM and some other versions of PHP-FPM on Arch Linux.
Apparently there is some misconfiguration in httpd.conf, PHP can`t interpret anything and browser ...
0
votes
1
answer
355
views
Allowing and restricting access to specific URL in Apache 2.4
I am new to apache. And I want to restrict access to this URL(https://testserver.com/admin.php) for public IP addresses. And I want to allow access to the same URL for specific IP addresses.
I am ...
0
votes
1
answer
458
views
Limiting CPU usage of Mariadb proccess doesn't work
I'm building a server that runs Mariadb 10.5, apache, nginx and PHP-FPM.
The server have 16 cores and 32GB Ram.
This server suppose to work under load, but it doesn't because Mariadb is using 1500%, ...
0
votes
1
answer
448
views
LAMP Stack - Multiple Websites Isolation
I would like to host multiple websites on a VPS (LAMP stack - Ubuntu 20.04 LTS). For security reasons, I'd like to properly isolate each website/vhost from each other and also prevent access to other/...
1
vote
0
answers
388
views
Apache mod QOS is blocking all users when it should only block per IP
I am running Apache web server on Ubuntu. I am trying to reduce the load on the server due to aggressive bot traffic. Thus I am trying to make use of Apache's mod QOS (http://mod-qos.sourceforge.net/...
0
votes
1
answer
97
views
How do I redirect a website to local website?
I am trying to make my browser load local website instead of visiting actual website.
I have this httpd configuration
<VirtualHost 140.82.113.4:80>
ServerName www.github.com
ServerAlias ...
0
votes
1
answer
216
views
Apache 2 basic reverse proxy config not working, getting 404 error
I started a new server in a virtual machine, and I can access its homepage from the browser. I set up a docker container hosted on port 90 which I can also access. To link /app/ to localhost:90 I ...
0
votes
1
answer
145
views
How is extra data getting into my PHP document?
I am running Apache/2.4.29 with PHP 7.2.24. I have the following simple PHP document:
<html>
</head>
<title>Waste-A-GUID</title>
</head>
<body>
<center>
<...
1
vote
1
answer
1k
views
No space left on device: AH00023: Couldn't create the ssl-cache mutex
I saw another similar questions here but none had a answer that solved this problem.
From time to time, around 3am, my Apache server freezes and i see those errors in my logs...
(28) No space left on ...
0
votes
0
answers
30
views
How to configure apache so that only one organizational unit from windows server has access to the page
Im trying to configure ldap on apache in rocky linux but i want to allow only the users that belong to the group ITGeral from Win server to have access to the page. how do i configure that? i will ...
0
votes
0
answers
20
views
methods of restricting access
I've been restricting access to the administrator section of my websites by IP. My Apache configs include a list of Allow directives that I maintain to let my staff have access. The maintenance is ...
0
votes
1
answer
386
views
Apache2: How to Proxy the same url with different ports?
we have multiple different /apex instances.
now we want to proxy the requests trough an Apache2-Server like this:
request for instance1: http://proxy:8080/apex -> http://apex1:8080
request for ...
0
votes
0
answers
4k
views
RHEL8 and GSSAPI Kerberos authenticate through Apache issue
I'm trying to run an apache virtualhost, on a machine currently running Red Hat Enterprise Linux release 8.5 (Ootpa), with Kerberos authentication using the new GSSAPI module (replacement of ...
0
votes
1
answer
557
views
Apache - Active Directory LDAP authorization
I'm running Apache 2.4 on Fedora 34.
I've configured user authorization based on Active Directory usernames and passwords with "ldap_module" and "authnz_ldap_module" and this entry ...
1
vote
2
answers
4k
views
It looks like Apache2 fails to start
Sorry but i am new to Sysadmin stuff and really new to Linux (big noob) so i am asking you guys for help because i have no idea what is causing this (as i have already stated i am really new to Linux)....
0
votes
1
answer
1k
views
Apache mpm event-increasing StartServers has no effect on memory
I'm using apache mpm event on centos server with the following configs:
<IfModule event.c>
StartServers 8
ServerLimit 64
ThreadsPerChild 256
MaxRequestWorkers 16384
MaxConnectionsPerChild 10000
...
1
vote
1
answer
1k
views
apache mpm event-check current number of servers and threads
I'm using apache MPM event on my centos server with these configs:
<IfModule event.c>
StartServers 8
ServerLimit 32
ThreadsPerChild 256
MaxRequestWorkers 8192
MaxConnectionsPerChild 10000
...
0
votes
2
answers
73
views
apache doesn't show files which have different owner [closed]
I have created a domain in WHM for user alex. now if I put any file in public_html folder of this domain which has the owner defined as root, apache does not allow visiting of the file in browser, it ...
1
vote
1
answer
200
views
How many SSL certificates you need - aspnet core + Apache reverse proxy?
When you deploy aspnet core app on Linux you normally do it through reverse-proxy. I.e. Kestrel hosts the app and Apache handles the public internet traffic talking to Kestrel.
So Kestrel and Apache ...
0
votes
1
answer
2k
views
Apache server error Ubuntu 18: Syntax error on line 1: <VirtualHost> directive missing closing >
I've been trying to get my Apache server running on Ubuntu, but in my
/etc/apache2/sites-enabled/dev.lamp.test.conf
file I get this error when I run apachectl stop
AH00526: Syntax error on line 1 of /...
1
vote
2
answers
1k
views
Apache serving HTTP instead of HTTPS
I recently upgraded from Apache 2.2 to 2.4 (I know, I'm slow to upgrade, don't hate me). I have the following virtual host:
<VirtualHost _default_:30000>
DocumentRoot /opt/phpmyadmin
...
1
vote
1
answer
3k
views
Apache 2.4 and LDAP. Basic authentication issues
I'm using CentOS 8 Stream + Apache 2.4 + Subversion.
I want to allow access to SVN only for users who belong to a specific LDAP group (svn-users).
I have the following problems.
case 1. Enter the ...
0
votes
1
answer
49
views
How can I show the subdirectory of a server as an index based on domain used to connect to it?
I have 2 domains running in the same directory off the same IP (Via a CNAME record in each's DNS)
the directory shows this in the apache index:
index of /
domainOne.com/
domainTwo.com/
This is shown ...
1
vote
1
answer
421
views
Replace AuthUserFile with the password itself or reference a relative path to the folder
I have a PHP script that generates 100s of directories and in these directories contain CSV files. I'm able to protect these CSV files using AuthUserFile if it points to an absolute .htpasswd file, ...
1
vote
1
answer
467
views
Allow files to be listed when viewing a directory but protected (via HTTP authentication) when accessed directly
I created a password protected directory using .htaccess and .htpasswd, but the files don't show up when I go to the directory URL.
I have this in my .htaccess:
#Protect multiple files
<FilesMatch &...
0
votes
2
answers
390
views
lighttpd security without htaccess
I have a webserver with limited resources and therefore I decided to use lighttpd as my webserver software. However, I notice now that it does not recognizes apache .htaccess files.
Most of the ...