Update docs: add here document example, also simplify/correct nginx/lighttpd docs and remove redundant lines; add here document to web page

This commit is contained in:
Theo
2013-07-28 17:08:35 -05:00
parent 937753ff4d
commit 32d0bb9663
3 changed files with 6 additions and 7 deletions
+3
View File
@@ -20,6 +20,9 @@ Paste from STDIN:
~$ echo "hi" | 6p
Paste from here document:
~$ cat << EOF | 6p
The oneliner for in your .bash_profile:
6p() { curl -s -F "content=<${1--}" -F ttl=604800 -w "%{redirect_url}\n" -o
+2 -6
View File
@@ -2,9 +2,7 @@ LIGHTTPD INSTALL
- Configure your Lighttpd web server with PHP FastCGI and OpenSSL support - 6paster requires HTTPS to work.
- Add the server configuration example that you find at 'lighttpd/lighttpd-conf.txt' to your Lighttpd configuration file.
- Copy the 'lighttpd/index.php' to the 'webroot/' directory of your 6paster installation.
- Add the server configuration example that you find at 'server-conf/lighttpd-conf.txt' to your Lighttpd configuration file.
- Reload the Lighttpd process.
@@ -12,9 +10,7 @@ NGINX INSTALL
- Configure your NGINX web server with PHP FastCGI and OpenSSL support - 6paster requires HTTPS to work.
- Add the server configuration example that you find at 'nginx/nginx-conf.txt' to your NGINX configuration file.
- Copy the 'webroot/index.php' to the 'webroot/' directory of your 6paster installation.
- Add the server configuration example that you find at 'server-conf/nginx-conf.txt' to your NGINX configuration file.
- Reload the NGINX process.
+1 -1
View File
@@ -17,7 +17,7 @@
<br/>
<input value="Save" type="submit"/>
<div class="text">
Hint: put the following oneliner in your .bashrc to use "6p &lt;file&gt;" or "echo hi | 6p" (thanks, Habbie and Reinhart):<br><br>
Hint: put the following oneliner in your .bashrc to use "6p &lt;file&gt;" or "echo hi | 6p" or "cat << EOF | 6p" (thanks, Habbie and Reinhart):<br><br>
<code>6p() { curl -s -F "content=<${1--}" -F ttl=604800 -w "%{redirect_url}\n" -o /dev/null <?=htmlspecialchars($config['server_name'])?> }</code>
</div>
</form>