~/public_html directory is served at:
static content are served normally, but there are also some dynamic options:
- cgi scripts: name it whatever you want and place the executable file in
make sure the scripts have the correct shebang, is set as executable and prints the content type header first.
#!/usr/bin/sh printf "Content-type:text/plain\r\n\r\n" echo "hello!!!"
(you can of course write html in your cgi script too)
#!/usr/bin/env python3 print("Content-type:text/html\r\n\r\n") print("<h1>this is a header</h1>")
<!DOCTYPE html> <html> <body> <h1>here's a header</h1> <?php echo "this will be shown"; ?> </body> </html>
you can use your
public_html to write a blog! check out the blogs page for more info.