Skip to content

Commit c6903c5

Browse files
authored
Merge pull request #30 from sourceboat/feature/25-remove-version-headers
#27 Remove version headers
2 parents d277a08 + 7a38010 commit c6903c5

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

etc/nginx/conf.d/default.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@ server {
2929
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
3030
fastcgi_param PATH_INFO $fastcgi_path_info;
3131
fastcgi_param HTTPS $is_https;
32+
fastcgi_hide_header X-Powered-By;
3233
}
3334
}

etc/nginx/nginx.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ http {
1414
include /etc/nginx/mime.types;
1515
default_type application/octet-stream;
1616

17+
server_tokens off;
18+
1719
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
1820
'$status $body_bytes_sent "$http_referer" '
1921
'"$http_user_agent" "$http_x_forwarded_for"';

usr/local/etc/php/php.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,10 @@ opcache.memory_consumption=${PHP_OPCACHE_MEMORY_CONSUMPTION}
5656
opcache.max_wasted_percentage=${PHP_OPCACHE_MAX_WASTED_PERCENTAGE}
5757
opcache.interned_strings_buffer=16
5858
opcache.fast_shutdown=1
59+
60+
;;;;;;;;;;;;;;;;;
61+
; Miscellaneous ;
62+
;;;;;;;;;;;;;;;;;
63+
64+
; http://www.php.net/manual/en/ini.core.php#ini.expose-php
65+
expose_php = Off

0 commit comments

Comments
 (0)