Questions tagged [apache2.4]

Use this tag for Apache version 2.4.x specific question.

Filter by
Sorted by
Tagged with
0 votes
0 answers
46 views

Apache 2 does not auto restart - (mannually ok)

Hy, After having upgrade from ubuntu 20.04 to ubuntu 22.04 I have random crash of Apache. Probably when log rotate and Apache restart automatically. sudo apachectl configtest give me Syntax OK If I ...
BB Freelance's user avatar
0 votes
0 answers
7 views

What is the best practice for running a background process as www-data while running apache2 under debian?

What is the best practice for running a background process as www-data while running apache2 under debian? I have cgi processes building mail lists and was running a background process as user fred ...
user1807717's user avatar
0 votes
0 answers
32 views

Apache 2.4.52 and mod_jk 1.2.48 not forwarding to Tomcat 8.0.3

I am trying re-setup my website using Tomcat 8.0.3 on Ubuntu 22.04. The openjdk version is 1.8.0_382. I haven't been able to complete the SSL installation for weeks. I tried keytool first, but had ...
OzanD's user avatar
  • 1
0 votes
0 answers
19 views

restricting the url on apache24 server

i want to restrict url of application in apache24 server where my application working on http://localhost:4200/FCTTL so i want to make sure that after domain and port /FCTTL should be present in my ...
TNJ21's user avatar
  • 1
0 votes
1 answer
45 views

Nginx map conversion to Apache2

I'm struggling to find an answer, is it possible de convert an Nginx map like below to Apache2 (2.4) equivalent ? server { [...] location ~* ^(/_matrix|/_synapse) { proxy_pass http://$...
Aurélien Grimpard's user avatar
0 votes
0 answers
41 views

Getting apache2 303 error while installing Moodle

I try installing Moodle 3.11 on Alt Linux. I run install.php, configure the DB configs, and get 303 error from apache2 access_log. Apache2 access_log screenshot. The DB on the other virtual machine, ...
Keima's user avatar
  • 1
0 votes
0 answers
19 views

Redirection in Apache 2.4 - get rid of port numbers and redirect to server's name on HTTPS

I have an application, it can be accessed in a browser through server's IP address followed by the port number or through server's name followed again the by port number. So currently this two options ...
dtm_'s user avatar
  • 35
0 votes
0 answers
36 views

Reverse proxy on apache2 with FQDN not working

FQDN of my server is myserver.mycompany.com (OS:ubuntu 22.04) There is a docker container with its own apache running on myserver. This docker container maps its 80 port to 8181 port on myserver. I ...
Ivanhou's user avatar
  • 11
0 votes
0 answers
26 views

Access is denied while trying to install the 'Apache2.4' service using httpd.exe -k install

I'm unable to install 'Apache2.4' as a service on Windows 11 using the command httpd.exe -k install I tried it on Command Prompt (as an admin) and on Windows Powershell (as an admin), but all I'm ...
Albin Sopaj's user avatar
-1 votes
1 answer
61 views

PHP file won't upload large file

I have a php file upload script that our company uses to upload files to an imaging server. Most of those files are PDFs, TIF, and sometimes image files. I am trying to upload a 16MB file using ...
Samuel Brown's user avatar
0 votes
2 answers
79 views

Apache - Some PNG images aren't showing

I have a web server with Apache that I use to show images. You can access those images directly through a URL, ex: image.com/ad.png. This works for 106 of our images but not for the last 4. The ones ...
Zowie Stenroos's user avatar
0 votes
0 answers
52 views

ldd -d libphp5.so resulting multiple undefined symbol errors. How to fix the same?

Installed Apache 2.4.54 and PHP 5.6.32 from the source. Here are the configure options used. Apache: ./configure \ --prefix=${APACHE_PREFIX} \ --enable-module=most \ --enable-...
Rao's user avatar
  • 20.9k
0 votes
0 answers
19 views

Making my Python3 CGI write error messages to Apache errorlog?

I am in the midst of converting a portfolio of Perl web applications to Python 3. According to docs at https://httpd.apache.org/docs/2.4/logs.html#errorlog , "Any information written to stderr by ...
glratt's user avatar
  • 34
0 votes
0 answers
21 views

Django app runs fine at first on mod_wsgi Apache2 then stops responding how do I troubleshoot issue

I have not used Django in many years. I recently found a niche to use it, created app, and it runs fine using runserver, no issues. I am trying to set it up to run on Apache stack with mod_wsgi, and ...
Kevin Crowder's user avatar
0 votes
0 answers
12 views

Can Apache delivers a dynamic resp. static page dependent on cookie/session

I want to achieve: Given a static website with the possibility to login. If logged in the user should see the identical website with some dynamic elements, so the website will be rendered on the fly ...
Nils Pitapatting's user avatar
0 votes
1 answer
49 views

My apache 2.4 reverse proxy is crashing after running for sometime

I have a reverse proxy configuration on windows and it is running on apache 2.4. There are some configuration settings are done in apache but after sometime it stops reporting few servers and throws ...
Manas Dixit's user avatar
0 votes
0 answers
16 views

mod-perl2 - change Content-Disposition header

I'm writing a mod_perl2 script which intercepts some requests (based on dynamic criteria) and serves an HTML page instead of the requested document. It successfully sets the content type and length ...
Fish's user avatar
  • 3
0 votes
0 answers
22 views

Apache 2.4 directory access

I have to create code inside the directory container in my main Apache 2.4 configuration file . I need to permit access from everywhere including 137.37.120.1 (which was previously written with ...
natarattat's user avatar
0 votes
0 answers
24 views

How does Apache 2.4 authorization container RequireAll evaluate conditions?

The documentation of the RequireAll directive says : <RequireAll> and </RequireAll> are used to enclose a group of authorization directives of which none must fail and at least one must ...
Httqm's user avatar
  • 809
0 votes
0 answers
80 views

Apache2 RemoteIP module returns 0.0.0.0 when RemoteIPHeader X-Forwarded-For is set

The Apache is running behind Google HTTPS Proxy. Apache RemoteIP module is enabled which seems to work fine. Some requests are flagged in PHP code when Remote IP is 0.0.0.0. After investigation it is ...
Sharad Upadhyay's user avatar
1 vote
1 answer
485 views

Apache 2.4 GeoIP Country Block Issue while using geoip/maxminddb modules

We recently migrated my Apache server from 2.2 to 2.4. We now trying to block traffic from specific countries using MaxMindDB and GeoIP. We have tried using the old geoip modules and configuration, as ...
Rushit Chandegara's user avatar
0 votes
0 answers
71 views

GeoIP based blocking country not working with Apache 2.4

We just upreared our web server from Apache 2.2 to 2.4 on RHEL server. On Apache 2.4 we tried to block country by using MaxMindDB module, we followed all steps displayed on https://github.com/maxmind/...
Vijay Mistry's user avatar
0 votes
0 answers
45 views

Apache 2.4 | Problem with @ in my UNIQUE_ID : ZJq5XcCoAcgAAGIGQ@gAAAAC

Recently I'm trying to match the security standards. So I'm using CSP lvl 3 which requires the use of a nonce. It works very well except sometimes in the UNIQUE_ID generated I have an @. As soon as it ...
David's user avatar
  • 3
0 votes
0 answers
17 views

Apache 2.4 | Apache https server is working locally good, but with connected domain or static IP doesn't work unless I put port 80 manually in address

Apache https server is working locally good, but with connected domain or static IP doesn't work unless I put port 80 manually in link tab In https://192.168.0.102/ works good. My code is httpd.conf: ...
InternetWarrior's user avatar
0 votes
1 answer
47 views

Identify a code or url that consumes a lot memory in wordpress

I have wordpress 6.2.2 on my LAMP server with php-fpm. I want to identify a code or a url that consumes a lot of memory. How can identify this? I use watch 'ps -e --format="cmd sz %mem %cpu time&...
Tahina Ramahazomanana's user avatar
0 votes
0 answers
51 views

using PHP urldecode function not working: Trying to Display the URL Encoded String in Human Readable Presentation, which I Read from a File

my problem is PHP's built-in urldecode() function but I don't know why this is not working for me. I'm using: XAMPP Server API Apache 2.0 Handler Apache Version Apache/2.4.56 (Win64) OpenSSL/1....
Qazi Salman Ahmad's user avatar
0 votes
0 answers
21 views

Problem deploying a flask application with apache, 2it displays the directory

I have installed python3.10 and libapache2-mod-wsgi-py3, apache2.4 Voila mon virtualhsot /default-ssl.conf <IfModule mod_ssl.c> <VirtualHost _default_:443> ServerAdmin ...
SimpleDev Nekro's user avatar
-1 votes
1 answer
47 views

PHP apache2 LAMP After enabling mod php stopped working

PHP was working fine before enabling mods. I was trying to use rewrite mods. I enabled mods with- sudo a2enmod rewrite sudo systemctl restart apache2 Also restarted apache also restarted computer. ...
Rohit S's user avatar
  • 518
1 vote
1 answer
20 views

Why can't I see the list of .dem files in my /demo directory on Apache2 server?

I'm trying to link all .dem files inside /demo Alias /demo /home/reyz/server/cstrike <Directory "/home/reyz/server/cstrike"> Options Indexes <FilesMatch "\.dem$"&...
ReyZ's user avatar
  • 11
1 vote
0 answers
45 views

Apache 2.4.6 redirect some pages to new domain, some pages served from original server

I have followed every link I can find on google on how to do this I am in the process of moving my domain, I have a couple of links out there that I need to redirect, some can stay on the server ...
James Connigan's user avatar
0 votes
1 answer
32 views

How to set sha1 hash in cookie on redirect?

I need to set a sha1 hash in a cookie on redirect that I can check on every further request. As far as I can see I can only set a Cookie on redirect with a RewriteRule: RewriteRule ^(needCheck)$ /...
hf409's user avatar
  • 1
0 votes
0 answers
323 views

Host header Injection in Apache2.4

I have configured apache server following is content of my conf files: websitename.conf file: NameVirtualHost *:443 <VirtualHost *:443> ServerAdmin webmaster@trmapps ServerName xyz.somedomain....
Vishakha Khair's user avatar
0 votes
0 answers
18 views

Use OS environment variables to apache2 ports conf

is there a way to use OS environment variables to apache2 ports conf? tried ports.conf Listen 80 Listen {$CUSTOM_PORT1} in /etc/apache2/ports.conf but unfortunately it returns invalid config. Any ...
Juliver Galleto's user avatar
0 votes
2 answers
135 views

Only allow Apache 2.4 directory access from php script only- How?

I have a Windows Apache Webserver that has a mapped drive to my Linux imaging server. The Linux imaging has a directory that stores pdf files in a certain directory that we access via a PHP script. ...
Samuel Brown's user avatar
0 votes
0 answers
234 views

PHP can't find php.ini configuration file

I am running a webserver with Apache2.4 and have added the following lines in the httpd configuration file to setup php with Apache: # PHP8 module PHPIniDir "c:/php" LoadModule php_module &...
Lmabear's user avatar
0 votes
0 answers
91 views

apache-2.4.57 -- solaris installation giving error

Making install in support ld: fatal: relocation error: R_SPARC_TLS_LE_HIX22: file server/.libs/libmain.a(util.o): symbol : bad symbol type SECT: symbol type must be TLS collect2: ld returned 1 exit ...
yogeesh's user avatar
0 votes
1 answer
236 views

Jupyter Docker Image Kernel Disconnected 400 Apache Proxy

I have a Jupiter notebook running on an Ubuntu server in AWS. docker run -d -p 8880:8888 jupyter/all-spark-notebook I am able to see the web interface just fine, and I've bashed into the container ...
Adam Winter's user avatar
  • 1,710
0 votes
0 answers
67 views

Restrict location to just one IP in vhosts not working

I am trying to restrict the access to a specific location for just one IP address in the vhosts file but for some reason it is not working. This for apache 2.4.29. Here is my vhosts file: <IfModule ...
BradG's user avatar
  • 701
0 votes
0 answers
57 views

why Apache returns 200ok for malformed app response like b'404 NOT FOUND'

I have a sample python app running as docker container and configured with apache2.4 and openssl (python-server.py): PORT_NUMBER = 80 class myHandler(BaseHTTPRequestHandler): def do_GET(self): ...
Shashank Hirematt's user avatar
0 votes
0 answers
39 views

Apache HTTP Server - 2.4.5* / Is it Possible to Use Cluster Scenario for WebLogic Server Installed On 2 Different Machines Using Apache HTTP Server?

There are 2 different scenarios. Scenario-1: Let's assume that WebLogic is installed on 2 different servers. Server IPs: 192.168.0.111 and 192.168.0.112. These servers are not clustered (ie each ...
rndm_acct1's user avatar
1 vote
0 answers
636 views

Symfony - prod server : polyfill-mbstring/bootstrap.php): Failed to open stream: Permission denied

I'm trying to deploy my symfony 6.2 project on my prod server with apache2. My prod server already have older symfony projects, so i use ondrej php and installed php8.2 and mods. Server version: ...
mysterty's user avatar
0 votes
1 answer
300 views

How to prevent cloudflare from setting "x-content-type-options: nosniff"?

According to cloudflare docs this header is configured in the HSTS settings, but I have HSTS disabled. I tried enabling HSTS and specifically deactivating the x-content-type-options header but the ...
ccpizza's user avatar
  • 29.7k
1 vote
1 answer
209 views

Apache issue? Default WordPress .htaccess rewrites causes redirect to the AlmaLinux (9.1) default page

I could really do with some help here please. I think this is an Apache issue rather than a WordPress issue. If I allow .htaccess to process rewrites on my Wordpress sites by adding AllowOverride ...
J O's user avatar
  • 11
1 vote
1 answer
48 views

block ip via htaccess require all denied not working at public_html

I have a file structure that look like this: /public_html .htaccess index.php /country index.php /item index.php in .htaccess: <RequireAll> Require all denied Require ip 123.456....
beavis11111's user avatar
0 votes
0 answers
70 views

Resolving 403 Permission Denied Error in Apache 2.4

After having not done Web programming for a long time, I am trying to do so now but I discovered that after my three Ubuntu 22.10 development systems were updated to Apache 2.4 (2.4.54 to be specific),...
user avatar
0 votes
0 answers
49 views

apache 2.4 CustomLog based by response size

How can I set the httpd.conf file, to log out based by response size which exceeds the 1Mb? Here is my code: LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" %I %O"...
akicsike's user avatar
  • 371
0 votes
0 answers
113 views

Using htaccess to block a country from viewing a single web page

I want to block access to just one web page on the server from 1 particular country. I worked out a way to do it in the htaccess file like this RewriteEngine On RewriteCond %{REMOTE_ADDR} ^2\.56\.[0-9]...
Honkytonk's user avatar
0 votes
0 answers
33 views

Every 10-15 minutes, the proxy server encounters a 502 Proxy Error: An invalid response from apche2

**this is my apache2 config file ** ProxyRequests off Timeout 2400 ProxyTimeout 2400 LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so LoadModule proxy_http_module /usr/lib/apache2/...
DeepSad's user avatar
0 votes
0 answers
34 views

consequences of using requestbody() in lua apache: "error in msg parsing: xml was empty, didn't parse!"

I currently have a SOAP request that I'm trying to intercept via a reverse proxy, get a copy of the request body message, and then continue that to get a response. While I've been successful in ...
codinator's user avatar
0 votes
1 answer
297 views

How to check IF query string exists in Apache

I am trying to check if the query string is not present in the HTTP request then set some headers. I am following this : https://httpd.apache.org/docs/2.4/expr.html I have tried - <If "! %{...
Learner's user avatar
  • 111

1
2 3 4 5
19