A
A
awe2017-05-07 12:22:30
Apache HTTP Server
awe, 2017-05-07 12:22:30

Why is the home page not opening?

Used by OpenServer with manual domain lookup. The domain is associated with the public folder:
Contents of httpd.conf:

<VirtualHost *:80>
DocumentRoot    "e:/openserver/domains/laravel.loc/public"
ServerName      "laravel.loc"
ServerAlias     "laravel.loc" 
ScriptAlias     /cgi-bin/ "e:/openserver/domains/laravel.loc/public/cgi-bin/"
</VirtualHost>

In the browser, when accessing laravel.loc, the address laravel.loc/public opens with the error:
Sorry, the page you are looking for could not be found.
1/1 NotFoundHttpException in compiled.php line 7693:
Although if you explicitly specify the address laravel.loc/index.php then everything works.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Twelfth Doctor, 2017-05-07
@awe

Maybe because you did not specify the DirectoryIndex directive in the config?

<VirtualHost *:80>
DocumentRoot    "e:/openserver/domains/laravel.loc/public"
ServerName      "laravel.loc"
ServerAlias     "laravel.loc" 
ScriptAlias     /cgi-bin/ "e:/openserver/domains/laravel.loc/public/cgi-bin/"
DirectoryIndex index.php
</VirtualHost>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question