Apache download files






















The restrictions? No FTP and — more important — no database. And no programming involved. Sounds impossible? Well no, thanks to the directory listing and the fancyindexing feature of the Apache web server you can create a quite beautiful download site for each individual customer.

Results first:. The results can be quite stunning when you know your way around with HTML and CSS, but the more important fact is: we did use the Apache webserver for the result only.

No database, no t too much coding, no FTP server involved. I promise. Active 6 years, 7 months ago. Viewed 29k times. In the file, I had this string: This is a test file. Improve this question. Lightn1ng Lightn1ng 1 1 gold badge 2 2 silver badges 5 5 bronze badges. Add a comment. Active Oldest Votes. Improve this answer. Community Bot 1. Kresimir Pendic Kresimir Pendic 1, 9 9 silver badges 12 12 bronze badges. Sign up or log in Sign up using Google.

Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. I guess I should also be using SSL. Back to top. Anaksunaman Joined: 19 Dec Posts: Directly accessing files in the URL, as in your example, should work automatically.

No additional configuration should be necessary. If you wish to serve the file via SSL, make sure Apache is capable and set-up to run an SSL website, and then serve the file from a link to that site e. Bismarck Bismarck 1 1 silver badge 8 8 bronze badges. In your php solution, you'd be better to swap your conditional if! It's as simple as adding an alias directive within your apache config. Progrock Progrock 6, 1 1 gold badge 16 16 silver badges 25 25 bronze badges.

Chris Hawkes Chris Hawkes Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown.

The Overflow Blog. Podcast what if you could invest in your favorite developer?



0コメント

  • 1000 / 1000