Skip to main content

Questions tagged [apache]

Use this tag (along with an appropriate programming-language tag) for programming questions relating to the Apache HTTP Server. Do not use this tag for questions about other Apache Foundation products. Note that server configuration questions are usually a better fit on https://serverfault.com

0 votes
0 answers
6 views

Mac OS apache and php inconsistency issues, PHP unable to see or read directory

so this is my first try here to get some answers to a (seemingly) illogical problem. I'm trying to trouble shoot an installation of Apache and PHP via Homebrew on my Mac OS 14.4.1 Background: I want ...
Christian Legere's user avatar
0 votes
0 answers
6 views

Apache NiFi custom processor runtime environment error

I am using NiFi 2.0 that supports python scripts directly from a working directory, after I add my custom processor to the canvas, an error "Processor invalid because initializing runtime ...
cyrine's user avatar
  • 1
1 vote
0 answers
19 views

How To Allow Popup Ads Only On Certain Website Pages Using .htaccess File

As a webmaster I would like to exclude popup ads on certain specific webpages on my website whos url ends with a particular string. Example : https://mywebsite/some-slug-variable/?gallery=submit I am ...
Nicodemo's user avatar
0 votes
1 answer
18 views

Compare two backreferences in RewriteCond

This is the old URI pattern /release-(\w+)/(\w+)/(.*), where first and second regex pattern are always the same, with the following examples: /release-foo/foo/(.*) /release-bar/bar/(.*) etc They are ...
Khosrow's user avatar
  • 566
0 votes
0 answers
28 views

Apache2 - protect only directory but not subdirectory

I'm trying to host a webserver with Apache2 on Debian 12. I want to limit access to webserver/dir1 with a password promt. This already works. My issue is, that webserver/dir1/subdir1 has to be ...
T0xxic's user avatar
  • 21
1 vote
0 answers
20 views

Is there any http header that an http server can use to communicate the maximum request size to an http client?

I have looked all over for this and cannot find an answer so please forgive me if my Google-Fu is just failing me. I currently working with http servers and I was trying to find a protocol-based or ...
utdream's user avatar
  • 569
-2 votes
2 answers
55 views

Why can't my laravel database be found now even if I had already used it a few days ago?

I'm new to using the laravel framework, and I'm struggling in starting my project due to several problems I've encountered while setting up. I'm currently using Linux as my command prompt and Xampp ...
Andy's user avatar
  • 1
0 votes
0 answers
7 views

Apache2 Basic Authentication doesn't work in Flask app

I tried implementing the basic authentication in Apache on my Flask app. I did it via the host config, but the authentication popup is not showing up, it just works like normal. <VirtualHost *:80&...
Rav's user avatar
  • 1,385
0 votes
0 answers
9 views

How can I run Spatialite in XAMPP

I have downloaded the files from https://www.gaia-gis.it/gaia-sins/windows-bin-amd64/ and moved the dll files to C:\\xampp\apache\bin and added extension=mod_spatialite.dll to the php.ini file. This ...
James's user avatar
  • 720
0 votes
0 answers
14 views

How to print Java application context-root in Apache access logs?

How to print Java application context-root in Apache access logs ? Which format string provides the application context-root ? https://httpd.apache.org/docs/2.4/mod/mod_log_config.html#formats Thank ...
chandrasekhar's user avatar
0 votes
0 answers
26 views

I can still see contents of directories on apache linux [closed]

The content of my .htaccess file are as follows: Options All -Indexes AllowOverride None I have Amazon Linux 2023 image and this is not working. I can still see the content of the directories. Can ...
coderatlarge's user avatar
1 vote
1 answer
42 views

Apache 308 redirects change the protocal from https to http

So I recently updated my .htaccess to replicate the directory slash directive with a 308 instead of the 301 Apache normally uses, so that the browser repeats the same request instead of changing it to ...
Brad's user avatar
  • 880
0 votes
0 answers
13 views

Python flask application is not working properly on Apache 24 in windows

I am using Python 3.8.10 with Apache(2.4.59) and mod_wsgi(4.9.4)on windows10. When running my application, the API requests go into a pending state. After troubleshooting with print statements, I ...
Dee265's user avatar
  • 1
0 votes
1 answer
103 views

Is the rewriterule affected by CVE-2024-38475

I use this rewriterule RewriteRUle ^(.*)?$ https://%{SERVER_NAME}/$1 [L,R] From the cve, we can get those msg: "Substitutions in server context that use a backreferences or variables as the first ...
leezii's user avatar
  • 127
-1 votes
0 answers
19 views

Creating domain aliases mapping to wildcard domains

I want to do something like wix.com and accept all external domains requests, i.e. my server accepts requests to all domains which point to our server ip. I have an existing wildcard domain setup: *....
Jimmy Jhon's user avatar
1 vote
0 answers
19 views

Fixing Apache HTTPD Configuration for Blocking Specific Headers and Custom 403 Error Page

I'm facing an issue in Apache httpd. In the littpd.conf. Inside the rewrite.mod I am blocking requests which have these 3 headers X-HTTP-METHOD X-HTTP-Method-Override X-METHOD-OVERRIDE And the ...
Deepak B's user avatar
0 votes
0 answers
19 views

Why do we need backslashes here in this piped logging configuration for Apache Httpd Server?

The configuration line is CustomLog "|$/bin/sed -u -E \'s/(ticket)(=|%3D)[a-zA-Z0-9%]+/\\\1\\\2***/g\' >> /dev/stdout" json. The goal is to replace query params like ticket=123 to ...
Bryan Xu's user avatar
0 votes
0 answers
53 views

Perl CGI Fails with Permission Denied - AH01241: Error spawning CGI child [closed]

I have a Perl CGI script Test.cgi at /var/www/cgi-bin/Test.cgi. The content is simply: #!/bin/perl -T print "Content-type: text/html\n\n"; print "Hello, World."; The issue is that ...
Aerozeek's user avatar
  • 505
0 votes
0 answers
20 views

android application [closed]

i want to make an android application where the app first fetch the word file and after that we edit the data in the application that the word file fetch and after we save it i dont how to do. so the ...
Pratham Sharma's user avatar
10 votes
3 answers
958 views

403 Forbidden when URL contains GET with encoded question mark / UnsafeAllow3F / rawurlencode

Since yesterday when our Apache updated himself at night we started to get websites saying 403 Forbidden. It looks like that encoding the "?" is not anymore allowed. The crazy thing is that ...
C_F's user avatar
  • 396
0 votes
0 answers
12 views

Unsupported methods should written 403

For the URL https://localhost:9443 or as shown in image Methods which arw not allowed should return 403. Added this in my web.xml <security-constraint> <web-resource-collection> <web-...
Anu's user avatar
  • 37
0 votes
1 answer
16 views

Can I have a custom apache module use different values for variables based upon Directory directives in the conf file?

I have a custom apache module written in C. It's job is to take the information from the api and send it to a server listening on a specific host/port and return the resulting json. I set the host/...
user61526's user avatar
1 vote
0 answers
65 views

Multiple requests being made from a single click

There is a duplicate request issue that affects staff members at our company. I am unable to replicate it in our development environment (or in production for that matter, but I work from home so ...
Antonio Agiste's user avatar
1 vote
0 answers
68 views

Configuring Delphi MVC Framework as DLL for Apache

I am having issues configuring my Delphi project as .dll library for Apache webserver. I am using Delphi MVC Framework component for Delphi 12.0. I am able to generate .dll and configure Apache to use ...
Daverino's user avatar
0 votes
0 answers
12 views

ReactJS App Resources Not Loading Correctly When Accessed Via Link in Another App

I have two websites, both developed with ReactJS. Let's call them "homepage" and "samplecompanysite01". I built the "homepage" site and copied its files into /opt/lampp/...
Mahdi Balali's user avatar
0 votes
1 answer
36 views

Custom 500 page not shown in apache docker

I am trying to use php/apache in docker and I want to have a custom 500 page. I am trying it out on localhost and it never shows the page. Dockerfile FROM php:7.4-apache COPY . /var/www/html/ COPY php....
Rob Sedgwick's user avatar
  • 4,494
0 votes
1 answer
39 views

Laravel project inside a legacy one

I'm trying to make a laravel project work inside a legacy site while we work on modernizing the entire code base. I've been able to make it work in my dev computer using valet creating a custom valet ...
Stefano Finetti's user avatar
0 votes
0 answers
16 views

How do I use .htaccess to redirect a page only when it has a particular query string?

I want to setup a redirect for a page on my e-commerce site, which relies on query strings to display pages. I want to point a particular brand page to a new URL. Currently, the URL is: https://...
guru's user avatar
  • 307
-3 votes
0 answers
26 views

How to disable Status code 301 Redirect when PHP application running in xampp localhost [closed]

I installed Xampp (version 5.6.31) on my window. When I run my empty application folder (there are no files in this folder) on localhost (like https://localhost/schemes_Dashboard3) and see it in the ...
Taranpreet Singh's user avatar
0 votes
0 answers
24 views

Using apache proxy to Next.js app running in Docker container

I'm sure there's a simple answer to this... I've got a Next.js v14 app running in a container which is exposed on port 6502. I can reach it using http://localhost:6502 and everything works. Now I want ...
Mike Lowery's user avatar
  • 2,768

15 30 50 per page