Publish the current directory on the web server

When you can't do ssh or rsync, but still want to quickly share and retrieve files. Most modern Unixes will have Python.

$ python -m SimpleHTTPServer

When specifying a port:

$ python -m SimpleHTTPServer 20000

After that, wget or curl from the side you want to get, as you like.

Recommended Posts

Publish the current directory on the web server
Start the web server in the current directory
Execute the command on the web server and display the result
Test.py is not reflected on the web server in Python3.
Image Optimize on the server side using TinyPNG's Web API
[Python] Check the current directory, move the directory
Notes on using matplotlib on the server
Command for the current directory Python
Insufficient var space on the mail server
Download files on the web with Python
Build a web server on your Chromebook
Current directory structure
Run the task in the background on the sshed server
Pipfile is not created in the current directory
Drawing tips with matplotlib on the server side
Regularly monitor the HTTP response of the web server
Have pandas read the zip file on the web
Mount a directory on another server with sshfs
Remotely open Jupyter notebook launched on the server
Unzip all zip files under the current directory
[Python3] Take a screenshot of a web page on the server and crop it further
I tried studying on the WEB server side at an in-house Python study session
The most crude CORS support method on aiohttp Server
[CentOS 7.3] Build an FTP server on the ESXi host
Until the web application is released on Sakura VPS
How to know the current directory in Python in Blender
[Part 2] Let's build a web server on EC2 Linux
Install django on python + anaconda and start the server
Web server construction commentary
One Liner Web Server
Ubuntu (18.04.3) Web server construction
Merry Christmas web server
Access the host SQL Server with python27 / pyodbc on the container
[Introduction to AWS] A memorandum of building a web server on AWS
When you access the web server, L Chika with Arduino
To disable the browser cache on Python's simple HTTP server
Save images on the web to Drive with Python (Colab)
Flask Web server cannot be published to the outside [VScode]
Install the latest version of Git on your Linux server
Run the output code on the local web server as "A, pretending to be B" in python