Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [apache2]

The Apache HTTPd 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
4 views

Session disconnect when downloading files from server behind Apache Reverse Proxy

I'm using Apache2 as Reverse Proxy on the front of some servers, and the connections are ok: through Apache RP I can open the web page, I can put my user and password and access, I can navigate, but ...
user avatar
  • 1
0 votes
0 answers
4 views

Apache redirects - issue with redirects in query string

I have lots of apache permanent redirects for site that look like this: Redirect 301 /old-path https://new.com/lang/new-path/?utm_source=old.lang&utm_medium=301 When the path doesn't match ...
user avatar
  • 1
-1 votes
1 answer
19 views

use external webserver in local Active Directory [closed]

i have a local active directory domain (for example : sample.net ) and i have a website hosted with same domain name in a shared server . i can't access my website in local network. i have added a www ...
user avatar
  • 1
0 votes
0 answers
17 views

Variable expansion in Apache2 log file request based

I'd like to have custom log files for every user accessing a virtual host. The user name is present in environment-variable "SSL_CLIENT_S_DN_CN" (coming from client certificate ...
user avatar
0 votes
0 answers
21 views

My Apache2 server got pwned, need some help uncovering impact [duplicate]

So I'm pretty sure that my home Apache2 server got hacked. This is in a VM running on my server. I was using this server as a https proxy/reverse-proxy for my other applications I have running at home....
user avatar
0 votes
0 answers
9 views

connecting domain to a server and port forwarding to show website hosted on another server

I have a website on server A with IP address of 1.1.1.1 and the domain is example.com. I also have another server B which IP address is 2.2.2.2. I want to connect the domain example.net to server B ...
user avatar
0 votes
1 answer
15 views

How to redirect port 8080 with apache?

I'm running a tomcat webserver on port 8080 behind a apache2, and want to redirect some ports. For testing, I'm trying to redirect to an invalid location, as follows: <VirtualHost *:80> ...
user avatar
0 votes
0 answers
12 views

Handler for application/x-httpd-ea-php73 returned invalid result code 70007

I have a dedicated server with hostgator and they had outages a few days ago and since then iv been seeing this error show up in my logs Handler for application/x-httpd-ea-php73 returned invalid ...
user avatar
  • 101
-2 votes
0 answers
13 views

mod_fcgid: stderr: Connection refused

I am using Virtualmin. I am getting lots of these errors. My Apache Error Log gets quite large in a short amount of time (230GB in few days). Please help me fix these errors. [Wed May 18 03:11:31....
user avatar
  • 121
0 votes
0 answers
10 views

Wildcard in apache virtualhost sitename

I want to use wildcards in Apache. What I actually want to do is: ServerName wiki-*.thost3.de, and the * must be accessible by further configurations. Provide the contents at /var/www/wiki/*, where * ...
user avatar
  • 201
0 votes
0 answers
24 views

.htaccess deny access to subdirectories from a certain domain

I have a server with a security flaw: There's the main site https://example.com (on server /var/www folder) Then there's an additional app (on server /var/www/app/public) that is configured to be on ...
user avatar
0 votes
1 answer
33 views

reaching apache public reverse proxy virtualhost url from localhost behind a NAT using iptables

I have an issue with a guest using virsh behind a server running with iptables firewall. This guest hosts websites, one is mattermost with reverse proxy. Everything is working well. I then installed ...
user avatar
  • 109
0 votes
0 answers
41 views

Apache proxy returns 502 with AH00898: Error reading from remote server

everyone. I'm doing a practice task to create redirect for one location using load balancer, but I cant figure out why this isnt works (getting 502). I've tried setting several env-vars and settings ...
user avatar
0 votes
1 answer
18 views

Request exceeded the limit of 10internal redirects on cPanel Server

I just created a subdomain called virtual from cPanel and its return 500 error. When I check the error_log I see below error: AH00124: Request exceeded the limit of 10internal redirects due to ...
user avatar
0 votes
0 answers
18 views

How to permanently change niceness of apache2 process on a Debian server?

I have Debian 11.2 with Apache2. I'd like to change niceness of all of my apache2 processes, or at least mod_wsgi processes, to +5. How can I do it? Adding Nice=5 to /usr/lib/systemd/system/apache2....
user avatar
  • 101
0 votes
0 answers
16 views

How do I create a Virtual Name Host on Apache2 for a service running on localhost:8080 [duplicate]

i have a server with apache that runs a mailing service, a wordpress multisite I have followed guides online to make the above work now I have a service from Vaadin (java stuff) running on localhost:...
user avatar
0 votes
1 answer
12 views

Why does Apache2 not respect Last-Modified headers?

On a I have: ProxyPass /public ! in order to have content under this path served as static files directly from the file system. But it seems that the If-Modified-Since and If-None-Match ...
user avatar
0 votes
0 answers
13 views

nginx - wrong server port at proxy or port in WP url

I migrate nginx from centos to Ubuntu, this configuration works perfectly on old nginx in centos: proxy_set_header Host $host:$server_port; $_SERVER['REMOTE_ADDR'] - REALIP $_SERVER['SERVER_PORT'] - ...
user avatar
-2 votes
1 answer
36 views

Server works, domain does not with VPS [closed]

I have to deal with clear VPS with Ubuntu 16.04; Apache (and domain). The server itself works fine via ip-address. I have successfully installed php via ssh, so now I even have some Linux experience. ...
user avatar
-2 votes
0 answers
41 views

Migration from php5 to php7 on Red Hat Linux offline

I'm going to migrate a web application created since 2005 that use PHP 5.3 to PHP 7.2.11 , the server does not have internet access, so I should install all packages and dependencies manually. I have ...
user avatar
2 votes
2 answers
105 views

Redirect to other server and domain if file not found

I have migrated from Apache to Nginx so I want to set all rules in Nginx. Goal: Redirect a URL to another domain with the same filename if that file is not found on the requested server. Example If a ...
user avatar
0 votes
1 answer
30 views

Apache VirtualHosts not working/redirecting? (Reverse proxy)

I am trying to set up Apache as a reverse proxy on a new Ubuntu 22.04 virtual machine. We have an existing Apache reverse proxy on Ubuntu 18.04 where everything is working as intended. This new ...
user avatar
1 vote
1 answer
61 views

What is this possible Apache exploit, and am I affected?

I had this warning in my daily logwatch digest this morning: A total of 1 possible successful probes were detected (the following URLs contain strings that match one or more of a listing of strings ...
user avatar
  • 301
1 vote
2 answers
47 views

.htaccess redirect sub-folders to the correspondent index.php

How can I redirect each request for a subfolder to the index.php in the same folder myserver.com/folder/subfolder1/test redirected to folder/subfolder1/index.php myserver.com/folder/subfolder2/...
user avatar
0 votes
1 answer
22 views

Redirect all pages to non www and one page to www

I want to redirect all my internal pages (eg: example.com/about) to their non-www version but I want my homepage (https://example.com) to redirect to its www version (https://www.example.com). I ...
user avatar
0 votes
0 answers
29 views

masking URL after redirection [duplicate]

I re-post my question in the event that I will be more clear as to what I would like to do. I have a subdomain under a dns name, lets say it is mysub.domain . This subdomain is in a remote provider ...
user avatar
0 votes
0 answers
48 views

Apache2 behind NGINX: MOD_REWRITE only works without HTTPS

For days I can't get my head around the following problem: We have an application (Faveo) which has two requirements for going through the setup wizard: HTTPS & MOD_REWRITE. Faveo is running on ...
user avatar
0 votes
1 answer
34 views

Why server shows default Apache page instead of my app?

I setup Php+Mysql app on my Ec2 instance but when I reach domain,Apache default page is shown. Bookstack is my app. tail log 172.68.50.230 - - [21/Apr/2022:05:26:52 +0000] "GET / HTTP/1.1" ...
user avatar
0 votes
0 answers
18 views

Why is my Php app not found on Apache2 server?

I added A record om my company's Cloudflare account. In browser I got Not Found The requested URL was not found on this server. Apache/2.4.41 (Ubuntu) Server at ***.***.dev Port 443 Log files 172.68....
user avatar
0 votes
1 answer
20 views

How to redirect to https for multiple subdomains configured as ServerAlias?

I have installed SSL via certbot and all my sites can be accessed via SSL. However, when http is used in the browser url, only the 1st one from below gets redirected to https. The others don't get ...
user avatar
  • 138
0 votes
1 answer
22 views

MacOS Monterey (12.3) and Apache 2.53 https does not connect

On macOS Monterey (12.3.1) and Apache 2.53 (homebrew) I always receive (on Firefox) "Secure Connection Failed" Error code: SSL_ERROR_RX_RECORD_TOO_LONG Other browsers will not connect as ...
user avatar
  • 101
0 votes
0 answers
11 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
1 vote
1 answer
20 views

Find the script an Apache process is running

I have Apache 2.4 configured as mpm_prefork on an Ubuntu server. It happens that via htop I have seen that there are processes that use a lot of CPU. How do I find out exactly what url/php script this ...
user avatar
  • 217
0 votes
0 answers
104 views

AWS CloudFront error 502 connecting to EC2 host

Community I have a web page served by Apache running on a EC2 AWS instance. I am using AWS Certificate Manager with CloudFront to manage SSL/TLS in order to access the web page using HTTPS My ...
user avatar
0 votes
1 answer
29 views

How to set SELINUX HTTPD User Content RW?

I'm quite new to SELINUX, I've simple question, I know there are httpd_sys_rw_content_t for /var/www/html, and read only httpd_user_content_t, but if I want to allow some folder to be RW for that ...
user avatar
0 votes
0 answers
140 views

php8.0-fpm service not loading

I recently upgraded from PHP 7.4 to PHP 8.0. It seemed to work just fine until I rebooted. It looks like my PHP service isn't loading. user@server:~$ sudo systemctl status php8.0-fpm ● php8.0-fpm....
user avatar
1 vote
0 answers
14 views

ModSecurity: Block all IPs except for a list of defined IPs

I have an apache server with ModSecurity. I need to block all IPs except for a few ones. The list of IPs is like this: 194.83.128.0/21 191.143.32.0/19 145.126.72.0/21 101.28.248.0/22 40.64.64.0/22 180....
user avatar
  • 111
0 votes
0 answers
11 views

Protect many subdirectories with basic auth in apache2

I have dozens of subdirectories I want users to authenticate But the homepage and one or two subdirectories should be public Is there a nice way to accomplish this without having to write dozens of ...
user avatar
0 votes
0 answers
14 views

Mod_evasive casuing trouble

After i changed one of my database tables into InoDB from myisam i started to get "client denied by server configuration:" in my error log. After finding out mod_evasive was the problem i ...
user avatar
0 votes
0 answers
11 views

OmekaS, php, can't write their error log file, seemingly with correct permissions

I am currently installing and configuring an instance of OmekaS, a CMS for libraries (in short). I am encountering an error when trying to write to log files. They should be in /var/www/CMS/log/...
user avatar
  • 101
0 votes
0 answers
12 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
23 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
1 answer
65 views

upgraded to Ubuntu 20, reconfiguring apache2, utterly clueless

I upgraded to Ubuntu 20 on my Google Compute vm. Now apache2 isn't serving stuff up when i hit my server (by external ip) via lynx. apache2 DOES serve up the default page when i do lynx localhost on ...
user avatar
0 votes
0 answers
28 views

AWS EC2 Next JS server stop responding after some time

I am running NextJS server on AWS EC2 instances. I use pm2 to manage my applications. The setup works pretty fine but the problem is after a few days the server stops responding with a 522 status code....
user avatar
0 votes
0 answers
33 views

Authenticate single domain with multiple open id connect clients in Apache webserver

I want to be able to use different OIDC clients for authentication in a single domain hosted by a webserver. This means I want to serve mydomain.example.com and have multiple OIDC clients that are ...
user avatar
  • 103
0 votes
1 answer
32 views

Website on Ubuntu 20.04 will not show to public

I'm facing a strange issue, at least to me, that I can't crack. My domain is fully propagated according to whatsmydns.net: whatsmydns.net report Yet dig won't give me an ip: ; <<>> DiG 9....
user avatar
1 vote
0 answers
24 views

How to find installation of apache [closed]

I have a server running Ubuntu 20.04.3 LTS (Focal Fossa). It is at IP address 192.168.1.12 When I use a web browser to access 192.168.1.12, a NextCloud login appears. This is all well and good ...
user avatar
  • 157
0 votes
0 answers
47 views

apache proxy forward to a dynamic url set in the http header

I have an app server, which uses an apache server as a forward proxy to access the Internet. The forward proxy config on the apache server looks like: <VirtualHost 10.10.10.1:8080> ...
user avatar
0 votes
0 answers
17 views

Apache2 change default page [duplicate]

I've got a question regarding Apache2 web servers. I want to have a documentation server which needs to be available by domain. Let's say my domain is mydomain.com, and I have a server with Apache2 ...
user avatar
  • 13
0 votes
1 answer
29 views

I can't edit the url to remove the name of the app

I am deploying an angular 13 application in a tomcat 9 environment. This is the domain I am using: http://streamsspain.com/ And this is the result: http://streamsspain.com/streamsspain_web/ The ...
user avatar

1
2 3 4 5
32