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 .
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.
© 2024 OneMinuteCode. All rights reserved.