-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* first test * add argv for config parsing, mutiple listen ports possible
- Loading branch information
Showing
6 changed files
with
60 additions
and
55 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
http { | ||
gobalsetting test; | ||
server { | ||
listen 8888; | ||
server_name 0.0.0.0; | ||
index index.html; | ||
root www; | ||
error_page ./data/404.html; | ||
location /files { | ||
root .; | ||
auto_index on; | ||
} | ||
} | ||
server { | ||
listen 8888; | ||
server_name 0.0.0.0; | ||
index index.html; | ||
root www; | ||
error_page ./data/404.html; | ||
location /files { | ||
root .; | ||
auto_index on; | ||
} | ||
} | ||
server { | ||
server_name 0.0.0.0; | ||
port 4444; | ||
404 ./data/404.html; | ||
client_max_body_size 100000; | ||
location { | ||
root ./www; | ||
auto-index true; | ||
allow-method get; | ||
} | ||
} | ||
server { | ||
server_name 0.0.0.0; | ||
port 8888; | ||
404 ./data/404.html; | ||
client_max_body_size 100000; | ||
location { | ||
root ./www; | ||
auto-index true; | ||
allow-method get; | ||
} | ||
} | ||
} | ||
|
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
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