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
apache
92,408
questions
0
votes
0
answers
15
views
How to redirect in htaccess without blocking php api?
I have an index.php file which is located in the root directory. This outputs either HTML or JSON, depending on the URL:
<?php
require_once('./../private/Router.php');
new Router();
?>
&...
0
votes
0
answers
9
views
Apache config return IPV6 instead of IPV4
htaccess file looks like this because I only want to give access to authorized ip ranges:
#ErrorDocument 403 "Sorry ! You are not authorized to access this page"
<IfModule mod_rewrite.c&...
0
votes
1
answer
29
views
How do I handle a crash of a Golang (Gin) web server and recover with a new process?
I am in the process of writing a bunch of APIs. I am going to use Gin.
I will deploy behind a reverse proxy (I am forced to use Apache).
Like any process, I expect the Gin process to crash from time ...
0
votes
0
answers
16
views
I need to point different domains from one server and different cpanel account into 1 folder ( Cpanel, WP Multisite )
I have a WP Multisite with multiple domains
"domains are placehodlers here"
repair.com - primary domain
dallas-repair.com - secondary
sanantonio-repair.com - secondary
Those 3 are in the one ...
0
votes
0
answers
13
views
Cannot bind user with mod_authnz_ldap
I am testing mod_authnz_ldap on Debian 11.
I created a virual host, a location, etc. Everything fine at that level.
I configured the Bind DN with openldap's manager, set its password. When I try to ...
0
votes
1
answer
39
views
TYPO3 v12 Backend Mixed Content Error loading Javascript Libs
We have setup TYPO3 behind a TRAEFIK Reverse Proxy. Yesterday everything looks good, but today our Backend is empty. In the Browser Console we found
"Mixed Content: The page at '' was loaded ...
-2
votes
0
answers
26
views
Mac OS apache and php inconsistency issues, PHP unable to see or read directory
When I added this code to the apache vHost conf, the browser stopped "seeing" php files and simply says 404. The file exists and worked before.
When I try to revert the file and folder ...
1
vote
0
answers
25
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 ...
0
votes
1
answer
26
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 ...
0
votes
0
answers
30
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 ...
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 ...
-2
votes
2
answers
58
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 ...
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&...
0
votes
0
answers
10
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 ...
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 ...