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)
17,291
questions
0
votes
0
answers
111
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 ...
0
votes
1
answer
80
views
How to add apache server config rewrite rule for encoding pipe symbol in url
I am getting a 404 error on URL that contains pipe symbol. If I encode manually with %7C for pipe it works properly. I want to add a rule in Apache conf file that automatically replaces pipe character ...
0
votes
0
answers
37
views
Server Performance experience share
I would like to know your expertise for high traffic site to choose a sever with backend.
I am familiar with PHP, NodeJS and Go programming languages. Also these days more popular HTTP servers are ...
0
votes
0
answers
121
views
403 FORBIDDEN APACHE django
Apache/2.4.54 (Win64) OpenSSL/1.1.1p PHP/8.1.12 mod_wsgi/4.9.4 Python/3.11 Server at localhost Port 80
I am trying to run my django project on my windows machine.. in apache this the configuration i ...
0
votes
0
answers
437
views
Apache server working, PHP isn't
I had a php tool working on my old macbook pro. I've recently install via homebrew the HTTPD server and install PHP per a few websites.
The local page loads but it seems that PHP isn't working ...
1
vote
0
answers
83
views
How to redirect using .htaccess in Apache
I am using the following .htaccess rules to redirect the url for following conditions:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^$ https://example.com/page.php [L,R=...
1
vote
2
answers
956
views
Fail2ban ban action error on debian
I'm not sure where to start looking for the issue here
This is on debian 11 (using nftables)
It seems like the nft add set ... command is failing
nft add set inet f2b-table addr-set-wordpress \{ type ...
1
vote
1
answer
120
views
rewrite based on script in URL
Using Apache 2.2.x -- my usual approach to blocking script kiddies from looking for various scripts on the server is to use dynamically created 'deny from' lists with the offending ip's. Works, but is ...
0
votes
0
answers
961
views
I get ERR_SSL_VERSION_OR_CIPHER_MISMATCH on apache server (installed with xampp on windows)
I have this version of Apache installed:
ApacheFriends XAMPP (Basispaket) version 1.6.8
Apache 2.2.9
MySQL 5.0.67 (Community Server)
PHP 5.2.6 + PHP 4.4.9 + PEAR
PHP-Switch win32 1.0 (use "php-...
0
votes
2
answers
54
views
how to keep website up when server resource is not available
First of all I should say I'm newbie in server configuration and managment.
In my case mariadb has high cpu usage and oom killer close this service when resources are not available and website get ...
1
vote
1
answer
55
views
ErrorDocs | VirtualHost | Apache 2.2.x
So, I'm having a challenge trying to get my virtual hosts (in the example, called bozo) to 'point' at the right error documents for 401, 403,... errors. I am trying the following construct, but it ...
0
votes
0
answers
185
views
Slow server performance due to Google Bot and Ahrefs Bot
I have a VPS server with 64 CPU cores and 128 GB RAM running on Debian. I have noticed that Google Bot from IP address 66.249.66.0/24 and Ahrefs Bot from IP addresses 54.36.148.0/24 and 54.36.149.0/24 ...
1
vote
0
answers
197
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
1
answer
619
views
Apache Authentication - Find out user password
My field of expertise is far away from server management but I am currently covering for a former collegue of mine, so I apologize in advance if my question doesn't make sense.
I have to restart an ...
0
votes
0
answers
3k
views
Nginx upstream wss proxy SSL_read() failed (SSL: error:0A000126:SSL routines::unexpected eof while reading)
What I need is
Client <--wss---> nginx <--wss--> server
I am doing a wss proxy, I have already got it working on Apache but I want to switch to nginx now here's the apache config:
<...
1
vote
1
answer
5k
views
AH01114: HTTP: failed to make connection to backend: localhost
I know some of you might think that its a little bit off topic here, but am not sure whether its fault of server OR fault of my config file, so...
I made React.js project , but it needs server side ...
0
votes
0
answers
535
views
Apache ProxyPass only proxying URL, but not page assets
So I currently have a proxy configuration that looks like the following:
ProxyPassMatch ^/foo/bar/(.+)$ https://xyz.domain.net/$1
ProxyPassReverse ^/foo/bar/(.+)$ https://xyz.domain.net/$1
...
1
vote
0
answers
71
views
Apache2: mod_ratelimit only allowing half the speed
I'm trying to limit the file download speed in a directory
I've got the following .htaccess
<IfModule ratelimit_module>
SetOutputFilter RATE_LIMIT
SetEnv rate-limit 4096
</IfModule>...
0
votes
1
answer
117
views
Nginx static images are not caching
I have a Magento website that is running on apache2 and the frontend is in PWA and running on Nginx and I'm using Cloudflare. Now want to cache the images but it's always showing BYPASS.
Apache ...
0
votes
0
answers
45
views
Which web server can return this page with empty html tags ? Cloudflare / Nginx / Apache
I am using a monitoring tool that constantly checks server status, and sometimes it gets this empty tags reply. The monitoring service doesn't give me more info, like status code.
<html><head&...
0
votes
1
answer
719
views
apache reverse proxy not working
I am using my apache container as a reverse-proxy and trying to access one of my VM services. It is working when I configure like,
ProxyPassMatch "^/(.*)$" "https://host1:443/$1"
...
1
vote
0
answers
409
views
How can I proxy pass applications to locations different from "/" with Apache?
Let's say I have three applications on my server: node-red (1880), jupyter (8888) and pgadmin (5433)... I can successfully create a localhost proxy pass with them individually as the following:
<...
0
votes
1
answer
295
views
nginx proxy to apache in local enviroment avoid error 504
Hi guys I have a setup where I use Nginx as entry point for my HTTP request on port 80 and then I make a proxy to port 8080 where Apache is running a virtual host with PHP7.4 + MySQL running on ...
1
vote
0
answers
119
views
debian apache server slow & not responding - cpu low
i have a debian server with apache and mysql installed there.
i have more visitors from 8pm to 22 pm and apache server to slow and lot of times page cant open on this period.
error: This site can’t ...
0
votes
0
answers
86
views
How to make redirect rewrite rule for https subdomain on apache (CentOS8)?
I have own domain for example.
https://example.com
Below is my apache virtual host with 301 redirect rewrite rule.
<VirtualHost *:80>
ServerName example.com
DocumentRoot /var/www/html/...
0
votes
2
answers
215
views
ProxyPass not working alongside ProxyPassMatch
So at the moment I have a virtual host configured on my Oracle HTTP Server instance with a ProxyPass as such:
ProxyPass ^/test/home/ https://example.com/
ProxyPassMatch ^/test/home/(.*)$ https://...
0
votes
3
answers
1k
views
CGI scripts: when can you return a document, instead of an HTTP response?
Script 1 below is bash, and is at https://example.com/cgi-bin/test. It produces the output 'Under construction' when fetched. It echos Status and Content-type headers, and some HTML. If I instead try ...
0
votes
1
answer
254
views
How do I add a second virtual host to an Apache server config?
I have an Apache server running on an AWS EC2 instance. Currently, one virtual host is running successfully on the server, and I want to add a second virtual host / domain, but I can't figure out how ...
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 ...
0
votes
1
answer
88
views
How can I port an Apache RewriteCond and RewriteRule to ngnix?
I have to convert an Apache reverse-proxy configuration that uses RewriteCond and RewriteRule, to Nginx.
How can I convert something like this to nginx configuration?
(this is in the main/only <...
1
vote
0
answers
596
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 ...
0
votes
1
answer
602
views
Redirect Base URL to Application Directory
I have an AWS server. I set up a Laravel project, and it's working fine. The project is under /var/www/MyProject, and when I go to myproject.com/public, I see the application (after entering my apache ...
1
vote
1
answer
2k
views
Why environment variable set by SetEnv in apache httpd.conf cannot be passed to php?
I set an environment variable in httpd.conf:
SetEnv http_proxy "http://localhost:3128"
But I cannot get this variable in php using getenv:
<?php
echo getenv("http_proxy");
...
0
votes
1
answer
4k
views
How to pass through a Nginx reverse proxy to IIS and Apache
Ive been dealing with this scenario for a while and a can not find the error or the config that gets me to this:
I have one domain example.com
and several subdomains (app.example.com, test.example.com ...
4
votes
4
answers
2k
views
How can I see the httpd log for outbound connections?
The access log specified in httpd.conf for a website only shows the information for incoming connections. For outbound connections such as those issued by php file_get_contents function, how can I get ...
0
votes
0
answers
618
views
Create ubuntu user with home folder located in www and restrict ssh access using ChrootDirectory to that folder
I posted this on stackoverflow and was told to post here:
I am running a Ubuntu remote dev server, heavily restricted (due to compliance) environment which i previously had configured correctly for ...
0
votes
1
answer
607
views
How to wake my Ubuntu server on HTTP requests from LAN?
I have an Ubuntu 22.04.1 web server running Apache2 Server hosting 2 sites [Django website & other File hosting Site].
What I'm trying to achieve: Set the server to sleep all the time it is not in ...
0
votes
1
answer
50
views
nginx doesn't properly route to webapp and omitting path
I am currently configuring a nginx reverse proxy. The docker instance of nextcloud is available on Port 8891
server {
listen 8888 ssl http2;
...
location /nextcloud/ {
proxy_pass http://0.0.0....
0
votes
0
answers
289
views
Nginx equivalent for apache mod_rewrite rule
My script is hosted on centos 7 apache server, with below htaccess:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
...
1
vote
0
answers
290
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
263
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
0
answers
93
views
What settings do I use in the default-ssl.conf file on an ubuntu server running an Omeka installation?
I have an installation of Omeka running on an Ubuntu server with Apache. I’ve loaded an SSL certificate and it seems fine, but only the first page of the site will load now. Anything else gives a ‘URL ...
0
votes
1
answer
231
views
Trying to install Wordpress locally by using docker where some folder symlinked to my git directory
Using this image with docker-compose.yml: https://hub.docker.com/_/wordpress
Everything done by the book and it works till I tried to symlinks some folders to my git repository.
This is the part of my ...
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 ...
0
votes
0
answers
265
views
Sites go down multiple times a day for a few minutes
Every morning I wake up to overnight Pingdom alerts that all of the sites on a particular server have gone down and come back up. They are usually down for 3-6 minutes. This will also happen in the ...
0
votes
1
answer
340
views
How to create a Proxy over Apache to Google Cloud and handle 403 failover?
Summary:
I'm trying to proxy images over Apache to Google Cloud.
In case of image does not exist, I want to forward a request to a different route which will return the image and save it on Google ...
0
votes
0
answers
99
views
Certificate marked as "not trusted by CA
I have a rather surprising problem these last days on one of my certificates signed by my root CA (via AD-CS).
I noticed that my browser sends me back a message that I have never seen in place of my ...
2
votes
1
answer
585
views
Wordpress served by nginx under non-root url
I'm trying to move my server from apache to the Nginx starting with a blog. The blog is only a part of the website and should be available under /blog/admin (I'm using WordPress only as a backend).
In ...
0
votes
0
answers
39
views
Apache 2.2, Mac mini, Sierra, Server 5.2
enter image description hereI realise this is a all vintage stuff, but I need to have this server up and running for 6 more months. The mac server interface shows that Apache is up and running, but it ...
0
votes
0
answers
324
views
Apache Reverse Proxy using mod_proxy
0 Introduction
I'm trying to setup a server with a main website hosted on ports 80 and 443 (let's call it example.com) and a section on this website that serves umami analytics hosted on port 3000 (...