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
0answers
24 views

Preventing redirects for file serving in apache

I am working with a specific proprietary (and no longer properly supporter) http client, and it has an issue of giving up on trying to download files if an http server throws a 301. I am using ...
0
votes
0answers
20 views

Fail2ban regex for multiple IPs which includes LB IPs into it

Struggling with the correct regex for the below log which I am not able to parse to get it working with fail to ban. I need XX.XXX.XX.XX to be checked via fail2ban. Please assist which me the correct ...
0
votes
1answer
76 views

PHP website not working as expected in NGINX but working in Apache

Hi I just created a link shortening app. But when I try to redirect a shorten link to the full URL which is shared on Facebook it is not working as expected. for example : https://bowa.me/c8443 this ...
0
votes
2answers
38 views

how to do 301 redirects from old site to new

I have a website which is on Wordpress www.old.example.com and on its own IP/Server 10.1.1.1 It has various pages which are ranked on google which I'd like to preserve. I have a new website www.new....
1
vote
1answer
27 views

Uniform Server cron not executing php script

I'm running Uniform Server Zero XIV and am trying to use the cron to run a php script every 15 minutes. When ran manually, the script does what it is supposed to, which is updating values in a ...
0
votes
0answers
16 views

Setting up a Django site on Lightsail; http works; https gives a generic Bitnami page; what do my Apache logs mean?

I've just cloned a Django project into a new Lightsail Django instance. Everything works fine if I do python manage.py runserver 0.0.0.0:8000. I'm trying to configure Apache. After some debugging, I'...
0
votes
0answers
15 views

Apache Locationmatch setenvif

I know what I have is not correct and I need guidance. I am trying to confirm our Spanish URI path(es) which I think is correct and then do validation on the language header is(es) for Spanish. If it ...
0
votes
0answers
86 views

Misdirected Request HTTP 421 Error when using Nginx but not Apache as reverse proxy

For a specific use-case, I want to put a reverse proxy (RP) in the cloud in front of an application already packaged with another RP listening to HTTPS only. I don't have any access to the ...
1
vote
1answer
26 views

What happens when a post exceeds the limit of post_max_size?

If I send a payload of, for example, 10MB to an apache server, the limit being 2MB. How does the server know that the payload is 10MB? Doesn't he need to receive the file anyway, and check its size? ...
0
votes
1answer
34 views

Redirect www.*.example.com to *.example.com on Apache

I currently have a catch-all for *.example.com in Apache. Sometimes people type in www.*.example.com, which fails on the wildcard SSL certificate. Is there a way to redirect www.*.example.com to *....
0
votes
0answers
67 views

invalid response from upstream server

I am setting up SSL connection between Webserver + Proxy Server and another Server(Linux). (Apache Webserver comes with Tomcat) There is a transparent proxy in use with port forwarding (Iptables) SSL ...
1
vote
1answer
71 views

Https site version shows the Apache start page, but http works well

Hi I am having a little problem after using permalinks wordpress, the https version of the site shows the Apache start page. On the http version, the site and all permalinks work fine. I also want to ...
3
votes
1answer
100 views

Apache: Don't log errors for certain non-existing files (regular file or symbolic link)

I want to prevent Apache from logging "File does not exist" errors for certain irrelevant non-existing files that are often requested, such as "apple-touch-icon-120x120.png". These ...
-1
votes
1answer
39 views

What's does the user daemon mean?

I was just checking my VPS. I am using Apache server and I found user daemon is taking 15-30% CPU use User Daemon
0
votes
1answer
51 views

Do I need 2 virtual hosts for both www.example.com and just example.com?

I have 2 questions - does it matter if the ServerName in Apache's conf file starts with www? Also if I have the following virtual host: <VirtualHost *:80> ServerName www.example.com ...
1
vote
2answers
30 views

fail2ban weird ban behaviour bans not IP properly

I'm try to ban all suspect 403 errors via fail2ban. So I created this jail # block 403 errors [apache-403] enabled = true filter = apache-403 port = http,https logpath = /var/log/apache2/...
0
votes
1answer
281 views

How to add a custom OpenSSL engine with OpenSSL and use from apache server?

I have a custom-built OpenSSL engine. I'm trying to make changes to openssl.cnf to load this engine automatically. My ultimate goal is to use this engine for Apache mod-ssl. Apache mod_ssl to use ...
0
votes
1answer
25 views

Restrict Direct IP Access To Website Without Affecting Other Sites

I have several sites hosted on my server. If you directly type in the IP address to the server it will take you to one of the sites, I wanted to restrict this behaviour so I used the following fix: &...
1
vote
0answers
64 views

Reverse DNS and Apache virtual host

In short: Apache's VirtualHost doesn't work as intended when the reverse DNS is enabled. I'm managing a web service on a single CentOS server. It has a single IP address and multiple subdomains, and ...
0
votes
1answer
54 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 ...
0
votes
1answer
57 views

Apache HTTPS redirect to Tomcat web folder

I have configured my server to use httpd as proxy and Tomcat for deploying and running application. I use Apache httpd as proxy to redirect all request to port 80 and to the directory of tomcat where ...
1
vote
2answers
62 views

Automatically create a new subdomain on server

I have a Github project with three branches, master, staging and production. When the staging code is merged with the production branch, a GitHub action runs and deploys my PHP website on my example....
1
vote
1answer
64 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
0answers
26 views

LetsEncrypt Certificate is updated, but still showing old date on the website (restarted Apache)

Running Apache on EC2 ubuntu server, using letsencrypt certificate, which I see if I run sudo certbot certificates. I manually renewed it and confirmed the dates on the server, but the certificate on ...
0
votes
0answers
16 views

Setup Blooger in a Subdirectory

I would like setup Blogger to be on a subfolder in a Ruby on rails app to : pulpoludo.com/blog RUBY ON RAILS To do this I use rack-reverse-proxy in my rails app : In config/application.rb : config....
1
vote
1answer
34 views

Change default domain port on CentOS with apache and Docker

Sorry for the messy title but not very experienced at those stuff. Here is my case: I have apache2 server on CentOS. I installed docker as well on it. Currently my domains are opening as: some-domain....
0
votes
1answer
48 views

Apache Redirect with OR Operator

How can I use the Apache OR operator to redirect several paths to one URL? E.g.: RewriteEngine on RedirectMatch 301 /foo || /foo/bar || /das.html https://example.com/ext/ddy/$1 Thanks for any help.
0
votes
0answers
78 views

Http to https is not working on Apache Docker Container

http >>> working https >>> working http - https >>> working but gives 500 error as home page. Tried redirect and rewrite rules. both are giving me 500 error. logs aren't ...
0
votes
1answer
68 views

is this possible to park a subdomain on the main domain?

is this possible to park a subdomain on the main domain without enabling wildcard subdomains? i want to make a mobile version for my site on a new subdomain but i want using the same code on my main ...
0
votes
1answer
797 views

Webserver being attacked

my webserver is constantly under attack by attempted use of PHP vulnerabilities and through the use of GET requests. How concerned should I be that I have been compromised and how could I check as ...
0
votes
2answers
69 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:...
1
vote
1answer
37 views

Why is my .htaccess and .htpasswd not working?

I have .htaccess and .htpasswd files in the directory that has png files that I want to protect. .htaccess AuthType Basic AuthName "Co to za nielegalne grzebanie w plikach, juz dzwonie na ...
0
votes
1answer
75 views

Do you need Nginx / Apache for deploying an API?

To my understanding, Nginx/Apache are used to a) serve static content like HTML pages and b) balance requests between servers. I am programming an API in Go. It doesn't need to serve static content ...
1
vote
1answer
355 views

Create subdomains under a single IP/domain in an Nginx Reverse Proxy?

I'd like to be able to create a subdomain in Nginx Reverse proxy. As it stands right now, I have a properly configured and usable reverse proxy that resolves properly. The problem arises when I try to ...
0
votes
1answer
59 views

How to use LiteSpeed server with Apache?

On my search i've got only info about replacement of Apache with LiteSpeed. My question is rather: how to use them together? I think about a similar setup, where Apache is used together with Nginx, ...
1
vote
1answer
31 views

Strange errors on apache error log

Frequently I am receiving core errors messages like this one below on my apache2 server, I really don't know why it's happenning, is this a bot, maybe? Are there an way to discover this issue? [Mon ...
3
votes
1answer
66 views

Ubuntu Apache Subdomain not Displaying

Using Ubuntu 18.04 I have my main website www.example.com, all the files are hosted in /var/www/html/ and it works as expected. I would now like to make a new website in a subdomain www.blog.example....
0
votes
1answer
68 views

Cloudflare + Apache + CSP Headers: Old CSP headers are returned

We are using apache2 on our server, which is behind cloudflare (free plan). I am currently implementing googles recaptcha, which requires me to make changes to our CSP headers. What I did: Change CSP ...
0
votes
0answers
21 views

Apache reverse proxy with tomcat apps and context path override

I currently have an Apache server acting as reverse proxy for locally running Tomcat instances with applications. However, I need to override a specific context path to go to a remote site. I can't ...
3
votes
1answer
438 views

What controls the cleanup of the /tmp/systemd-private* directories?

It doesn't seem like the systemd-tmpfiles service cleans up these folders because I have files in /tmp/systemd-private-*-httpd.service-*/tmp/ that are 27ish days old (the last time httpd was restarted)...
1
vote
0answers
36 views

Why is load balancing not working in this server?

I'm trying to set up a load balancing using Apache and reverse proxy pattern. But I'm facing some issues. When trying the configuration, an HTTP 403 error is being responded. This is the configuration ...
-1
votes
1answer
61 views

without http and https, domain is not reachable

I have this amazon lightsail instance with static public IP pointed to my godaddy domain, everything is working except if you don't include http or https, domain is not reachable. A godaddy support ...
0
votes
1answer
29 views

Image displaying in a browser but not in a HTML compiler

My image is displaying correctly in a browser, but when i use the image link inside an HTML compiler, its showing a broken image symbol. Image link : http://winterminer.com/glogo.png <img src="...
1
vote
0answers
357 views

Implementing Content-Security-Policy on Apache 2.2

On Apache 2.2 I'm about to set up Content-Security-Policy to allow browsers coming from one particular domain to load data into iframes from a certain virtual host. $ httpd -S VirtualHost ...
0
votes
0answers
61 views

How to prevent simple ddos attack done apache benchmark (ab) command?

What would be the simplest way to prevent flooding with ab command ? ab -n 1000 -c 200 https://www.my-site.com I am totally conscious that this is just a partial prevention and there are thousands of ...
0
votes
0answers
107 views

Apache multiple directories for multiple paths

I need to setup my virtual host to handle multiple paths of the same domain. So any url with /abc goes to one directory example.com/abc goes to <Directory /path/site/abc></Directory> and ...
0
votes
0answers
31 views

ssl certificate on Centos 7

I have installed SSL certificate for many domains in centos 7. All are working fine on https. But if SSL not installed for any new domain which is included in virtual host in httpd.conf file then ...
1
vote
0answers
78 views

After windows server 2019 update- my domain is not reachable any more

well as I do not know where is the problem, I will explain every thing. And as I do not have any experience with server managing, I will show some screenshots and please help and if you have an answer ...
0
votes
0answers
39 views

set apache to let browser open rst file with utf-8

Os version: uname -a Linux mydebian 4.19.0-13-amd64 #1 SMP Debian 4.19.160-2 (2020-11-28) x86_64 GNU/Linux Apache version: apachectl -v Server version: Apache/2.4.38 (Debian) Server built: 2020-08-...
0
votes
1answer
52 views

Apache 2.2.15 possible security risk?

I have an old server that is running a webshop in production. It is running CentOS / Apache 2.2.15 and PHP 5.3 (Build 22 Mar 2017). Are there any security risks associated with this setup? I have ...

1
2 3 4 5
343