9
6
Fork
You've already forked deploy
1

hide Apache / PHP version information #15

Open
opened 2025年07月03日 11:08:35 +02:00 by fkooman · 0 comments

On Fedora/EL:

$ cat /etc/php.d/40-expose.ini 
expose_php = Off
$ cat /etc/httpd/conf.d/tokens.conf 
ServerTokens ProductOnly

This reduces the output from:

$ curl -I https://elx.tuxed.net/vpn-user-portal/oauth/token
HTTP/1.1 401 Unauthorized
Date: 2025年7月03日 09:08:18 GMT
Server: Apache/2.4.63 (AlmaLinux Kitten) OpenSSL/3.2.2
X-Powered-By: PHP/8.3.19
Strict-Transport-Security: max-age=15768000
Content-Type: application/json

to:

$ curl -I https://elx.tuxed.net/vpn-user-portal/oauth/token
HTTP/1.1 401 Unauthorized
Date: 2025年7月03日 09:02:14 GMT
Server: Apache
Strict-Transport-Security: max-age=15768000
Content-Type: application/json
On Fedora/EL: ```bash $ cat /etc/php.d/40-expose.ini expose_php = Off ``` ```bash $ cat /etc/httpd/conf.d/tokens.conf ServerTokens ProductOnly ``` This reduces the output from: ``` $ curl -I https://elx.tuxed.net/vpn-user-portal/oauth/token HTTP/1.1 401 Unauthorized Date: 2025年7月03日 09:08:18 GMT Server: Apache/2.4.63 (AlmaLinux Kitten) OpenSSL/3.2.2 X-Powered-By: PHP/8.3.19 Strict-Transport-Security: max-age=15768000 Content-Type: application/json ``` to: ``` $ curl -I https://elx.tuxed.net/vpn-user-portal/oauth/token HTTP/1.1 401 Unauthorized Date: 2025年7月03日 09:02:14 GMT Server: Apache Strict-Transport-Security: max-age=15768000 Content-Type: application/json ```
Sign in to join this conversation.
No Branch/Tag specified
v3
wg-only
v4
v2
No results found.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
eduVPN/deploy#15
Reference in a new issue
eduVPN/deploy
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?