开发者

Folders redirection in apache

开发者 https://www.devze.com 2023-02-06 19:44 出处:网络
I have user files stored in a folder outside apache\'s documents root e.g. My project is in /var/www开发者_Go百科/ProjectName/ and the files are in local drive(D:\\users).

I have user files stored in a folder outside apache's documents root e.g. My project is in /var/www开发者_Go百科/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.

0

精彩评论

暂无评论...
验证码 换一张
取 消