I instaled lumen with default settings and add virtual host www.localhost.com to apache2. When I type http://localhost.com browser show word "Lumen" - lumen work.
I create another route "/test" but it is not working when type http://localhost.com/test
All settings are default
routes.php:
$app->get('/', function () use ($app) {
return $app->welcome();
});
Create a virtual host named lumen. What server are you running?
<VirtualHost lumen:80>
ServerName lumen
DocumentRoot "/Users/jimm/GitHub/lumen/public"
</VirtualHost>
<Directory "/Users/jimm/GitHub/lumen/public">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Require all granted
# onlineoffline tag - don't remove
Order Deny,Allow
#Deny from all
Allow from all
Allow from 127.0.0.1
#Allow from ::1
Allow from localhost
Allow from lumen
</Directory>
#########ADDED #####################
<Directory "/var/www/html/cpf_WebService/public/">
AllowOverride All
Order allow,deny
Allow from all
##############################