Adding a directory to Apache Server

I have a Windows XP system with XAMPP / Apache. I already have files on my external hard drive that I would like to serve without moving them to the same drive as installing Apache.

Here is what I have tried so far:

In the main HTTPD.conf file:

Alias ​​/ client_files D: / clients / files

<Directory D: / clients / files>

FollowSymLinks MultiViews Index Parameters

AllowOverride all

   Order Allow,Deny
        Allow from all

</ Reference>

But I got the only result:

Access is denied!

You do not have permission to access the requested object. It is either read-only or not readable by the server.

If you think this is a server error, contact the webmaster.

Error 403

local

Apache / 2.4.7 (Win32) OpenSSL / 1.0.1e PHP / 5.5.6

I also tried adding to the HTTPD-VHOSTS.conf file:

Server_name client_files

ServerAlias ​​client_files

DocumentRoot "D:/clients/files"

:

< VirtualHost *: 80 >

ServerAdmin webmaster@dummy-host.example.com

DocumentRoot "D:/clients/files"

_ client_files

ServerAlias ​​client_files

ErrorLog "logs/dummy-host.example.com-error.log"

CustomLog "logs/dummy-host.example.com-access.log"

</VirtualHost>

. Apache "localhost/client_files"?

?

: []

@Pedro Nunes , httpd.conf " ", , :

Alias ​​/client_files D:/clients/files

< D:// >

FollowSymLinks MultiViews

AllowOverride all

   Order Allow,Deny
        Allow from all

</ >

+4
2

Require all granted ? .

+9

, xampp. http://www.delanomaloney.com/2013/07/10/how-to-set-up-virtual-hosts-using-xampp/
, 127.0.0.1 C:/Windows/System32/drivers/etc/hosts

0

Source: https://habr.com/ru/post/1526273/


All Articles