简体   繁体   中英

Folders redirection in apache

I have user files stored in a folder outside apache's documents root eg My project is in /var/www/ProjectName/ and the files are in local drive(D:\\users).

I want to be able to link to those files from within my project. i am using symfony(php framework).

I trying to change the setting in apache like this, But no luck

Alias /users/ "D:\\users" Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all

You have to update that in your httpd.conf or in your specified {name of your vhost}.conf .

Alias /users/ D:\users

Be sure to check the error log to see where here Apache tries to find the files.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM