Questions tagged [apache-2.4]

Version 2.4 of 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
0answers
11 views

Apache 2.4 and Reverse proxy - not redirecting when using VirtualHost

I'm running Apache 2.4 on AWS Linux as httpd. I've a single domain, and all requests are directed via /conf/httpd.conf using Listen: 80 and DocumentRoot "/var/www/html". My current domain ...
0
votes
0answers
11 views

Apache2.4: mod_php takes over mod_info

I've been managing Apache servers for years, and I've run into a weird problem I cannot understand: I've enable both mod_php and mod_info (as usual), but a request to /server_info is caught by PHP (...
0
votes
0answers
17 views

Website with an embedded .mp4 file takes over a minute to load. Remove the video embed and the site loads instantly. Possibly an apache config issue?

Environment details: Website is WordPress, Server is a cPanel/WHM server running in a Hyper-V virtual machine on hardware we manage internally, hosting about 80 other sites in addition to this one, ...
0
votes
0answers
11 views

Apache recursive rewriting rules

I'm writing a PHP CMS and, for each page, I can have a subpage, and a page number, and a language switch, and a previous version. Then, I can edit a page, or call a special page. Examples : http://...
0
votes
0answers
40 views

Are the hundreds of /usr/sbin/apache2 -k start processes killing my site proxy from port 80 to 3000

I'm new to server administration. Whenever I systemctl restart apache2 the /usr/sbin/apache2 -k start processes fill up immediately in the hundreds. It seems that after this happens my raw ipaddress (...
0
votes
0answers
39 views
+100

PHP Ajax response sending new line in return data from server

I work with an open source package call OpenEMR https://github.com/openemr/openemr/. I am having a problem with the ACL display screen. It displays this error message. ERROR, unable to collect data ...
-1
votes
0answers
16 views

Apache2 multiple websites not working

I have successfully hosted 3 websites (2django based and 1 wordpress) on my vm using apache2. Now I tried to add 4th website (wordpress) But it is bringing me to 3rd website (wordpress) I disabled ...
2
votes
1answer
25 views

How do I change Apache's DocumentRoot?

I'm using Apache 2.4.41 on Ubuntu 20.04. With the following configuration, I can successfully view the default Ubuntu Apache page at /var/www/html/index.html: <VirtualHost *:80> # Server ...
0
votes
0answers
13 views

Intermittent “failed” errors for `apachectl status`

I've got a cron job that runs a perl script that check the status of apache: my $status = `sudo apachectl status`; The cron job is run every minute without a problem. Sooner or later, however, I'll ...
-1
votes
0answers
16 views

Why apache2 server shows a portal icon? [closed]

Why does apache2 server show a portal icon like this: portal.png
0
votes
0answers
16 views

How to switch from PHP-FPM to MOD_PHP

I have a server where I recently setup to use PHP-FPM (php7.4-fpm). I was using mod-php with apache2, but I'm having some problems with the switch to php-fpm. I can't find any documentation online on ...
0
votes
2answers
21 views

nginx echo while processing not working but the same server with apache can echo while processing

PHP 8 I'm using the newest NGINX feature un WHM 96.... I can flip switch on or off to have nginx cache everything and it's working well and very fast. **** BUT : when I have a script that does lots of ...
0
votes
1answer
20 views

Proxy to a load balancer automatically add additional path

I'm running httpd 2.4.6 on Redhat 7.9. I'm trying to use ProxyPass work with Balancer. Here is my configuration. Balancer <Proxy balancer://mycluster> BalancerMember http://10.10.12.103:8080 ...
1
vote
1answer
17 views

Is there a way to configure Apache and mod_userdir to not use ~

I am using Apache 2.4 on RHEL8 to give users there own web pages. Right now the URL looks like example.com/~username. Is there a way to setup Apache and mod_userdir so that the ~ is not used? I'd like ...
0
votes
0answers
9 views

Apache custom error pages for 400 and 408

I have created a number of custom error pages and I have this in global configuration so it will apply to all vhosts: Alias /common /var/www/common ErrorDocument 400 /common/400.shtml ErrorDocument ...
0
votes
2answers
46 views

Apache Configuration for A Container+Subdomain's SSL

In January I configured and installed SSL certificates for two subdomains. After that, I then connected two docker containers to those subdomains. That configuration's SSL was "working" ...
0
votes
0answers
14 views

Apache log analysis tool for mod_logio output

I've set up Apache log files to collect both the request and answer size with mod_logio and its combinedio log file. I hope it will help me get a better understanding of the POST and PUT requests ...
-1
votes
0answers
31 views

Apache Event MPM with PHP-FPM and open_basedir

For the longest time I've been using Apache Prefork with mod_php. I like it, as it's easy to configure, understand and troubleshoot. However it's much more inefficient than Worker or Event (or so I'm ...
0
votes
0answers
18 views

APACHE net::ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK)

I have a reverse proxy with apache, all works fine except for 1 page. the error is >> GET https://example.com/boardlist net::ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK) The images in this page don'...
0
votes
0answers
14 views

Browser not rendering css and JS and images

0 I'm using: Ubuntu 16.04. Apache 2.4 php73-php-fpm on my dev server. I managed to get it so I can specify a handler and it will put that vhost on the correct PHP version, however CSS and JS seem to ...
0
votes
0answers
13 views

Cannot enable SSL with Let's Encrypt certs

I'm running a site example.com using Apache2.4 on Ubuntu 20.04. I've used certbot (1.14.0) to install Let's Encrypt certs successfully. However, I cannot enable SSL for my site. Accessing http://www....
0
votes
1answer
19 views

How to rewrite urls using ProxyHTMLURLMap?

My urls are in this form /sites/site-name/Subpath-2/page-name.page /sites/site-name/Subpath-3/Subpath-4/index.page And this should be rewritten as /sitename/subpath/pagename (the extention .page is ...
0
votes
1answer
25 views

Apache: phpmyadmin on sub-domain “503 Service Unavailable”: php7.4-fpm

I'm having a tough time trying to fix a major problem getting phpmyadmin working again (it used to work on ubuntu 16.04). I upgraded Ubuntu 16.04 to 20.04 yesterday and got the following versions of ...
3
votes
3answers
362 views

Apache: Return static string for location

For a .well-known path, I want to return a static JSON file/string. With nginx, this seems to be possible without creating that file by specifying the content in the configuration file: location /....
0
votes
1answer
22 views

Apache2 enable catch all virtual host

I have Virtual Hosts enabled on my Apache2 server and every domain has its /etc/httpd/sites-available/domainX.conf and /etc/httpd/sites-enabled/domainX.conf symlink files like this: <VirtualHost *:...
0
votes
0answers
10 views

Limit Apache to a single interface

While I know I can Limit Apache to a single IP as shown here, is there a way to bind this limit to the interface instead of the IP just in case the IP will change (I know that I should use static IP's ...
1
vote
0answers
13 views

Apache HTTP proxy work for some destination ip and receive 502 Bad Request from other destinations

I've an HTTP proxy like this: Listen 8240 <VirtualHost *:8240> ProxyRequests On <Proxy "*"> SetEnv force-proxy-request-1.0 1 SetEnv proxy-nokeepalive 1 </Proxy> </...
1
vote
0answers
29 views

PHP on VirtualHost not working but works on default site

I have a apache Server version: Apache/2.4.46 on Amazon Linux 2. PHP is working well on port 443. I added another virtualhost on port 81. PHP does not work on this port. Config: Listen 80 <...
0
votes
1answer
17 views

Apache 410 a URL Without Affecting Sub Paths

I'm trying to kill a URL, so in my .htaccess file, I put: Redirect 410 /my-path It works. If I try to visit: https://www.example.com/my-path I get: Gone The requested resource is no longer ...
-1
votes
1answer
19 views

Modify Apache rewrite rule for Nginx

How to rewrite this Apache rewrite rule for Nginx? RewriteCond %{REQUEST_URI} ^/api RewriteRule (.*) index.php [L] I tried this but it doesn't work, I'm getting HTTP 404 in /var/log/nginx/access....
-1
votes
1answer
39 views

Apache WebSockets “400 proxy error”

We're trying to present the WebSocket-enabled interface from a remote device on our website. I've configured the WebSocket tunnel in Apache, but I'm getting a "400 Proxy Error" in Firefox (...
0
votes
1answer
22 views

Excluding a subdomain from a rewrite

I think this is pretty basic, but danged if I can get it to work! I have a domain example.com, subdomain cloud.example.com. I want to redirect everything EXCEPT cloud.example.com to an external site. ...
-1
votes
0answers
14 views

Apache 2.4.6 server status

I have started using Apache 2.4.6 as a front for Tomcat and noticed that there are a lot of connections showing as "_" Waiting for Connection as identified by the Scoreboard key in the /...
0
votes
0answers
19 views

Apache 2.4 mod_ldap “Require ldap-group” not working

I have a RHEL 7 server running Apache 2.4 with multiple vhosts. I am having an issue with basic auth using mod_ldap to authenticate against Active Directory. My vhost config looks like this <...
-1
votes
0answers
10 views

Wordpress site is not showing up on my apache local server

I just got a new work computer and I am trying to get a WordPress site we are working on running on my localhost with apache. I have everything set up exactly the same as my old work computer but for ...
1
vote
0answers
36 views

How to proxy a subdomain to a port in apache

I want to proxy git.example.com to example.com:3000 for gitea. I also want to enable https on the subdomain. Here is my configuration: <VirtualHost *:443> ServerAdmin webmaster@example.com ...
-1
votes
0answers
16 views

How to configure a local proxy to send custom header request?

i'm doing some tests on a webpage using jmeter and selenium. What i need to do is to send some custom header request and i would like to do it by using a proxy server in local. For several reasons i ...
-1
votes
0answers
24 views

Debian 10 How to get the correct permissions on a mounted drive

I'm running a VPN Debian 10, ISPCONFIG with a mounted drive. For some reason I can't get read or write permissions working. This is the setup: #lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 ...
0
votes
0answers
22 views

why apache in my centos7 container does not work?

Apache does not work after moving centos7 container to the new Kali Linux environment. Apache in centos7 container that worked fine in my old Kali Linux(2018) does not work at my new Kali Linux (2021....
-1
votes
1answer
27 views

Apache Reverse Proxy - HTTP requests with a Cookie

We have an Apache Reverse Proxy which works fine (configuration below). Now we have the need to forward a few requests to another server (server3.domain.com) and check that a cookie named "...
0
votes
0answers
39 views

Apache and Django configuration

I implemented a Django project with MySQL backend. It runs well using python manage.py runserver. Apache seems installed well with no errors. I can access the default apache server. However, I couldn'...
1
vote
1answer
24 views

Redirect the document root and a specific page only to another domain

Might sound confusing, but what I want to achieve is this: If the user visits: www.mydomain.com (with or without www.) transfer them to: www.myotherdomain.com/welcome-old-users At the same time, I ...
0
votes
0answers
8 views

Possible to get apache2 environment variable from command line?

I want to check the value of a apache environment variable, APACHE_LYNX. It is not accessible with a simple echo $APACHE_LYNX command. Is there a way to get access to these environment variables from ...
1
vote
0answers
28 views

Debian 10 PHP not parsing in apache (fresh install)

I know this is an ancient problem with lots of answers but none of the existing solutions seem to be working. This is a fresh install of Debian 10, apache2 has been installed and php (7.3). Apache is ...
0
votes
1answer
35 views

How should I authorize calls to an API behind an Apache reverse proxy behind CAS authentication?

Apologies if this is incoherent. I'm very new. I have an Apache server protected by CAS in a Docker container. I'm using mod_auth_cas to do this. I have an API running on a different container which ...
1
vote
0answers
13 views

How to enable NPN in Apache 2.4.46?

ALPN is enabled by default, or probably gets enabled when you enable mod_http2. But, from a testssl.sh test, I saw that NPN was disabled. How can I enable it in Apache 2.4.46? https://github.com/...
1
vote
0answers
22 views

Apache reverse proxy configuration (/context to /)

I'm having this issue trying to proxy a site to another context on a different domain What I currently have ? I have a fully functional web site running on the following URL: https://helloworld....
1
vote
1answer
13 views

Issues with Apache HTTPD 2.4 LocationMatch containint?

I am having trouble using a LocationMatch for a specific site that contains a ? My current LocationMatch is <LocationMatch "^/SOME/FOLDER/STRUCTURE/TEST/?cmd=logout"> The actual URL ...
0
votes
1answer
71 views

Forwarding Apache SSL-Port to Web-App on localhost

I'm struggeling for days now to route a subdomain with SSL to a local running vue app, specifically the directus admin ui. I've done this before, like with the tool monit, and it worked like a charm: &...
1
vote
1answer
44 views

DocumentRoot and Directory - necessary outside of VirtualHosts?

The default config had the following in the root: DocumentRoot "${SRVROOT}/htdocs" <Directory "${SRVROOT}/htdocs"> Require all granted </Directory> Is it correctly ...

1
2 3 4 5
106