Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mailinabox
Commits
3a09b047
Commit
3a09b047
authored
Feb 01, 2015
by
ikarus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hide nginx version an OS information for better privacy.
parent
82e75239
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
nginx.conf
conf/nginx.conf
+9
-0
No files found.
conf/nginx.conf
View file @
3a09b047
...
@@ -7,6 +7,11 @@ server {
...
@@ -7,6 +7,11 @@ server {
server_name
$HOSTNAME
;
server_name
$HOSTNAME
;
root
/tmp/invalid-path-nothing-here
;
root
/tmp/invalid-path-nothing-here
;
# Improve privacy: Hide version an OS information on
# error pages and in the "Server" HTTP-Header.
server_tokens
off
;
# Redirect using the 'return' directive and the built-in
# Redirect using the 'return' directive and the built-in
# variable '$request_uri' to avoid any capturing, matching
# variable '$request_uri' to avoid any capturing, matching
# or evaluation of regular expressions.
# or evaluation of regular expressions.
...
@@ -20,6 +25,10 @@ server {
...
@@ -20,6 +25,10 @@ server {
server_name
$HOSTNAME
;
server_name
$HOSTNAME
;
# Improve privacy: Hide version an OS information on
# error pages and in the "Server" HTTP-Header.
server_tokens
off
;
ssl_certificate
$SSL_CERTIFICATE
;
ssl_certificate
$SSL_CERTIFICATE
;
ssl_certificate_key
$SSL_KEY
;
ssl_certificate_key
$SSL_KEY
;
include
/etc/nginx/nginx-ssl.conf
;
include
/etc/nginx/nginx-ssl.conf
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment