T
T
toha_man2018-04-04 19:36:41
Apache HTTP Server
toha_man, 2018-04-04 19:36:41

Why can't xampp see my site?

Good afternoon friends. For the second day I've been fiddling with xampp, denwer. The second one was finally abandoned. outdated. But here with xampp a similar problem came out.

In general, a fresh installation of xampp latest version. If you put the site in the htdocs/[domain name] folder, then when you access localhost/[domain name], everything is fine. But for debugging links, it is more convenient to have access to the site through localhost

. This is where the problem arises. You put the site in an empty htdocs folder and only html pages open. All images give this error (access.log):

::1 - - [03/Apr/2018:12:49:27 +0300] "GET /icons/bg/s.png HTTP/1.1" 404 1175 " localhost " "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36 OPR/52.0.2871.40"

although there are files in the icons / bg folder, of course. XAMPP is installed in C:\xampp, no matter how you write the path to the pictures (relative or absolute).

What's the problem then?
.htaccess is nowhere to be found, but even creating it and allowing access to everyone does not help.

Help me please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-04-04
@alexr64

If you put the site in the htdocs/[domain name] folder, then when you access localhost/[domain name], everything is fine.

In your Apache settings, the htdocs folder is specified as the root for the localhost virtual host.
Either that you need to reconfigure Apache, or that you need Все картинки дают такую ошибкуto write paths to all pictures relative to htdocs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question