P
P
Pcprto2019-08-14 08:01:19
Apache HTTP Server
Pcprto, 2019-08-14 08:01:19

Why does apache refer to a different directory?

In the Apache logs, the site refers to a shared folder. I don't know which direction to google for this issue.
ErrorFile does not exist: /var/www/html/test/1.txt
Trying to navigate
example.ru/test/1.txt
Created a folder in the site folder /var/www/html/example.ru/test/1.txt
In httpd.conf

DocumentRoot /var/www/html/example.ru/
    <Directory /var/www/html/example.ru/>

Why on the general one and where to set it up so that the site refers only to its own folder example.ru?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2019-08-14
@shambler81

you made the settings in the first default file, this is a trap for "all" domains, in fact everything except private
ones is /dev/null
You need to make a config for a special case. (a colleague gave you an example above)
and use the first config for those who made a mistake and write there hello the server sees you but there is no such domain.
And even better put admin panels so that there are a million of them
working
1. vestacp (set by script)
2.ispconfig3 (I use it, but you need to be able to set it)
3.bitrix vm - console control face (but convenient), set by script
4. brainycp - excellent functionality is not a convenient admin panel.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question