New answers tagged

0 votes

Apache referrer based reverse proxy path rewrite

This is what seems to have worked, following this link to treat paths as being different sites, the external app i have no controll over was placed in its own virtual host, which was altered with an ...
user22866's user avatar
  • 151
1 vote
Accepted

Apache: 500 error, PHP fails on just one specific path

Apache only shows 500 in the logs because you are using php-fpm and Apache doesn't know the details of the problem. It just forwards the error code. php-fpm has its own log file which should show a ...
Gerald Schneider's user avatar
1 vote

Is Apache mod_evasive really worthful

What exactly do you mean by "not protecting at all". Does this mean new requests are not denied by server once the threshold values are reached. In case you've just enabled the module and ...
NKP's user avatar
  • 11
0 votes
Accepted

.htaccess to normalize requests to files with or without extension to URL without extension: $1(\.html?) --> $1

My IA / URL scheme: Works completely now 1a. Security settings. 1b. Explicit requests to /index.php CMS router --> Served as-is. Static page overlay into CMS namespace 2a) /hello — File without ...
porg's user avatar
  • 143
0 votes

Is it safe to use logrotate utility while logs are still being written by Apache?

Yes it is safe, but you need to have the right logrotate config. And not rotate log files and let apache uses those logfiles, but instead let apache write to a new log file. For example like this /var/...
Turdie's user avatar
  • 2,524
0 votes

Is it safe to use logrotate utility while logs are still being written by Apache?

I answer my own question: it isn't safe (at least using copy-truncate). This is especially true if you write large amounts of data (as it increase chances of data loss). The reason is that copy-...
tigrou's user avatar
  • 111
0 votes

Internal Server Error on Nextcloud instance migration from Debian 12 to Rocky Linux 9 server

Fixed the issue by completely uninstalling php and all modules from the EPEL repo, then installing PHP 8.3 and needed modules from the REMI repo. Now the web interface is up and running.
nitro64's user avatar
0 votes

.htaccess to normalize requests to files with or without extension to URL without extension: $1(\.html?) --> $1

Preliminary answer: 2b) Except if it has a .htm or .html suffix is never reached due to the earlier 2a) Serve file as requested being to generously matching any file! So the solution is narrow down ...
porg's user avatar
  • 143
0 votes

getting error Content Encoding Error (ERR_CONTENT_DECODING_FAILED) with Apache served pre-compressed .br (Brotli) files

maybe you have to https access for .br. https://groups.google.com/a/chromium.org/g/blink-dev/c/JufzX024oy0/m/LWEC-FJ7AwAJ
y.tk's user avatar
  • 1
0 votes

unable to use http2 h2c on apache2

From the "curl" output you provided, it seems like your server does support HTTP/2. HTTP/2 200 date: Thu, 01 Jan 1970 00:00:00 GMT server: Apache/2.4.29 (Ubuntu) content-type: text/html; ...
Sagi313's user avatar
  • 71
0 votes

Apache fails to restart after disabling SSL mod

The cause of the problem is clearly shown in the error message: Feb 06 15:04:03 user apachectl[26199]: Invalid command 'SSLCipherSuite', perhaps misspelled or defined by a module not included in the ...
Steffen Ullrich's user avatar
2 votes

What is the best way to achieve SSO for Apache 2.4 within a Windows domain?

SSPI is generic Windows interface to both Kerberos and NTLM; it's the Microsoft equivalent of GSSAPI. A module that uses SSPI should accept both mechanisms – though it's up to the client to decide ...
u1686_grawity's user avatar
0 votes

.htaccess files directive only matching when I'm checking the same folder

Following on from @Nikita Kipriyanov's answer with some alternatives, as creating an additional .htaccess file in the subdirectory is not always desirable, possible or even necessary. As stated, the &...
MrWhite's user avatar
  • 12.9k
3 votes
Accepted

.htaccess files directive only matching when I'm checking the same folder

<Files> directive is not expected to have any path components, only the base file name component. There should be no slashes in the directive's argument, and * doesn't match slashes (as it ...
Nikita Kipriyanov's user avatar
0 votes

Postfix/Dovecot presenting default SSL certificate from Apache to Thunderbird client

It seems Thunderbird attempts autodiscovery, which gives it the wrong certificate. Create a vhost in Apache for that subdomain, with the same certificate as used for dovecot.
vidarlo's user avatar
  • 8,937
-1 votes

Postfix/Dovecot presenting default SSL certificate from Apache to Thunderbird client

Check for which domain /etc/ssl/certs/postfix.fullchain.crt is issued Also make sure imaps and pop3s are enabled (in /etc/dovecot/dovecot.conf) protocols = imaps pop3s
Turdie's user avatar
  • 2,524
0 votes

Allow multiple IPs with the Require directive in Apache 2.4

I think what you are looking for is to manage a list of specific IP addresses. for them you just have to write Require ip 127.0.0.1 Require ip 127.0.0.2 For each line with the IP that you want to ...
BaymaxValero's user avatar
0 votes

Rewrite urls only for certain folder and remove parts of the url in Apache

FallbackResource /index.php This is what you need. Any request for a non existing file will be routed to this one, while existing paths and files will be replied as usual. It is the current method to ...
Daniel Ferradal's user avatar
0 votes

Can't get dumpio on Apache 2.4 Oracle Linux 8.6 php 8

Two other things, besides Daniel's answer which rightly said it must be turned on at the server context, not vhost context, which I needed to do to get mod_dumpio working: Check that no other ...
J Griffiths's user avatar
0 votes
Accepted

Why rotatelogs from apache produce files smaller than specified max size?

I found what is wrong : /usr/sbin/rotatelogs /var/log/somelogfile 1GB should be /usr/sbin/rotatelogs /var/log/somelogfile 1G Thanks for HBruijn for his comment about STDERR. Here is how I found it ...
tigrou's user avatar
  • 111

Top 50 recent answers are included