CakePHP without a domain name

I installed my raspberry Pi 2 using nginx, php, mysql and installed cakePHP with composer.

The cakePHP landing page now looks weird. I assume this problem is related to my vgin nginx configuration. (Conf with vhost works, loading CSS files)

Question: can I use cake without vhost conf?

The route is installed in the appropriate folder:

$ routes-> connect ('/ test /', ['controller' => 'Pages', 'action' => 'display', 'home']);

Regards,

Phil

0
source share
1 answer

Solved the problem by adding these lines to the / etc / nginx / sites -enabled / default conf-file:

location /test/ {
        alias /usr/share/nginx/www/test/webroot/;
}
0
source

All Articles