Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save KenTai945/c7cd168008459e80d4dcfc590801364e to your computer and use it in GitHub Desktop.
Save KenTai945/c7cd168008459e80d4dcfc590801364e to your computer and use it in GitHub Desktop.

How to download file from Apache server by URL

tags: URL Apache
  • Environment
    • ubuntu virtualbox 14.04
    • Apache/2.4.7(ubuntu)
  • Steps
  1. Install Apache2
sudo apt-get install apache2
  1. Put your file into path: var/www/html
sudo cp yourFile /var/www/html/yourFile
  1. Access your file with the following link
http://your-ip-address/yourFile
  1. So, download it from wget utility
wget http://your-ip-address/yourFile

DONE!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment