Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17764

Running Python/C++ webapps under directory?

$
0
0

I'm a competent programmer with lots of user experience with Linux, including Bash/sed/grep/find/etc and using Gentoo for a year, but I'm not so knowledgeable about good practices, or even basic stuff, when it comes to real sysadmin.

What I want to do is write a few programs (Python or C++ or maybe Rust) and run them on my server like wesite.com/webapp1 and have my program get any requests at address. (Not sure how programs interface with the server. I'm guessing they get the HTTP header on stdin and then respond on stdout?)

The programs are really simple. One takes a signed message from a client and saves the IP of the sender. The other redirects to that IP. (I'm home brewing dynamic DNS, basically.)

I'm currently running Apache, but I'm totally open to using something else if there's good reason (simpler, safer, etc.).

What's the best way to go about this?

submitted by /u/MengerianMango
[link] [comments]

Viewing all articles
Browse latest Browse all 17764

Trending Articles