web forward looks like not wor

web forward looks like not working.maybe check user input hostname
/^[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9].[a-zA-Z]{2,}$/

or run shell nginx -t -c test.config
before add.