Shammer's Philosophy

My private adversaria

Apache

Using PHP on Debian apache2

I am using Debian and Apache2 in my test environment, just returning some text via http. In my purpose, I hope that apache2 returns timestamp and hostname and use python to do it. Here is a python script doing it. #!/usr/bin/env python fro…

Supporting SSL/TLS version changed on apache2

Adding SSLProtocol Directive to /etc/apache2/site-available/default-ssl like below. SSLProtocol +TLSv1 +TLSv1.1 +TLSv1.2I can add this config to apache 2.2.22.

First try OCSP Stapling on Debian Jessie but failed

This is a subsequent article of Apache 2.4 bundled as default on Debian Jessie - Shammerism. I tested enabling OCSP Stapling on Apache. A lot of sites tell the way how to configure apache to enable OSCP Stapling, for example How To Configu…

Apache 2.4 bundled as default on Debian Jessie

I'm using Debian wheezy mainly, but Debian Jessie's apache version seems to be 2.4. And this version supports OCSP Stapling. I wrote about OCSP before, one of them is OCSPの動作 - Shammerism, it has passed about 2 years. But, Jessie's apac…

Power Up SBCL CGI

I wrote a simple CGI script with SBCL in this article. But, I would like to include the host information into the http response. Then, I modified a little bit from above article implementation. Here is a new version. #!/usr/bin/sbcl --scri…

Hello World with SBCL CGI

This is the most simple CGI with SBCL. CGI source code is like below. #!/usr/bin/sbcl --script (format t "Content-Type:text/plain~%~%") (format t "Hello, SBCL CGI!!!~%") Generating /usr/lib/cgi-bin/default.l with above contents. And add ex…

Using IP address as Apache ServerName directive

This blog is a feedback to Shammerism. I would like to use IP address as Apache ServerName directive. This blog is steps how to use IP address as ServerName. Adding IP address to /etc/hosts Adding ServerName directive to /etc/apache2/site-…

Could not reliably determine the server's fully qualified domain name

When restarting apache2 in my VPS, this message is always output. Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName ... waiting apache2: apr_sockaddr_info_get() failed for XXXXXXXXXX mean…

UserCSS

Purpose I discovered a Safari extensions, named UserCSS. This enable to manage css per URL. I launch web server at my localhost, and I would like to apply my own style sheet for only localhost access. This extensions let me enable what I w…

Mavericks apache config

Before Mavericks, at least Lion, Mac Users make apache enabled by System Configuration. In particular, checking web sharing checkbox enabled apache on localhost. But web sharing checkbox is removed on Mavericks, this means the change how t…

How to change Apache error page on Debian?

This step is described at /etc/apache2/conf.d/localized-error-pages. # The internationalized error documents require mod_alias, mod_include # and mod_negotiation. To activate them, uncomment the following 37 lines. a2enmod alias(default en…

Install PHP5

I got a new VM yesterday, so I tried to install apache2 and php5. It is very easy. apt-get install apache2 apt-get install php5 configure php5 restart apache2 php test Install apache2 and php5 This is very simple. Exec following commands. …

Apache python inline CGI

Python sample code is here. This source code file extension should be .py and located in /usr/lib/cgi-bin/ directory and attached exec permission by chmod 755 ***.py(*** means file name). import cgi print "Content-Type: text/html" # This i…

MacにPukiWikiをインストール

なんかMAMPとかいうパッケージもあるようだが、ApacheとPHPはすでにインストールされているようなので、それを有効にしてそこにPukiWikiだけ追加するようにしてみました。OS再インストールとかに備えて手順をメモしておきます。1.Mac OS X にバンドルされ…

CLISP で CGI

Script としての clisp ファイル CLISP だと、ファイルの冒頭に #!/usr/bin/clisp とか(実際の CLISP のPATH)やって実行権限付与すれば、そのままスクリプトとして実行できる。ということは・・・CGI 書けるのでは?と思ってやってみた。 CGI サンプルファ…