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
6 views

I installed apache24 and php on Windows 10. When I have a php code error, I only get a “http error 500” - Not a line error in php. How do I fix it? [closed]

I installed apache24 and php on Windows 10. When I have a php code error, I only get a "http error 500" - Not a line error in php. How do I fix it?
0
votes
1answer
39 views

Relationship of ServerName, ServerAlias, host.file and how to define them in httpd-vhosts.conf

I wonder what is the relationship of ServerName & ServerAlias with host.file. As I know ServerName sets the hostname and port that the server uses to identify itself and ServerAlias is the ...
0
votes
0answers
11 views

lsapi:error - content-length(58821): user_get_body(tmpstackbuf, 16384): read from client failed

I have been trying to figure out this error for months now. I recently moved to the mod_lsapi (litespeed) php handler and with that the information shown in the error log gives me a little more ...
0
votes
1answer
33 views

Translate from nginx to apache

Nginx: server { listen 2083 ssl; location / { rewrite ^(.*)$ $1?ip=$remote_addr break; proxy_pass http://127.0.0.1:8080/; proxy_redirect off; proxy_set_header Host ...
0
votes
1answer
17 views

php 7.4 mysqli pointing to wrong path

I recently updated to php 7.4 from php 7.3 on Debian and it seems apache is pointing mysqli to older path. How do I figure out from where it's causing issue? Error - [Mon Apr 06 07:22:13.384517 ...
0
votes
0answers
70 views

apache redirector to redirect custom url to aws internal dns name

I am using reverse proxy redirecting to internal DNS name of load balancer. As the internal DNS name of Load balancer is too long, I am getting an error ProxyPass worker hostname (internal-xxxxxx-...
0
votes
0answers
10 views

Apache production Flask where does *.wsgi file go in relation to development Flask app?

Context I'm working on a Flask 'hello world' using the ApacheLounge version of Apache2.4 + mod_wsgi on Windows together with Miniconda Python 3.7. I found this tutorial which describes setting up ...
0
votes
0answers
43 views

How to configure redirect of HTTP to HTTPS and keep end-to-end SSL via Apache Proxy

I'm currently testing the following scenario in our lab environment to make our production web sites more available. I want to be able to update/reboot a single server without taking down any of our ...
0
votes
0answers
8 views

Apache/2.4.41 (Ubuntu 18) - proxy_wstunnel_module, no protocol handler was valid for the URL /gps/api/socket (scheme 'ws')

Im trying to configure a proxy on my ubuntu 18 server, using apache 2.4.41 and proxy_wstunnel_module. The apache log returns a message: [Sat Apr 04 14:41:02.591188 2020] [proxy:warn] [pid 10273] [...
0
votes
3answers
87 views

Website redirection intermittently work in Firefox but not work at all in IE

After few try an error in website redirection, I manage to perform website redirection but it intermittently works in Firefox but not work at all in IE. I manage to clear all cache and retry in ...
0
votes
1answer
41 views

Why does my Apache rewrite rule to redirect http to https not work?

I'm trying to have a common rewrite rule so that all http traffic gets rerouted to https. The following is sitting loose in the configuration RewriteEngine On RewriteCond %{HTTPS} off ...
0
votes
0answers
13 views

Unable to use python multiprocessing on Apache2.4 Windows (Terminated process) [closed]

I am using flask (with Python2.7.8) application hosted on Apache24 (v2.4.16 Win32) on Windows. I have used python multiprocessing library and Using Process to submit a process. A sample code is given ...
0
votes
0answers
21 views

Parent Server MPM Generation: 0, does it mean anything? [closed]

The below are my values from the apachectl status. Parent Server MPM Generation says 0, is it enabled? or am I doing anything wrong? MPM is on worker runing Apache 2.4.41 Current Time: Thursday, 02-...
0
votes
0answers
6 views

ubuntu 18.04, passenger ERROR: Phusion Passenger doesn't seem to be running

We just installed a new box with Ubuntu 18.04 with passenger and everything run fines, the site is up, but when we do passenger-status we get ERROR: Phusion Passenger doesn't seem to be running. ...
0
votes
0answers
31 views

HTTPS with Basic authentication in Header

I'm trying to setup a forward proxy to access certain endpoints on Remote server which require https with basic authentication in header. A(Application server) ---> Forward proxy (B) ----> Remote ...
0
votes
0answers
20 views

Matching not working as expected in Name-based Virtual Host in Apache

When I run httpd -S, it outputs the following: VirtualHost configuration: *:443 is a NameVirtualHost default server www.example.com (/etc/httpd/conf.d/ssl.conf:57) ...
0
votes
0answers
18 views

How to hide “the HTTP request header” from target server log point of view with apache2 reverse ProxyPass

Summary : We are a team of 5 person around the world and we want to be able to connect ourself to a commercial domain with only a single IP Adress (Apache Proxy Server IP adress) in order to be seen ...
0
votes
0answers
64 views

Redirection does not work from non www to https+www(RewriteCond: input='www.example.com' pattern='^example.com' [NC] => not-matched) [duplicate]

I want to redirect my website from http://example.com to https://www.example.com but unfortunately, it wasn't redirected at all when I key in example.com in the browser. I manage to get rewrite log by ...
0
votes
0answers
13 views

SELinux and semanage for customizing Apache SSL certificate and key path

I want to create custom path for SSL certificate and key in apache for each user, for example: user1 will have the SSL path like this: /home/user1/ssl/certificate.cer /home/user1/ssl/ca_certificate....
0
votes
0answers
45 views

Apache Stops Suddenly

I have an Apache server that sometimes stops receiving requests until I restart then everything will be fine (I check the log, nothing there). Before restarting apache I run the command below, and ...
0
votes
1answer
29 views

How to get mod_rewrite specific log messages in Windows Server and which file do I need to get?

I have an issue on getting mod_rewrite specific log. I found this on a website and with help from a friend I managed to get this to run in Windows Server Powershell. Below is the command line: Get-...
0
votes
1answer
64 views

How to run command tail -f error_log|fgrep '[rewrite:' in Windows Server

I'm currently performing website redirection from non-www to www+https, but unfortunately, my redirection does not work and I've tried to create rewrite log but it ends up my website down. After ...
0
votes
0answers
35 views

Apache without any auth module

I do not have any need for Authentication/authorization modules on apache2.4, so I proceed to comment out all the Auth modules and all the Require directives. The server goes up fine, but i get a 500 ...
0
votes
0answers
27 views

HTTP/2 Server Push from Apache behind HAProxy

I'am wondering if it is possible to use the HTTP/2 Server Push feature behind HAProxy. HAProxy 2.+ supports HTTP/2 at frontend and backend. I have created an simple setup to test it, as far as i can ...
0
votes
0answers
37 views

Apache Server Not Found on paths

Not too sure how to fix, being a noobie with apache servers, hosting multiple sites off of my VPS. It does work if the client is on the main website and they change it to the path from there. So like ...
0
votes
1answer
21 views

Apache2 authorization with database and authentication with certificate

My users have a certificate and can get access to my Apache 2.4 server, that's fine. They have access with their certificates to the whole site. But I want only certain users grant access to '/...
0
votes
0answers
134 views

www+https redirection does not work even though redirection has been added in .htaccess file

I'm currently doing www+https redirection where I hope that my website able to redirect from http://example.com to https://www.example.com but it does not work even I have added redirection in ....
0
votes
1answer
69 views

Mod SSL compiled against server

I have an issue with www+https redirection and I saw this error in logs: [ssl:warn] [pid 204:tid 412] AH01916: Init: (localhost:443) You configured HTTP(80) on the standard HTTPS(443) port! So I ...
0
votes
0answers
8 views

Where is the AddHandler string for PHP INITIALLY defined on the server?

So the handler for PHP isn't working: AddHandler application/x-httpd-php .js That is not what this question is about. My question is Where is the application/x-httpd-php (or whatever it is ...
0
votes
0answers
6 views

Configure context path as condition for redirect rule in apache 2.4.41

Iam using apache 2.4.41, in RHEL 7 I have configured the a context path as the condition for a redirect rile in apache Eg Redirect permanent /abc/ https://dev-dummy.com/cde This works fine ,but ...
0
votes
0answers
16 views

Can I show a folder in Apache directory listing while same folder directory been used in reverse proxy?

I have a reverse proxy on http://localhost.com/portal/, which will take me to http://localhost.com:1111/. I am using the directory listing at http://localhost.com/, and I made an empty folder named "...
1
vote
0answers
17 views

Forbidden(403) permission access error on Apache2.4 on windows machine

I am running my Django app on Apache2.4.38. I have given all the necessary parameters and access to the Apache server. Still, I am receiving a 403 error when I try to access the Application URL. ...
0
votes
1answer
20 views

Copy emails to another domain on the same VPS

I'm moving my website to another domain on the same VPS. From olddomain.com to newdomain.com. I want to move all emails from hello@olddomain.com to piotr@newdomain.com I'm looking for fast and ...
0
votes
1answer
73 views

Suppress “client denied by server configuration” Notices

I'm trying to remove the following notices from my error logs: AH01797: client denied by server configuration: /var/www/html/example.com/xmlrpc.php I previously had: LogLevel notice after ...
0
votes
0answers
11 views

Configurate Apache 2.4 reverse proxy with redirection

Server1 runs apache proxy and webserver tomcat domain: example.com/app1. Server2 runs just webserver tomcat example.com/app2. I'd like to redirect example.com/ to example.com/app1 and app2 server not ...
0
votes
0answers
21 views

Client certificate is not requested after successful OPTIONS request

I've configured an Apache server for specifically serving client certificate authentication. Since it is being served from a different port (32443 outside, 8443 internally), I also set up CORS to ...
1
vote
1answer
15 views

apache mod rewrite - initial URL equal rewritten URL

I have rewrite rules and get many logs like: [Thu Mar 26 11:41:00.356526 2020] [rewrite:trace1] [pid 18095] mod_rewrite.c(483): [client xy.xy.220.72:56702] xy.xt.220.72 - - [app.xyz.com/sid#...
0
votes
1answer
32 views

Apache HTTP Server 2.4.41 is confusingly serving virtual host pages

My httpd-vhosts.conf looks like this: <VirtualHost *:80> DocumentRoot "C:/Apache24/htdocs/rodde.net" ServerName rodde.net ServerAlias www.rodde.net </VirtualHost> <...
0
votes
1answer
53 views

What do these sporadic floods of 301 GET log entries every mean?

I have a new CentOS7 web server running virtualmin. It hosts a new WordPress site that just went into production. Starting mid-day today, on the quarter hour, to the second, I am troubleshooting ...
0
votes
1answer
44 views

Securing access to certain pages/directories with Apache behind a Varnish cache?

I have a public website with some URLs/directories which are for private/internal use only. These private areas can only be accessed via certain IP addresses or with a known username/password. ...
0
votes
0answers
11 views

XAMP hosted local website not accessible over the network

Hi I am running xamp on my local machine and firewalls are turned off. It seems that its running the database connection is not establishing due to some reason. Ive added an inbound rule for MySQL as ...
0
votes
0answers
19 views

Robots.txt file can not be modified or removed

After editing the robots.txt file While accessing the file domaon.com/robots.txt I found that the file itself has been edited but that will not appear by accessing it within the browser And Google ...
0
votes
0answers
8 views

how can configure daemon mode for wsgi on apache2.4 on Windows machine?

well recently I installed apache and mod_wsgi on a Windows 10 machine. I use a run.wsgi file as this: import sys sys.path.insert(0, 'C:/Apache24/htdocs/project/src') sys.path.append("C:/Apache24/...
0
votes
0answers
40 views

Acessing other services through apache webserver

I use debian 10 server and I'm trying to configure apache webserver such that it can be able to handle requests of some services on the server using webpath eg /service. Forexample if I have a service ...
0
votes
1answer
30 views

Varnish is removing the X-Forwarded-For header when used with Apache ProxyPass

I'm using Varnish 4 and Apache's ProxyPass directive to try to cache content on a HTTPS website (running Magento e-commerce software). Varnish listens on port 80, and Apache on port 8080 (for HTTP) ...
0
votes
0answers
8 views

Apache24 Webdav allow post into folder but prevent moving folders

Referring to the directory structure given below we have the following conditions that must be met. A member of the staff htgroup must be able to place files into any of these three directories as ...
1
vote
1answer
41 views

Apache RewriteCond not catching keywords as expected for QUERY_STRING

I'm trying to setup a RewriteRule for Apache 2.4 that allows me to return a 403 code when any keywords are found in the QUERY_STRING. I'm trying to return 403 whenever anyone does some malicious ...
0
votes
0answers
7 views

Apache2 (on Ubuntu 16.04) - when defining multiple VirtualHost error logs are missing

I defined two VirtualHosts for Apache2 - one on port 80 and the other on port 5000. For each I defined a different ErrorLog file, app1.log and app2.log. Both relevant sections look like below. <...
0
votes
0answers
12 views

Php-fpm configuation fo multi-site and Apache2 error log

I have php-fpm 7.3 on a Debian 10 and apache 2.4.38. I create 2 conf /etc/php/7.3/fpm/pool.d/mysite1.conf /etc/php/7.3/fpm/pool.d/mysite2.conf In each i modify this ; pool name ('mysite1' here) [...
0
votes
0answers
9 views

Apache URL based routing with multiple Apps

I have a website running on a monolithic PHP framework using Apache 2.4, hosted on a debian 9 server on which I have full control. I'm currently making a new static frontend based on Vuejs, located on ...

1
2 3 4 5
96