Sometime you may want to be able to “switch off” some web-application for particular reasons e.g. spamflooding or abuse of a REST service but you may want to enable information retrieval.
Most web applications like wordpress, mediawiki or other web 2.0 applications follow RFC 7231 where GET is defined as the primary method for information retrieval (RFC 7231, 4.3.1). Somewhere is defined that GET SCHOULD NOT be used for changing information (deleting, writing).
Just put something like this in your apache config (in VirtualHost):
# deny everything but GET
Deny from all
- How do I edit current shell command in VI
- Answer 1
- emacs-mode: Ctrl+X Ctrl+E
- Answer 2
- vi-mode: [Esc][v]
Source: bash – How do I edit current shell command in VI – Ask Different
sm-mta: STARTTLS=server: file /etc/mail/certs/dh.param unsafe: No such file or directory
cd /etc/mail/certs && openssl dhparam -out dh.param 4096
Source: Sendmail Error at Boot
You have a FreeBSD VPS with a single IP and you wish to create a FreeBSD jail for additional security and/or isolation. For this write up I’ll illustrate how you can use a single VPS with a jail create on an internal IP with both NAT access and port-forwarding to the jail for specific ports (web, ssh, etc).
Source: FreeBSD Jail with Single IP » KBeezie
My private server is hosted at a small company in munich. This server is currently running FreeBSD 11.0-RELEASE and has around 15 Jails running on it, most of them Apache Webserver with PHP application servers running some websites or blogs like this one and some other jails for major internet services like dns, mail, proxy server, shell server and some internal infrastructure jails (mysql, ssl/acme management, git, …) Continue reading “private server”
About this blog
This blog will be about tech topics I want to write something about.
Continue reading “Hello, world!”