我有一个laravel应用程序,我试图delpoy到数字海洋服务器 . 我已将公共目录chmod到 var/www/myapp/ 中的777并将根目录设置为

/ var / www / myapp / public /在启用站点的配置文件中 .

但我只能访问应用程序中的默认 / 路由 .

这就是conf文件现在的样子

ServerAdmin webmaster@localhost
        DocumentRoot /var/www/schoolcms/public/

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        <Directory /var/www/schoolcms/public/>
                Options Indexes FollowSymLinks
                AllowOverride All
                Require all granted
        </Directory>
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

如果有人告诉我如何解决这个问题会很棒 . 顺便说一下,我在ubuntu 14.04上