Create a new site on the forge server called sub.domain.com and install your laravel app there. (you won't need to put it in domain.com/subfolder/public) In your dns settings point the address sub.domain.com to the IP address of your server.
Feb 22, 2018
3
Level 8
Nginx redirect folder after moving from shared server to forge - subfolder redirect to subdomain
so on the shared server i have laravel on domain.com/subfolder/public .
on forge with the domain A record , * and www pointing to a forge site, how would you redirect traffic from domain.com/subfolder/public to subfolder.domain.com with nginx config on forge? (main domain.com is gonna be static html)
ssh in and vim /etc/nginx/sites-available/domain.com but from there im lost with nginx
sounds unusual, but i have a mobile app in development pointing to the subfolder
Please or to participate in this conversation.