htaccess with appserver (node)

#1
Hi,

Is it possible to read .htaccess rules when using node?

I tried here, but it didn't work. Setting the same rules on a rewrite{} block on vhost.conf it worked as expected...

Maybe I'm doing something wrong? Can someone please test too? :)
 
#2
Hi @paulozlx ,

If you use context method, you can try:
Go to your openlitespeed web admin -> Virtual host -> context ,e.g. `/`
- Set Enable Rewrite to `Yes`
- Set Rewrite Rules to `rewriteFile /usr/local/lsws/Example/html/.htaccess`

Feel free to replace your own .htaccess file path, then do a graceful restart.

Best,
Eric
 
Top