T
T
toha_man2018-04-02 23:00:10
Apache HTTP Server
toha_man, 2018-04-02 23:00:10

Denver. Apache hitting the wrong root (/)?

Hi friends. I installed Denwer (Denwer3_Base_2013-06-02_a2.2.22_p5.3.13_m5.5.25_pma3.5.1_xdebug.exe) I put a
small site in the localhost / www folder. When accessing localhost, the site opens, but the pictures are not loaded. The pictures are in the localhost/www/icons/1.png folder, when accessed in the Apache logs, this is:
[Mon Apr 02 22:42:33 2018] [error] [client 127.0.0.1] File does not exist: Z :/usr/local/apache/icons/
tried to set DocumentRoot in the config, so
DocumentRoot "c:/WebServers/home/localhost/www"
did not change the result. I didn't touch the config at all.
why does apache look in /usr/local/apache ? How to specify the correct root for the site?
Thank you very much for your time
PS: (here is the contents of the vhosts.conf file):

spoiler

#
# ВНИМАНИЕ!
#
# Данный файл был сгенерирован автоматически. Любые изменения, внесенные в
# него, потеряются после перезапуска Денвера. Если вы хотите изменить
# параметры какого-то отдельного хоста, вам необходимо перенести
# соответствующий блок в httpd.conf (там написано, куда именно).
#
# Пожалуйста, не изменяйте этот файл.
#
# Host /home/localhost/www (1):
#
# НАЧАЛО ШАБЛОНА ВИРТУАЛЬНОГО ХОСТА.
#
# Если вы хотите по умолчанию запускать Apache на порту, отличном от 80,
# измените номер порта в следующей далее директиве.
#
Listen 127.0.0.1:80
NameVirtualHost 127.0.0.1:80
# DocumentRootMatch "/home/(?!cgi-)(.*)^1/(?!cgi$|cgi-)(.*)"
# DocumentRootMatch "/home/(?!cgi-)(.*)/public_html^1"
# DocumentRootMatch "/home/(?!cgi-)(.*)/public^1"
# DocumentRootMatch "/home/(?!cgi-)(.*)^1/html/(.*)"
# DocumentRootMatch "/home/(?!cgi-)(.*)^1/domains/(?!cgi$|cgi-)(.*)"
# DocumentRootMatch "/var/www/html/(?!cgi-)~(.*)^1/(?!cgi$|cgi-)(.*)"
DocumentRoot "Z:/home/localhost/www"
ServerName "localhost"
ServerAlias "localhost" "www.localhost"
ScriptAlias /cgi/ "/home/localhost/cgi/"
ScriptAlias /cgi-bin/ "/home/localhost/cgi-bin/"
# Host /home/localhost/www (2):
Listen 127.0.0.1:443
NameVirtualHost 127.0.0.1:443
SSLEngine on
DocumentRoot "Z:/home/localhost/www"
ServerName "localhost"
ServerAlias "localhost" "www.localhost"
ScriptAlias /cgi/ "/home/localhost/cgi/"
ScriptAlias /cgi-bin/ "/home/localhost/cgi-bin/"
# Host /home/custom/www (3):
Listen 127.0.0.2:8648
NameVirtualHost 127.0.0.2:8648
DocumentRoot "Z:/home/custom/www"
ServerName "custom"
ServerAlias "custom" "www.custom" custom-host
ScriptAlias /cgi/ "/home/custom/cgi/"
ScriptAlias /cgi-bin/ "/home/custom/cgi-bin/"
# Host /home/custom/www (4):
Listen 127.0.0.2:443
NameVirtualHost 127.0.0.2:443
SSLEngine on
DocumentRoot "Z:/home/custom/www"
ServerName "custom"
ServerAlias "custom" "www.custom" custom-host
ScriptAlias /cgi/ "/home/custom/cgi/"
ScriptAlias /cgi-bin/ "/home/custom/cgi-bin/"
# Host /home/localhost/subdomain (5):
#Listen 127.0.0.1:80
#NameVirtualHost 127.0.0.1:80
DocumentRoot "Z:/home/localhost/subdomain"
ServerName "subdomain.localhost"
ServerAlias "subdomain.localhost" "www.subdomain.localhost"
ScriptAlias /cgi/ "/home/localhost/cgi/"
ScriptAlias /cgi-bin/ "/home/localhost/cgi-bin/"
# Host /home/localhost/subdomain (6):
#Listen 127.0.0.1:443
#NameVirtualHost 127.0.0.1:443
SSLEngine on
DocumentRoot "Z:/home/localhost/subdomain"
ServerName "subdomain.localhost"
ServerAlias "subdomain.localhost" "www.subdomain.localhost"
ScriptAlias /cgi/ "/home/localhost/cgi/"
ScriptAlias /cgi-bin/ "/home/localhost/cgi-bin/"
# Host /home/test1.ru/subdomain (7):
#Listen 127.0.0.1:80
#NameVirtualHost 127.0.0.1:80
DocumentRoot "Z:/home/test1.ru/subdomain"
ServerName "subdomain.test1.ru"
ServerAlias "subdomain.test1.ru" "www.subdomain.test1.ru"
ScriptAlias /cgi/ "/home/test1.ru/cgi/"
ScriptAlias /cgi-bin/ "/home/test1.ru/cgi-bin/"
# Host /home/test1.ru/subdomain (8):
#Listen 127.0.0.1:443
#NameVirtualHost 127.0.0.1:443
SSLEngine on
DocumentRoot "Z:/home/test1.ru/subdomain"
ServerName "subdomain.test1.ru"
ServerAlias "subdomain.test1.ru" "www.subdomain.test1.ru"
ScriptAlias /cgi/ "/home/test1.ru/cgi/"
ScriptAlias /cgi-bin/ "/home/test1.ru/cgi-bin/"
# Host /home/test1.ru/www (9):
#Listen 127.0.0.1:80
#NameVirtualHost 127.0.0.1:80
DocumentRoot "Z:/home/test1.ru/www"
ServerName "test1.ru"
ServerAlias "test1.ru" "www.test1.ru"
ScriptAlias /cgi/ "/home/test1.ru/cgi/"
ScriptAlias /cgi-bin/ "/home/test1.ru/cgi-bin/"
# Host /home/test1.ru/www (10):
#Listen 127.0.0.1:443
#NameVirtualHost 127.0.0.1:443
SSLEngine on
DocumentRoot "Z:/home/test1.ru/www"
ServerName "test1.ru"
ServerAlias "test1.ru" "www.test1.ru"
ScriptAlias /cgi/ "/home/test1.ru/cgi/"
ScriptAlias /cgi-bin/ "/home/test1.ru/cgi-bin/"

My system is Windows 10

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
toha_man, 2018-04-03
@toha_man

Put xampp - the problem is gone
denver is outdated

V
Viktor Taran, 2018-04-03
@shambler81

I don’t understand at all why Denver, openserver https://ospanel.io/ closes 1000% of the task even for very demanding individuals. Just look at the screenshots and understand how far Denver is.
And instead of a virtual host, show it as your .HTACCES

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question