T
T
thatside2015-07-30 17:47:48
Apache HTTP Server
thatside, 2015-07-30 17:47:48

Why does the configured virtual host display the content of the directory one level up instead of the site?

I have an Ubuntu 14.04 VM in VirtualBox. I set up a host for the project on Silex, the settings are completely basic. But at first there was a problem with the fact that when opening the address, the default Apache page was opened, and now, when opening the address, the listing of the directory is opened one level higher (/var/www, and the site is in /var/www/site.local). When you open a "folder" with a project in this listing, you get a url like site.local/site.local and silex throws a 404 error. What could be the reason?
UPD: Apache config is here

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Michael, 2015-07-30
@nextel

in that it is necessary to attach the apache config)

A
Andrey Burov, 2015-07-30
@BuriK666

DocumentRoot is invalid

T
thatside, 2015-07-30
@thatside

I figured it out: you need to use directives not of the form NameVirtualHost karusel.local:80 and VirtualHost karusel.local:80, but substitute *:80 instead.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question