Ganti index.php menjadi index.html untuk menghindari redirect loop PHP

This commit is contained in:
mwpn
2025-12-18 13:36:36 +07:00
parent 6b1de8830d
commit c4d4d65882
8 changed files with 22 additions and 12 deletions

View File

@@ -3,8 +3,9 @@
## Masalah
Dari curl test:
```
HTTP/2 302
HTTP/2 302
location: ../index.php
```
@@ -39,11 +40,13 @@ cat /etc/nginx/conf.d/retribusi.conf
```
Pastikan ada:
```nginx
root /www/wwwroot/retribusi.btekno.cloud/retribusi/public;
```
**BUKAN**:
```nginx
root /www/wwwroot/retribusi.btekno.cloud/retribusi; # SALAH!
```
@@ -79,4 +82,3 @@ Seharusnya sekarang tidak ada redirect 302 lagi.
- [ ] Nginx sudah di-reload
- [ ] Test curl tidak ada redirect 302
- [ ] Browser cache sudah di-clear