uHTTPd .htaccess

Hello friends:
i have this problem i have a .htaccess file with these rules:
RewriteEngine on
RewriteCond% {REQUEST_FILENAME}! -F
RewriteCond% {REQUEST_FILENAME}! -D
RewriteRule ^ (. *) $ Index.php? / $ 1 [L]

i am using uHTTPd server
I would like to know with applying this rules there.

uhttpd is a small webserver, its primary purpose is to be and remain small, just enough to get luci running - it doesn't support .htaccess.

2 Likes

@slh

Ok thanks, I can't install apache

I'm using :

opkg update
opkg install apache

Edit /etc/apache/httpd.conf

Listen 192.168.1.1:82

ServerName
127.0.0.1:82

when I go to 192.168.1.1:82 nothing appears from me

can you help me install apache correctly?

There are instructions in the wiki about how to install alternative webservers, while retaining luci functionality.

1 Like

@slh

can you tell me where?
link please

https://openwrt.org/docs/guide-user/services/webserver/http.apache

Feel free to use the search feature on the WIki.

2 Likes

nginx is also an option with v19 or snapshot/master builds. luci-ssl-nginx

See also https://openwrt.org/docs/guide-user/luci/luci.essentials

3 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.