Search code examples
laravel-valet

how to use Valet server with a port different from 80?


Do you know of any way to run Valet on a port other than 80? I need it because it's going to conflict with MAMP (and don't want to change MAMP ports).


Solution

  • No answer here... Anyway I'm answering by myself... One way is just proxying:

    valet proxy [mydirectory] http://127.0.0.1:[any port]
    

    https://laravel.com/docs/8.x/valet#proxying-services