All Questions
Tagged with apache-2.4 apache-2.2
357
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
0
answers
21
views
Apache - How to compress (gzip) only specific calls
I have PHP application served with Apache 2.4
I need the apache to compress (mod_deflate - gzip) calls for specific users. So the application should decides dynamically which calls gets gzipped.
I was ...
0
votes
1
answer
49
views
Apache rewrite any uri to index.html but existing files
My front-end project is based on 1 file: frontend/index.html
It means that every request like /contact, /about, etc should be responded by index.html file.
I was thought I can use these lines in my ...
0
votes
0
answers
27
views
mod_jk - 2 JkMount Directives with the same URL but different workers
I have a question. How would the following mod_jk directives be interpreted?
<VirtualHost *:443>
ServerName backend.example.com
...
JkMount /api/prod worker1
JkMount /api/prod/* ...
0
votes
0
answers
94
views
Apache Server Config Set Headers Conditionally
I am trying to set cache age for 200 responses and no cache for rest of the calls.
I tried below config, which works fine when 200 OK response comes up and I can see max-age=800 in headers
But for ...
1
vote
0
answers
140
views
SOAPUI What causes "error in msg parsing: xml was empty, didn't parse!"
Currently, I have a structure which takes a SOAP request, fires the request at a reverse proxy (a script written in Lua) which takes a copy of the SOAP request and then passes that to the webserver, ...
0
votes
0
answers
177
views
Pass on SOAP request body through a reverse proxy
Im trying to implement a reverse proxy which takes in a SOAP request, saves the SOAP body message (Envelope, header, body etc.). I would then like to change some of the content of the SOAP request and ...
1
vote
1
answer
2k
views
Websocket with Apache 2.4.52 and Ubuntu
I am trying to follow tutorial located here for messaging system using RatChet PHP
https://www.twilio.com/blog/create-php-websocket-server-build-real-time-even-driven-application
I have my domain ...
1
vote
0
answers
528
views
index.php displays as listing on Apache2 server
My OS is Ubuntu 22.04
I started out by installing php 8.1
I then installed Apache/2.4.52 (Ubuntu) Server
Then I added the following:
sudo apt-get install -y php php-cli php-common php-mysql php-zip ...
1
vote
0
answers
261
views
The Let's Encrypt cert doesn't work on Apache and FreeBSD
Our server administrator installed via Certbot the free Let's Encrypt certificate on our server with FreeBSD. But the cert doesn't work and we can't understand how exaclty we should configure the file ...
1
vote
1
answer
226
views
How to deny from domain but allow ip from that domain in apache 2.4?
I am updating a .htaccess file to use apache 2.4 directives instead of the previous allow/deny syntax.
I am trying to deny access from amazonaws.com because it is mostly automated traffic/bots. I ...
0
votes
1
answer
784
views
modsecurity wont start with an apache server
I have a Debian server where apache2 is running. I want to use modsecurity for throttling.
apache2 info
$ apache2ctl -v
Server version: Apache/2.4.29 (Debian)
Server built: 2018-01-14T11:01:58
I ...
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 ...
1
vote
1
answer
406
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:
&...
3
votes
1
answer
167
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.
0
votes
1
answer
134
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 ...
0
votes
1
answer
97
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 <...
0
votes
2
answers
670
views
httpd quits after reload - slotmem-shm
My current httpd deployment setup involves generating new configuration files, relinking the config directory, then reloading the apache service. This process works fine for most of my hosts, however ...
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
...
0
votes
1
answer
527
views
Apache Site Goes To Wrong Page If I Manually Enter HTTPS:// in the URL
If I type in example.com into the URL it redirects to https://www.example.com which is great, same with typing http://example.com I get the correct redirect to https://www.example.com.
However if I ...
1
vote
1
answer
160
views
Random Internal Server Error
We are receiving random internal server errors on one of our website.
These internal server errors can sometimes appear only on some users but other users are not receiving it (at the very same time) ...
0
votes
2
answers
130
views
Mod-rewrite Port in Apache2
I'm playing with home assistant (HA) in docker on Ubuntu 20.04. HA is hosted on port 8123. HA does not support subpaths, ie. it is hosted at MYDOMAIN.duckdns.org:8123 rather than MYDOMAIN.duckdns.org:...
0
votes
0
answers
1k
views
Apache status "150 requests currently being processed, 0 idle workers"
My Apache Server Scoreboard Status is as shown below when the "150 requests currently being processed, 0 idle workers" condition is hit.
--Log-trace---
Apache Server Status for localhost (...
0
votes
0
answers
62
views
How to configure my website to be accessed by public IP addres
I have a website hosted on my pc , I can access my website using 127.0.0.1 also 192.168.0.130 but not by using the public IP address .
however I can access the rooter interface using http://105.101....
1
vote
1
answer
1k
views
Is it possible to share files through Apache WebDAV?
Apache WebDAV allows to setup a WebDAV server without the PHP overhead which is usualy produced through Nextcloud/Owncloud. But is it also able to:
share a file / folder with other authed users?
...
1
vote
1
answer
2k
views
Apache Error log format: how to find current format?
I am building a log parser in PHP and have trouble with apache error log format.
With access log, it's easy to see the default LogFormat in apache config file then check in my virtual hosts for any ...
0
votes
1
answer
540
views
Please help- I can't figure out whats taking down my server every day
Every day my server goes down - sometimes 2 or 3 times a day. Between 2-15 minutes
I was pretty sure it was due to a type of distributed DDOS or perhaps brute force but using Cloudflare doesn't seem ...
0
votes
0
answers
715
views
When too many concurrent connection to MySQL, all Apache-PHP site unable connect to DB
I'm using RDS from amazon, and tuned the MySQL config to the max.
However, all the site will be stop connecting to the MySQL when the number of connection reached a certain numbers of activities. It's ...
0
votes
0
answers
373
views
Bots causing server to crash - getting error "server seems busy" in apache logs - need to update prefork settings?
So after my website ( running on a Rackspace 2GB ram centos 7 instance) went down twice this week I went through the logs and seems the culprit are bots ( search engine and others.. )
The bots seem ...
0
votes
0
answers
307
views
How to correctly tune Apache and mod_wsgi
I'm using Django with mod_wsgi and need to tune the httpd.conf to handle 500 requests per second at peak.
Right now I have the following configuration:
StartServers 3
ServerLimit 15
MinSpareThreads ...
0
votes
1
answer
437
views
Restarting Apache with PHP
How would I go about restarting Apache with a PHP script while keeping correct security measures on a production server? This is because restarting Apache requires the use of sudo or root privileges, ...
0
votes
1
answer
264
views
How to add logging to Apache If/Else?
No matter what, Apache is always going to the else block. I've looked at this one, but this one is using a user-defined environment variable. I'm trying to use an apache header to do some dynamic ...
0
votes
1
answer
475
views
How to plug Apache to several ldap servers with mod_authnz_ldap?
The apache mod_authnz_ldap AuthLDAPURL directive can have several ldap URIs as showed in the doc:
AuthLDAPURL "ldap://ldap1.example.com ldap2.example.com/dc=..."
However, if I need ...
0
votes
0
answers
567
views
How to log upstream IP in Apache HTTP server?
I'm using Apache Http server as a reverse proxy. I am interested in logging the upstream server IP in access and error logs. I'm looking for something like upstream_addr of Nginx web server.
2
votes
1
answer
179
views
Apache incorrectly resolves requests with paths starting with /index.php/
In reviewing access logs I've noticed the below automated vulnerability scan for which Apache is returning a 200 status:
POST /index.php/api/Uploadify/preview HTTP/1.1
There's isn't a rewrite rule ...
1
vote
1
answer
224
views
Does Apache reverse-proxy pipeline requests to origin servers?
When configuring Apache as a reverse proxy (i.e. using ProxyPass or RewriteRule [P]), does it ever pipeline the requests to origin servers, or are they always sent non-pipelined?
This is important to ...
0
votes
2
answers
126
views
htaccess rewrite for generated links
Hi,
In the picture shows my htaccess rules, it blocks all requests not coming from this referer.
But the application installed sends a confirmation email after booking with a URL ending like this:
...
1
vote
1
answer
195
views
Apache - mod_rewrite - backreferences understanding
httpd Apache server -> mod_rewrite -> backreferences
The following picture is about understanding the reference to parentheses ([Flags] are omitted).
If you use parentheses, backlinks are made to ...
0
votes
0
answers
364
views
How to dynamically set SSLCertificateFile for user's custom domains
I have a site where users can point their own custom domain to their unique directory on my site through A Records.
For example, example.com points to mysite.com/something and anothersite.org points ...
2
votes
3
answers
6k
views
Misdirected Request (only on Apple devices) iOS mobile browsers and Safari on Mac
The whole error
Misdirected Request
The client needs a new connection for this request as the requested
host name does not match the Server Name Indication (SNI) in use for
this connection....
0
votes
1
answer
553
views
Block Crawlers on Apache
I am trying to block crawlers on Apache
<Directory /to/my/site/>
Options Indexes FollowSymLinks
AllowOverride All
Order deny,allow
deny from 18.*.*.*
...
0
votes
1
answer
183
views
Nginx rewrite to Apache rewriterule for path
I have a landing page and a text box. They enter some input into the text box and get taken to /search, which I want to load search_res.html. My file structure is:
/var/www/html
index.html
...
0
votes
2
answers
3k
views
How to restart apache2 server
I'm unable to run sudo service apache2 restart on my sever. Inorder to troubleshoot this when I execute sudo systemctl status apache2.service and I get the following log.
Loaded: loaded (/lib/...
8
votes
3
answers
24k
views
"No space left on device: AH00023: Couldn't create the mpm-accept mutex" when restarting httpd
My server sometimes gets filled up with connections in apache stuck in a "Sending Reply" state, requiring me to restart apache. Most of the time this works, but sometimes I will get this ...
0
votes
0
answers
248
views
Apache misconfiguration - config works on apache 2.2 but not 2.4
I have a set of cgi scripts which run on a RHEL 6.x (with Apache 2.2) box fine.
There is a cgi-bin directory containing the scripts, plus an index.html (pure html) which serves as a front end to the ...
0
votes
1
answer
4k
views
Apache: proxypass docker container to subdomain
The subdomain sub.example.com is hosted on AWS EC2, Amazon linux 2 OS based on centos. It runs php7 lampp stack. webroot is /var/www/html.
We don't have access to the domain, example.com, it's with ...
0
votes
2
answers
2k
views
Serve different servers based on CNAME for domain with apache?
I've looked a bit around here on serverfault, but can't seem to find anything related to my issue (maybe because i don't know what to search for).
Anyways, my issue is that i have 2 servers. One main ...
1
vote
2
answers
915
views
Do servers do their own load balancing? (The cores. Single server system.)
When I look up load balancing, everything I see is talking about distributing traffic to multiple servers. I did a Google search for "single server" and "one server" in this context, and don't see ...
1
vote
0
answers
260
views
Cannot redirect/proxy from Apache to lighttpd server
I have a home server that is accessible from outside with a static IP and port http://<homeip>:10001. This is a Lighttpd server.
I also own a website https://example.com with Apache, I've ...
1
vote
0
answers
1k
views
Apache performance tuning for high traffic with MPM Event
I currently manage the following set of servers that serve about 700 web pages:
SERVER 1 (WEB)
Web server: Apache 2.4.29 with MPM Event
PHP 7.2.22
CPU: Intel Xeon CPU E5-2673 v4 @2.30GHz (4 cores) ...