M
M
MrFlatman2018-01-11 15:23:37
Apache HTTP Server
MrFlatman, 2018-01-11 15:23:37

Forbidden You don't have permission to access / on this server on a local server?

Hello everyone, I can’t put access to the root with projects
in httpd-vhosts.conf the path is registered

<VirtualHost *:80>
    DocumentRoot "D:\Server\data\htdocs"
    ServerName localhost
    ServerAlias www.localhost
    <Directory D:\Server\data\htdocs>
     AllowOverride All
   Require all granted
    </Directory>
</VirtualHost>

But when I go to localhost
I get
You don't have permission to access / on this server.

What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Dubrovin, 2018-01-11
@MrFlatman

https://wiki.apache.org/httpd/DirectoryListings
Either set index files or enable directory listing if you want visitors to see the directory listing.
+ Paths must be specified with forward slashes, not backslashes, i.e.
D:/Server/data/htdocs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question