Questions tagged [apache-2.2]

Version 2.2 of the Apache HTTP 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
5 views

What could be the reason for about 10x memory usage after upgrade from Apache 2.2 to 2.4?

I have used Apache 2.2 with PHP 7.1 on Linux for years and have recently upgraded to Apache 2.4 with PHP 8.1 After the upgrade, the processes spawned by Apache have gone from about 200MB to 2GB in RAM ...
user avatar
-1 votes
0 answers
33 views

How do i make my webserver redundant so if one fails there's a backup [closed]

So as of now, I have one apache server running and I would like it so that if that server goes down (hardware or something) I have another server to take its place. How would I have to set up my extra ...
user avatar
0 votes
0 answers
26 views

Python script get requests in time range from apache logs

I'm supposed to write a Python script that takes 2 inputs (start time and end time) and print out all requests within the time range but I'm having a hard time figuring out how to do this. I'm trying ...
user avatar
  • 1
0 votes
1 answer
24 views

How difficult is to migrate from Windows to Linux without any experience with Linux? [closed]

I have an immense background with Microsoft Windows Server (from Windows NT to the latest server editions), but now I am forced to move some services off Windows Server platform to reduce hosting ...
user avatar
0 votes
1 answer
16 views

How to know the url/website a httpd process is serving?

I have several websites set up on a host. Using the "top" command, I see a lot of httpd processes that consume most of CPU. I want to know if I can get the url(or at least the website) each ...
user avatar
  • 135
0 votes
1 answer
79 views

How to setup correct .htaccess for laravel app on subdomain?

I moved my Laravel application from the development localhost to an internet production subdomain. On localhost everything works. But when I move app to subdomain it seems .htaccess can not handle ...
user avatar
0 votes
1 answer
43 views

Blocking Port 8080 from direct IP access but allow access via domain (Virtualhost Config)

I want to access web server from http://subdomain2.domain.com from URL but not from direct IP (http://1.1.1.1:8080). For instance, below is my virtualhost config file (site2.conf) in /etc/apache2/...
user avatar
0 votes
0 answers
77 views

Zabbix server port 10051 not listening

I have a Zabbix agent and a master server. In both servers, the port 10050 is working fine but unable to connect the Zabbix agent to the master server because the port 10051 is closed. I have seen the ...
user avatar
0 votes
0 answers
23 views

angular and wsgi-flask on apache

0 I can't run both wsgi and angular on apache at the same time. Although if you remove or wsgi or angular from the example.com.conf file, then they work, but if they are together, then they don’t. ...
user avatar
0 votes
0 answers
29 views

Unable to access Samba, Apache2 on Ubuntu Server

I've got a PC running Ubuntu 20.04 that I used as my home server with a VM, Samba, webserver, DDNS, SSH etc but randomly it just stopped showing up on my local network for half the services. I can no ...
user avatar
0 votes
0 answers
48 views

Proxy pass to express http server not working with secure websocket

So I currently have apache with a proxy pass which redirects all requests to an express api running using the http node module, I also have a letsencrypt ssl certificate installed and all is working ...
user avatar
  • 101
1 vote
1 answer
49 views

Nginx behind Apache

I have an apache who is hosting websites one is 000-default.conf for www.domain1.com another one is domain2.conf for www.domain2.com and has a config like this <VirtualHost *:80> ...
user avatar
0 votes
0 answers
67 views

How to reverse proxy to a container then through domain name to access the site

I set up a WordPress site with docker composer via Portainer. The site can access by the IP address. How can I set reverses proxy and access the site by domain? I tried to put the proxy block in the ...
user avatar
0 votes
1 answer
33 views

Why apache2 is using so much CPU power from a EC2 instance?

This is my case: i have a ec2 instance with 5 virtual hosts running apache2. Sometimes, randomly, the CPU goes over 80% utilization because of apache. The sites are not so elaborated, and not even get ...
user avatar
0 votes
0 answers
81 views

Proxy pass on apache (for a specific subdomain) with wildcard certificate

I am using apache2 server for a domain which has several subdomains. Each subdomain needs to be on https. I have a wildcard certificate installed for this and it works fine. Now one specific subdomain ...
user avatar
  • 107
0 votes
0 answers
15 views

Apache2 server fails to start without sudo first time

I have deployed my application to a kubernetes cluster that does not allow root user within pods. So I had to change the user to ubuntu. Due to this, I changed the default port of apache2 from 80 to ...
user avatar
0 votes
0 answers
44 views

why litespeed prevent reverse proxy working?

when my server running with litespeed the ProxyPass to external site (e.g. google.com) not working but on apache it works litespeed says that you must add a web server in externalApp in litespeed ...
user avatar
0 votes
1 answer
26 views

Username and password doesn't work (BASIC AUTH)

AuthType Basic AuthName "staging" AuthUserFile "/etc/httpd/pass/password" require valid-user I see this and inside /etc/httpd/pass/password I see example1:justanexample example2:...
user avatar
  • 1
0 votes
2 answers
47 views

Httpd Directory read permissions only issue

In my scenario ,I need the 'httpd' directory in '/var/log/' to be readable by the users in 'devs' group (Amazon Linux 2) Could anyone guide me how to accomplish this? We have a few developers who ...
user avatar
1 vote
1 answer
21 views

Setting Apache header with conditions of excluding paths/directorys / server ips

I use a WordPress plugin called Duplicator Pro and the best way of installing with their installers is to use the servers IP rather than the domain because that way it autofills & conects to the ...
user avatar
  • 139
0 votes
0 answers
24 views

Nginx rewrite rule return php in plain text

I have an Apache Configuration file that contains many rewrite rules. RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://website.uri/$1 [R,L] RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s ...
user avatar
2 votes
0 answers
33 views

Conditional directives based on User-Agent with Apache 2.2.x?

I want to implement something like the following in our Apache httpd configuration: <If "%{HTTP_USER_AGENT} !~ /something/"> RemoveEncoding .gz .tgz AddType ...
user avatar
  • 121
0 votes
0 answers
33 views

SSL not fully trusted on ports 993 and 587 of our mail server by Zendesk

We have our own mail server running using iRedMail on Apache. It's been working for us for a number of years and there haven't been any issues with the SSL until now. One of our clients is trying to ...
user avatar
0 votes
2 answers
25 views

How to track specific logs in Ubuntu? (CPU)

We have this EC2 instance: T2.medium, running apache, with 4 virtual hosts (4 sites). Sometimes, out of nowhere, the CPU reaches very high levels, maybe an attack. I've seen some of our wordpress ...
user avatar
0 votes
0 answers
94 views

authz_core:error Apache HTTPD RHEL7 client denied by server configuration

Based on the following logs, how can I locate the config file that could be preventing access? Line 211: [Wed Mar 16 10:08:04.145981 2022] [authz_core:error] [pid 30995] [client 10.115.64.185:45138] ...
user avatar
1 vote
0 answers
86 views

Apache: <LimitExcept POST> not working (in .htaccess)

I am trying to set some controls in Apache via the .htaccess. This works: <LimitExcept GET> Order allow,deny Allow from all Deny from all </LimitExcept> while this does not: &...
user avatar
0 votes
0 answers
17 views

Why is apache -X stuck in a pselec6() NULL loop?

version 2.4 pselect6(0, NULL, NULL, NULL, {tv_sec=0, tv_nsec=100000000}, NULL) = 0 (Timeout) Repeats forever using strace. Only one httpd process enabled.
user avatar
0 votes
0 answers
41 views

Apache 2.4 (52) debugging, several stuck apache2 -k start at 99%-ish CPU. strace stuck on FUTEX

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3023 www-data 20 0 262216 19280 8848 R 93.8 0.2 3:47.05 /usr/sbin/apach Kernel release: 5.15.0-1002-aws There ...
user avatar
0 votes
0 answers
50 views

.htaccess too many redirect error to the same page url

I have a very weird too many redirect error on apache server The site was working for a long time, and there was no change. I woke this morning in this happened. Apache is working, but from a specific ...
user avatar
  • 283
0 votes
0 answers
95 views

mysql service crash (ubuntu server)

mysql service craches and the server becomes down everyday or every two days and I do not know the reason (I am using apache and innodb). mysql error log: 2022-03-12 11:11:22 140142364764096 [Note] ...
user avatar
1 vote
1 answer
32 views

Add a subdomain as an exception in hotlinking

I used this code in my .htaccess file and it is working great to prevent hotlinking: RewriteEngine On RewriteCond %{HTTP_HOST}@@%{HTTP_REFERER} !^([^@]*)@@https?://\1/.* RewriteRule \.(gif|jpg|jpeg|...
user avatar
  • 11
0 votes
0 answers
30 views

Apache limits errors when scalling with many domains for Saas app

**Hello everybody , I making SaaS app like Shopify and ecwid , user create store within 10 mins , once he register he get automatic subdomain with SSL and can add products and payment methods, ...
user avatar
0 votes
0 answers
33 views

IP address not linking to apache

I'm extremely new to this, so apologies in advance for... well everything. I have a raspberry pi and have been coding with CSS/HTML. I was attempting to use google clouds as a front-facing port, but ...
user avatar
0 votes
0 answers
10 views

Debugging and logging php cronjobs

timeout -s9 1h php -d memory_limit=4096M run-action.php --host=www.goodbuys.ca --action=import_hook --lock=import; Every time I run this, I get: Exception detail: /var/log/goodbuys/goodbuys-goodbuys-...
user avatar
  • 7
0 votes
1 answer
48 views

Apache2 server getting so many unusal requests again and again

I am trying to configure the WordPress and NodeJS website together and I am using an apache2 server and ubuntu(20.04) virtual machine. I configured both applications successfully on my machine but ...
user avatar
0 votes
1 answer
287 views

TLS 1.0 expiry [ERR_SSL_VERSION_OR_CIPHER_MISMATCH] on Apache 2.2.8

I have some legacy web appliations running over Apache 2.2.8 and openssl 0.9.7a. I have start receiving ERR_SSL_VERSION_OR_CIPHER_MISMATCH on latest browsers. Multiple virtual hosts configured on the ...
user avatar
  • 1
0 votes
1 answer
105 views

Correct symbolic link to load ssl module on compiled apache 2.2

I'm trying to replicate a server configuration for an old system, which uses old apache and php versions, specifically apache 2.2.4, in order to compile this version of apache, I had to install ...
user avatar
1 vote
1 answer
3k views

RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}],what does it mean?

I find new version(V5.9) of Wordpress adds this line to .htaccess: RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] Old version of Wordpress does not have this line. What does it mean? ...
user avatar
  • 69
0 votes
0 answers
20 views

How to configure a domain on Apache (using apache2.conf or .htaccess) to point to a file that must be downloaded?

I have a domain (let's call it mydomain.com). I already configured the apache on my server, so when I open mydomain.com, the apache landing page appears. Fine. I put a file (let's call it myfile.zip) ...
user avatar
0 votes
0 answers
33 views

Multiple cache headers

So I'm running a drupal site and I'd like the response of a specific URL to be cached: I've added this code in the PHP function: $seconds_to_cache = 3600; $ts = gmdate("D, d M Y H:i:s", ...
user avatar
  • 101
0 votes
0 answers
35 views

Apache ProxyPass: Connection timed out

I have my apache configured to proxy some traffic to an internal ip (127.0.0.1:8048). When accessing the internal IP, everything works fine. But when acessing the proxy, I receive: Failed to connect ...
user avatar
0 votes
0 answers
156 views

Not found 404 with apache and bootstack

the last two day I was trying to run bookstack with an apache webserver, which is hosted localy on my system. I'am not familiar with apache and bookstack. So this was my first try to host a local ...
user avatar
0 votes
0 answers
172 views

Bad Request Error Only in chrome Browser : Apache Logs , BufferOverflowException

List item Background, My firm uses apache http server with apache tomcat, here apache http server acts as a reverse proxy only, we have one apache and one tomcat instance, Bad Request Error is only ...
user avatar
0 votes
0 answers
20 views

compile time error C++ Web HTML Application using CGI Library CGICC

Getting following errorndefined symbols for architecture x86_64: "cgicc::Cgicc::getElement(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)", ...
user avatar
0 votes
1 answer
32 views

Why do we need Apache Access Control when we have ownership, permission and firewall

Why do we need Apache Access Control like Require user <name or UID> Not require user <name or UID> Require group <name or GID> Not require group <name or GID> Require ip <...
user avatar
0 votes
0 answers
55 views

How to get HTTP_X_FORWARDED_FOR in Apache config files

I have a protected admin area that is only accessible for my IP. However, I am using a proxy that has a lot of IPs. It's not practical to whitelist all its list of IPs. The proxy sends the ...
user avatar
  • 437
0 votes
2 answers
110 views

How to disable reverse DNS lookup in Apache 2.2 or in recursive bind

I would like to stop Apache (2.2) from doing reverse lookups for client IP addresses. I have HostnameLookups Off and LogFormat "%h %l %u %t %V \"%r\" %>s %b \"%{Referer}i\"...
user avatar
0 votes
1 answer
27 views

example.com to https://www.example.com | Apache

So I want to redirect example.com to https://www.example.com. I already have ssl with certbot but I want to change my redirect config in /etc/apache2/sites-available/example.conf. Certbot already ...
user avatar
-4 votes
1 answer
51 views

Does every application needs web server? [closed]

Server is just a machine with web server software(like nginx, apache etc). When we host a website in hosting services like GoDaddy or cloud services, does they provide web server software for every ...
user avatar
  • 97
2 votes
1 answer
53 views

Apache incorrect url rewrite for non-existent symlink files

I have a directory (foo/uploads), which contains 1 file: file1.txt I have created a symlink to this directory (bar/uploads) Here is my .htaccess file inside bar: RewriteEngine On RewriteCond %{...
user avatar
  • 153

1
2 3 4 5
345