The .htaccess file does not work! Help me please!
matveyb9 opened this issue · 2 comments
matveyb9 commented
Hello, dear developers! Thank you very much for your project lampTermux. Everything works except the .htaccess files. When running a project with a .htaccess file, it is either ignored or a 500 error is displayed. Help me please! Thanks You!
armandwipangestu commented
What if you change Apache configuration to this on httpd.conf
file?
- Load
rewrite_module
(uncomment to load the module)
LoadModule rewrite_module libexec/apache2/mod_rewrite.so
- Enable
AllowOverride All
tohtdocs
PATH
DocumentRoot "/data/data/com.termux/files/home/htdocs"
<Directory "/data/data/com.termux/files/home/htdocs">
...
AllowOverride All
Require all granted
</Directory>
Then you can try to restart the service apache
matveyb9 commented
Thank you very much. You helped me a lot!