http-server icon indicating copy to clipboard operation
http-server copied to clipboard

Serve multiple directories

Open yfr opened this issue 10 years ago • 5 comments

Is it possible to serve multiple directories?

yfr avatar Mar 18 '15 15:03 yfr

  • it will be very useful possibility to configure simple aliases for eg.: /js => ./static/js

marlic7 avatar Oct 28 '15 12:10 marlic7

Is there already a way to just serve everything on a subdirectory?

Phlogi avatar Nov 03 '15 14:11 Phlogi

@Phlogi what do you mean by that?

derhuerst avatar Nov 03 '15 21:11 derhuerst

like this: domain.com/myservice/, i.e. adding a subfolder.

Phlogi avatar Nov 04 '15 06:11 Phlogi

AFAIK, it's not possible with http-server out of the box.

ecstatic, the core behind http-server, provides an option baseDir.

derhuerst avatar Nov 04 '15 08:11 derhuerst