outmoded / discuss

The "mailing list"
99 stars 9 forks source link

server.events not firing with vhost #810

Closed zombiestruck closed 5 years ago

zombiestruck commented 5 years ago

server.events.on('request', (request, event, tags) => { console.log(request.path) } The code posted usually will output the requested URL, but when using a vhost it does not.

zombiestruck commented 5 years ago

Found the solution. When using vhost to get a request you must use the directory handler.