fix regex and add sample nginx conf