CentOS 7 Share a file on my network so anyone can download it

Leon

I wanted to share a tar file on my server so that anyone on my network can download it. For example, I would give them a link like

192.168.2.2/windows.tar

They should be able to download it from their web browser with that link or

wget 192.168.2.2/windows.tar

does anyone have any suggestion on what package I can use to approach this. Tutorials would be even better!

unclesmrgol dragon

There are two possible packages to use -- httpd, or nginx. Both are provided by CentOS 7.

httpd is better known as Apache Web Server, and its documentation is available by googling "centos 7 httpd"

nginx is a much smaller and lighter web server, and its documentation is available by googling "Centos 7 nginx

Either one will do a perfectly good job handling the requirements you've specified.

Hint: You will place your "windows.tar" file into a specified server directory. What you also want to do to prevent accessors from seeing any other content you might have in that directory is to "touch index.html" there. This will make a zero-length file which will prevent the nginx or httpd default splash screen from displaying, and won't give away the software you are using -- which hackers want to know if they decide to target your server.

But do all of that after you've installed your preferred product. You'll do something like this link (in your favorite web browser): http://192.168.2.2/

What that should do is to show you the default splash screen. At that point, once you have the splash screen visible, you can add your content to replace it.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Is any way can download file from Azure File(not blob) share by powershell

My Jenkins on CentOS7 can't access...why?

Network file share access in .NetCore

Does anyone know why res.download is giving my download file a random name each time?

Google Built CentOS Image - Anyone have a download for this?

Faster way to access a file on a Windows 7 network share?

Can I share my tarsnap key file between machines?

If I begin a mass file deletion on a network share folder, what is the load on my local PC and what is the load on the network share PC/device?

im trying to format my json file using d3.json(). Can anyone help me

What file sharing sites do you "personally" recommend so my VB.net application can download an update?

Date Picker is not working on my jsf and xhtml file can anyone guide me please

Mount network storage to Axis camera using Windows 7 file share

Why can't I log in to my Samba share on my home network?

Can't boot the CentOS 7 that is installed on my USB on other computers

Centos7 How to identify Network Device name for a kickstart file

Creating a link that will allow anyone with the link to download a file

Can't download a certain large file - error: Failed - Network Error

How can I download OpenJDK 1.8 in a Centos machine and use the tar file to install Java in another Centos Machine

Download a file from a share download link with wget

Why can't I mount my network drive? (CentOS7)

(URGENT) How to change permissions and access on a Samba Network Share hosted on CentOS7?

How can you broadcast a network share (ftp/sftp/webdav) so that it shows up in nautilus for other users

Can anyone help me to write a bash script to list all ip address in network and save in a file?

How can I share my Google Calendar with my wife so she can see all event details?

Can I manually download a vagrant box file and use it? If so , how?

Trying to change gradle file so 2 apps can share code

Can anyone simplify my razor page code .its contains so many repetitive codes

How to quickly move file on network share to subfolder on same network share?

verifying network is or is not reaching my server through CentoS 7 Logs