91,746 questions
0
votes
1
answer
18
views
apache auth-kerb and a user list to allow doesnt work
I guess the solution is quite easy, but I just dont see the point:
We had a kerb auth working, but s'one destroyed it quite a while ago.
Now I dont get it working again:
kerb authentication works and ...
0
votes
0
answers
75
views
Setup local SSL certificate for HTTPS in Google Chrome [closed]
I got a Laravel App running on an Apache server. I've configured VirtualHost to locally access the app with URL:
https://www.infoalquiler.com.ar/
Despite the app is working properly, I'm getting a &...
0
votes
0
answers
23
views
Maxclients reached in apache but raising the value does not solve the issue
Today we started having issues with our server (only LAMP server on RHEL). We have tried increasing our maxclient numbers but it doesn't fix the issue. Restarting apache gives brief access but it ...
0
votes
0
answers
41
views
Explanation of Apache 2.4 Require Directives Ordering? [closed]
This is for Apache 2.4.58.
Why is it that the following order of Location/LocationMatch will only evaluate the latter, but if it is reversed that it will evaluate both as intended?
<Location /basic/...
0
votes
0
answers
132
views
404 on certain files on select devices after repeated visits [closed]
I run a webserver on my local network to host my movie collection. I also have a custom android app running on an amazon fire stick. Recently I have been working to enable video playback from external ...
0
votes
0
answers
19
views
Hosting an app, locally, exposed to the outside world using a subdomain and virtual DIR.. where does the SSL cert live? [migrated]
I'm hosting an app on a NAS, port 3000.
Works great.
I have a Pi5 that runs Apache and a few web projects.
Works great.
I've got a static IP from my ISP and can send traffic to via my domain name and ...
0
votes
0
answers
86
views
Weird behavior, htaccess work in both ways?
Request https://example.com/ , htacces file :
RewriteEngine On
RewriteRule ^$ /one
RewriteRule ^/one /two [R]
result I get https://example.com/two, remove the slash in the second RewriteRule
...
Best practices
0
votes
0
replies
34
views
Apache mpm_event + SSL: Now more performant than mpm_worker?
The last time I had to choose between using mpm_worker and mpm_event, it was my understanding that mpm_event was functionally equivalent to just using mpm_worker if SSL was enabled and so it couldn't ...
-1
votes
1
answer
76
views
CORS Error: “Access-Control-Allow-Origin does not match ‘http://localhost:5173’” [duplicate]
I'm getting a CORS error when trying to fetch data from my local PHP backend:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://localhost/login.php.
...
1
vote
1
answer
68
views
Apache returns 404 only when accessed through CloudFront (works fine via ELB directly)
Our web service is running on EC2 with Apache. We have the following setup:
Service A -> ELB -> Service B API
In this case, Apache on Service B shows in rewrite.log that the rewrite rule was ...
0
votes
0
answers
54
views
Apache 2.4 reverse proxy: extremely slow or timing out only on latest iOS/macOS (HTTP/2), while Android and Windows are fast
Apache 2.4 Reverse Proxy + TLS: iOS/macOS Only — Proxied POST Requests Take 60+ Seconds (Android/Windows <1s)
I'm running Apache HTTPD 2.4.46 (custom build on RHEL) as a TLS terminator and reverse ...
-1
votes
1
answer
63
views
Using RewriteRule to Server Content from One Page to Another [closed]
I'm using a CMS that doesn't allow me to change URL structure. It's find for 99.9% of my pages, but there are two that I'd like to have specific URLs. RewriteRule directives work for me in my ....
0
votes
1
answer
96
views
apache fails to import from correct PYTHONPATH
The situation is like this:
in my httpd.conf, I have
SetEnv PYTHONPATH /Users/<MY_NAME_>/PATH_TO/py3
my Python script in a browser runs, prints something like a header, and then I print from it ...
2
votes
1
answer
70
views
"Forbidden You Dont Have Permission to access this Resource" config problem on Apache.conf
My Debian10 server wentdown and I've been trying to install all my pages and Apache2 server on another Debian (Debian 12).
I've already take all the bkps of the pages and put them in the exact same ...
1
vote
0
answers
75
views
WordPress REST API: Large Image Uploads Not Reaching Backend Despite Proper PHP Settings
Problem Description:
I'm developing a chat application with image upload functionality using WordPress REST API. When users attach multiple large images (3 images), the request doesn't reach the ...
0
votes
1
answer
65
views
Apache LDAP authentication has isUserInRole method?
On different servers, I have applications in PHP and Java (other languages too). I am developing all new applications to use LDAP authentication so I don't have to do any user management, but more ...
0
votes
0
answers
18
views
Apache SGW to proxy requests based on header between two backends
I have a code in app1.part file that is located in sites-enabled/ directory. There are many other apps that request Service GW service, and apache should forward requests to the backed.
The AS-IS ...
0
votes
0
answers
77
views
Laravel + Laragon: wrong .env being used for API requests across multiple projects
I’m working locally with Laragon and multiple Laravel projects.
The setup looks like this:
Website A → its own .env (website-a.env), with DB website_a.
Website B → its own .env (website-b.env), with ...
0
votes
0
answers
39
views
Wamp: Apache crashes and restarts when making a https call with GuzzleHttp
I am building a background worker in php for my website, that needs to make a restfull api call to another website. I decided to use GuzzleHttp over a custom curl implementation since it's well ...
0
votes
0
answers
36
views
pyarrow gets error Received RST_STREAM with error code 1 on UTF8 data
pyarrow gets error Received RST_STREAM with error code 1 on UTF8 data why?
i also followed enter link description here this still same.
Flight returned internal error, with message: Received ...
0
votes
1
answer
103
views
Custom document root in XAMPP
I'm currently going through Laracast's PHP for Beginners series, and in episode 30, they make a change to the document root. I'm using XAMPP on Windows, and the default document root in my httpd.conf ...
1
vote
1
answer
74
views
My PHP http_response_code is not sending status 200 but status code 302?
Hi all I am facing an issue with my Webhook response code whereby I am sending a Http response code of 302 (redirect) based on my http server logs.
This 302 redirect is overriding my default HTTP ...
1
vote
2
answers
93
views
Write GET Variables from URL path in HTACCESS [closed]
I am trying to create a semi-serverless SPA w/ a blog but want to have "RESTful" URLs. I have the following .htaccess commands doing the job--in combination with JavaScript History API; but, ...
0
votes
0
answers
41
views
Apache lua_mod setup: "lua: Unable to find function fetch_token_hook in <script directory>"
We're trying to run a lua script to hook into fixups phase of a request in an apache server app, but we keep getting the following:
"[Thu Aug 28 09:55:37.099004 2025] [lua:crit] [pid <<pid&...
0
votes
0
answers
37
views
htaccess rule run on files without folders
the following htaccess rule will redirect files without extension (contact) to (contact.php)
but it also run on folders
I want it to run only on files only and skip running on folders
RewriteEngine on
...
3
votes
2
answers
256
views
If sees environment variable as empty while it is defined in .htaccess
Only thee following directives in the .htaccess file
SetEnvIf _ .* SSS=1
<If "%{ENV:SSS} -eq 1">
Header set MyHeader 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-%{SSS}e'
</If&...
0
votes
0
answers
31
views
Laravel app hosted on cPanel showing raw PHP code instead of executing in live envirnment [duplicate]
I have deployed my Laravel application on a cPanel server under a subdomain. The app is hosted at:
Installer link (working fine): https://sns.sadistributor.com/public/install/
Main link (not working): ...
0
votes
0
answers
31
views
Rename get parameter via mod_rewrite
I want to rename specific http get parameter since application (NextCloud) changed it from path to dir and I want to preserve compatibility with old links.
Original URL was: https://example.com/index....
3
votes
1
answer
73
views
htaccess redirect block query string url
I'm working on a WordPress site that was apparently hacked some time ago. The intruder added a redirect plugin and has been happily redirecting traffic to spammy sites for a while. I removed the ...
2
votes
1
answer
65
views
"B" flag for subrequest not working to fix AH10411 - "Rewritten query string contains control characters or spaces"
I pored through search results, and other answers, and asked chatGPT, but nothing seems to work in my specific case.
In my apache error log, I am getting this error:
AH10411: Rewritten query string ...
0
votes
2
answers
81
views
Error d"MIME (« text/html ») incorrect (X-Content-Type-Options: nosniff)" on deploy Django project with gunicorn and Apache
I'm trying to deploy a Django project with Gunicorn and Apache.
The gunicorn is configured and working --> no problem on this side
The problem is with the statics files, i configure an apache conf :...
1
vote
1
answer
75
views
rewrite rules, doc root, and anchors
What I'd like to do is make a directory act as root for a particular application. So resources linked as "/style.css" would actually load from "website.com/forum/style.css".
I have ...
1
vote
1
answer
79
views
How do I make Apache use 308 for DirectorySlash?
I am having an issue with redirects when posting form data to an Apache HTTP Server. When DirectorySlash is enabled, mod_dir is signaling an HTTP 301 to my client, which is causing the HTTP method to ...
3
votes
1
answer
202
views
htaccess block root folder but allow access to list of specified sub folders [closed]
I am trying to create .htaccess rules at the root of a client site to block traffic to a specific subfolder where WordPress is installed.
Here is my structure:
example.com
|--blog
|--.htaccess
|-...
0
votes
1
answer
38
views
Adjusting the priority of a RewriteRule between .htaccess and the main config
I have a problem where a RewriteRule in an .htaccess is bypassing authorisation. The same RewriteRule in the server config works, with authorisation, but the one in the .htaccess unfortunately takes ...
1
vote
1
answer
90
views
php Sharing data between Cli and WEB ownership problems
I have a service that execute some bash scripts based on external events, in this scripts I call php cli to execute some php code running with account "A".
I have a web site that needs some ...
0
votes
2
answers
168
views
Use RewriteRule to execute one specific non-PHP file as PHP
I have a single, specific non-PHP file on the server that must be executed as PHP. For the sake of example let's say it's a text file called test.txt and its contents are: <? echo 'hello world'; ?&...
0
votes
0
answers
71
views
How can I get an Apache2.4 reverse proxy working on my Synology NAS for an Angular Single Page Application
I'm working on a personal-use-only Angular application which retrieves data and images from 3rd party servers and displays it in a format useful to myself.
Question:
How can I enable a Reverse Proxy ...
1
vote
1
answer
170
views
Apache Web Server Multiple Content Security Policy directive headers
I'm working on a Content Security Policy and I have a question regarding multiple Apache Header directives. Referencing this page, I can have multiple CSP Headers, but the strictest one prevails.
...
0
votes
0
answers
79
views
(2025) Fatal error: Uncaught Error: Call to undefined function pg_connect() with Apache Lounge, PHP and PostgreSQL
I'm trying to setup up a web application environment on Windows 11, using Apache Lounge, PHP and PostgreSQL. I am an absolute beginner. I've worked through older posts of the same issue and have had ...
1
vote
1
answer
300
views
SaxonC with PHP on macOS (MAMP) causes [__NSPlaceholderSet initialize] crash via browser, but works in CLI
I'm running a PHP script on macOS (version sequoia 15.5 -- M3) using MAMP (version 6.9) with Apache and PHP 8.2. The script loads the SaxonC (version 12.7) PHP extension to perform XSLT ...
0
votes
1
answer
71
views
How to remove / replace cookies in Apache http server before redirect to backend
I have been working on web and backend development. For web using Apache http server, here facing issue regarding cookies size. On client browser cookies size is really huge and Tomcat server ...
0
votes
0
answers
57
views
Apache shutdown unexpectedly after updating PHP 7.2 to 7.4 in Windows 10
I am using XAMPPS to run PHP files but when i run the file in localhost/ it asks to update to PHP 7.4, and this is where the problem occurs apache can't run.
I tried change the port (such as port 8080,...
0
votes
0
answers
38
views
Apache not forwarding bot (Googlebot) requests to Prerender self-hosted service
I'm using Apache to serve a React page and have set up a self-hosted Prerender service to serve prerendered HTML to crawlers like Googlebot.
My goal is that when a bot (e.g., Googlebot) visits https://...
0
votes
0
answers
34
views
Apache reverseProxy : how to send a notification whenever a 503 service unavailable happens
I have a server running on port 8080. I have configured an Apache server as a reverse proxy to forward requests on port 80 to localhost:8080.
I guess that Apache detects whenever any "503 service ...
0
votes
1
answer
52
views
I want to redirect to public folder (url/test/public) without showing the public in the url and .htaccess code is not working
I have hostinger shared hosting plan.
working on laravel project.
For a domain my current file structure is this :
Public_html/
Test/
Public/
.htaccess
Index.html
...
1
vote
1
answer
61
views
SSI (Server Side Includes) different between servers?
I have the following strange situation with SSI (Server Side Includes) in Apache servers:
<!--#if expr="1 < 0" -->
results in FALSE in both servers
<!--#if expr="1<0&...
0
votes
0
answers
58
views
MAMP & Xdebug Troubleshooting
I had Xdebug working on my MAMP Free installation but decided to purchase the full software. I saw in the menu unlike the free version I could enable Xdebug, so I did so, however the connection isn't ...
0
votes
1
answer
53
views
Django/Apache/mod_wsgi Deployment Issue: Internal Server Error & Redirect Loop on cPanel (AlmaLinux 9)
I'm an intern trying to deploy a Django application on a cPanel server, and I've run into a persistent "Internal Server Error" coupled with an Apache redirect loop. I've been troubleshooting ...
0
votes
0
answers
34
views
Problem with character encoding on apache server while receiving a Stripe webhook
I'm currently trying to implement a payment system using Stripe. After a payment, Stripe sends a webhook containing information about the purchase. However, before even a single line of php code is ...