i am on laravel 8, php 8.1.29 and i am trying to move my current progject from php-fpm to laravel octane, follwoing the instructions from laravel documentations i am able to install and enable octane with swoole, but i am facing an issue, like i am not able to open web pages (apis are working fine), when i try with url on browser "domain.com" it show a popup to download index.php from public folder.
i am using following conf in nginx
default upgrade;
'' close;
}
server {
listen 80;
listen [::]:80;
server_name domain.com;
server_tokens off;
root /home/dir/public;
index index.php;
location /index.php {
try_files /not_exists @octane;
}
location / {
try_files $uri $uri/ @octane;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
access_log off;
error_log /dir/to/error/log;
error_page 404 /index.php;
location @octane {
set $suffix "";
if ($uri = /index.php) {
set $suffix ?$query_string;
}
proxy_http_version 1.1;
proxy_set_header Host $http_host;
proxy_set_header Scheme $scheme;
proxy_set_header SERVER_PORT $server_port;
proxy_set_header REMOTE_ADDR $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_pass http://127.0.0.1:8000$suffix;
}
}

php artisan octane:start --server=swoole --host=0.0.0.0 --port=8000run the command and use proxypass with nginx upstream not ` root /home/dir/public; index index.php; `