Support the ongoing development of Laravel.io →
posted 10 years ago
Configuration

Is it possible to run as in the tree below?

└─> tree /var/www/  -L 3
/var/www/
└── html
    ├── app1
    │   ├── app
    │   ├── artisan
    │   ├── bootstrap
    │   ├── composer.json
    │   ├── composer.lock
    │   ├── config
    │   ├── database
    │   ├── gulpfile.js
    │   ├── package.json
    │   ├── phpspec.yml
    │   ├── phpunit.xml
    │   ├── public
    │   ├── readme.md
    │   ├── resources
    │   ├── server.php
    │   ├── storage
    │   ├── tests
    │   └── vendor
    ├── app2
    │   ├── app
    │   ├── artisan
    │   ├── bootstrap
    │   ├── composer.json
    │   ├── composer.lock
    │   ├── config
    │   ├── database
    │   ├── gulpfile.js
    │   ├── package.json
    │   ├── phpspec.yml
    │   ├── phpunit.xml
    │   ├── public
    │   ├── readme.md
    │   ├── resources
    │   ├── server.php
    │   ├── storage
    │   ├── tests
    │   └── vendor
    └── app3
        ├── app
        ├── artisan
        ├── bootstrap
        ├── composer.json
        ├── composer.lock
        ├── config
        ├── database
        ├── gulpfile.js
        ├── package.json
        ├── phpspec.yml
        ├── phpunit.xml
        ├── public
        ├── readme.md
        ├── resources
        ├── server.php
        ├── storage
        ├── tests
        └── vendor   

I am not sure if this could be done with virtual hosts? What is the simplest way to accomplish this? Please let me know if you have any questions.

Last updated 3 years ago.
0

Yes use virtual hosts - for each app point the virtual host to the public folder as all others should be above this

0

Could you or someone else provide a simple example of a host file that would work? I have tried quite a few configurations with no success.

Please note I would like access each site from another machine on my lan such as

http://10.0.0.30/app1
http://10.0.0.30/app2
http://10.0.0.30/app3

and have each return as separate larval instances.

Last updated 10 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

pemby pemby Joined 6 Jul 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.