All Questions
Tagged with apache-2.4 apache-2.2
360
questions
0
votes
2
answers
69
views
IP denials and Apache
I am using Apache 2.2, and my .htaccess file is filled with "deny from"s to restrict IP access. You know, recognized spammers and the like. In upgrading to Apache 2.4, I am told that IP ...
0
votes
2
answers
197
views
Reverse proxy for streamlit
Streamlit app
I have a streamlit app running on port 8501:
https://dharmatech.dev:8501/fed-net-liquidity/
Here's how I'm starting the app:
streamlit run \
--browser.serverAddress dharmatech....
0
votes
0
answers
37
views
Apache Configuration
I am sure you may have encountered this issue.
I have a server with jira, bitbucket and confluence configured on the same server. As the bitbucket is moved to linux serer i am wondering how can I ...
0
votes
0
answers
46
views
OHS and ProxyPass and RewriteRule / RedirectMatch
i've setted up this virtualhost,
<VirtualHost *:443>
ServerName test.domain.org
DocumentRoot "/u02/config/www/tst-12c"
RewriteEngine on
RewriteCond %{...
0
votes
0
answers
43
views
Convert auth config from apache http server 2.2 to apache 2.4
I have the following apache 2.2 configuration and need to transform it to apache 2.4.
<Location />
Order Deny,Allow
Deny From Env=TEST
Allow From Env=LOCAL
Allow ...
0
votes
1
answer
113
views
Apache LogFormat: what does %f mean?
I have checked the apache logformat from - https://httpd.apache.org/docs/2.4/mod/mod_log_config.html
I am not able to understand what does "%f" parameter mean in apache log format. The ...
0
votes
0
answers
158
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
50
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
107
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 ...
1
vote
0
answers
218
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, ...
1
vote
1
answer
3k
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
660
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
305
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
311
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
1k
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
548
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
234
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
172
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
110
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
902
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
2k
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
785
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
192
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
134
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
79
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
2k
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
3k
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
601
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
782
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
433
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
344
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
491
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
298
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
674
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
690
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
188
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
276
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
137
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
224
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
384
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
7k
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
743
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
195
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
27k
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
272
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
5k
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 ...