update logic and refactor code
This commit is contained in:
@ -61,27 +61,8 @@ backend/
|
||||
|
||||
3. **Ensure PHP and NGINX are configured**
|
||||
|
||||
NGINX config example:
|
||||
```bash
|
||||
server {
|
||||
listen 80;
|
||||
server_name *.lxdapp.local;
|
||||
Check in backend/nginx.conf
|
||||
|
||||
root /var/www/html/lxd-app/backend/public;
|
||||
index index.php;
|
||||
|
||||
location / {
|
||||
try_files $uri /index.php?$query_string;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass unix:/run/php/php8.4-fpm.sock;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_read_timeout 300;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
4. **Map domain in /etc/hosts**
|
||||
|
||||
Reference in New Issue
Block a user