Can you make a file downloadable through Apache? -


path = /var/lib/foo.txt

is possible configure apache there http url initiate download of file , how? without .htaccess file.

and url then? localhost/var/lib/foo.txt?

it's simple adding alias directive within apache config.

alias '/bar' '/path/to/foo' 

then you'd access resource publicly via http://example.com/bar.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -