A
A
Alexander2017-05-31 16:25:38
Apache HTTP Server
Alexander, 2017-05-31 16:25:38

How to change file directory location in Apache?

Good day to all.
There is a site located here /var/www/httpd/site
Inside the site directory there is a soft folder. If you enter site.ru/soft in the browser, then we naturally display the directory of files that are in the soft folder.
I want this soft folder to be physically located here /mnt/soft and of course be available at the above address.
If in Wirth. hosts, for example:

Alias /soft /mnt/soft
<Location /mnt/soft>
       Options Indexes
</Location>

Then, when you try to go to the specified address, it swears at access rights, although the rights to the folder are set to full. How to make Apache able to access directories OUTSIDE of the site directory?
Of course, I went the other way, I made SymLink to /mnt/soft in the site folder, but this option is also not particularly suitable, since this folder works for me via webdav and with authorization, and if webdav flies, the directory will be available to everyone, since the link is still stored inside the site directory.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2017-05-31
@shambler81

Make a soft linkln

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question