|
|
@ -32,6 +32,7 @@ http {
|
|
|
|
server_name localhost;
|
|
|
|
server_name localhost;
|
|
|
|
|
|
|
|
|
|
|
|
location / {
|
|
|
|
location / {
|
|
|
|
|
|
|
|
#proxy_set_header Host $host:$server_port;
|
|
|
|
proxy_pass http://localhost:5001/;
|
|
|
|
proxy_pass http://localhost:5001/;
|
|
|
|
if ($http_user_agent ~* "(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino") {
|
|
|
|
if ($http_user_agent ~* "(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino") {
|
|
|
|
#rewrite ^(.*) http://localhost:5002$1 permanent;
|
|
|
|
#rewrite ^(.*) http://localhost:5002$1 permanent;
|
|
|
|