I want to separate apps by subdirectory, not subdomains

Asked 2 years ago, Updated 2 years ago, 63 views


in Apache 2.4 /var/www/html/larvel (includes Ravel 5.1
) /var/www/html/cakephp with CakePHP 3.2

When placed like this,

http://example.com/laravel
http://example.com/cakephp

Would it be possible to access it as shown in ?

http://example.com/laravel/public/
There is no problem if there is a segment at the back as shown in .

cakephp apache laravel

2022-09-29 21:52

1 Answers

Yes.

However, since installing an application directly under DocumentRoot may result in access to files that should not be published, Cisco recommends installing the application elsewhere and bringing each public directory (public, webroot) to DocumentRoot via symbolic link.

/var/www/larvel
/var/www/cakephp

Assume that you installed the application itself on the .

 ln-s/var/www/larvel/public/var/www/html/larvel
ln-s/var/www/cakephp/webroot/var/www/html/cakephp

In , create a symbolic link.


2022-09-29 21:52

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.