-
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new: added http.vhost virtual host enumeration
- Loading branch information
1 parent
6438347
commit c5f6c71
Showing
7 changed files
with
112 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
server { | ||
listen [::]:80; | ||
listen 80; | ||
server_name public.company.com; | ||
|
||
sendfile off; | ||
tcp_nodelay on; | ||
absolute_redirect off; | ||
access_log off; | ||
error_log off; | ||
|
||
root /var/www/html; | ||
index index.html; | ||
|
||
# Redirect server error pages to the static page /50x.html | ||
error_page 500 502 503 504 /50x.html; | ||
location = /50x.html { | ||
root /var/lib/nginx/html; | ||
} | ||
|
||
# Deny access to . files, for security | ||
location ~ /\. { | ||
log_not_found off; | ||
deny all; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
server { | ||
listen [::]:80; | ||
listen 80; | ||
server_name internal.company.com; | ||
|
||
sendfile off; | ||
tcp_nodelay on; | ||
absolute_redirect off; | ||
access_log off; | ||
error_log off; | ||
|
||
root /var/www/secret; | ||
index index.html; | ||
|
||
# Redirect server error pages to the static page /50x.html | ||
error_page 500 502 503 504 /50x.html; | ||
location = /50x.html { | ||
root /var/lib/nginx/html; | ||
} | ||
|
||
# Deny access to . files, for security | ||
location ~ /\. { | ||
log_not_found off; | ||
deny all; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Public vhost |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
clear && docker run \ | ||
-p 8888:80 \ | ||
-v `pwd`/http-vhost:/var/www/secret \ | ||
-v `pwd`/http-vhost.html:/var/www/html/index.html \ | ||
-v `pwd`/http-vhost-public.conf:/etc/nginx/conf.d/public.conf \ | ||
-v `pwd`/http-vhost-secret.conf:/etc/nginx/conf.d/secret.conf \ | ||
trafex/php-nginx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Secret internal vhost! |