Apache
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…
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.
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…
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…
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…
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…
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-…
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…
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…
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…
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…
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. …
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…
なんかMAMPとかいうパッケージもあるようだが、ApacheとPHPはすでにインストールされているようなので、それを有効にしてそこにPukiWikiだけ追加するようにしてみました。OS再インストールとかに備えて手順をメモしておきます。1.Mac OS X にバンドルされ…
Script としての clisp ファイル CLISP だと、ファイルの冒頭に #!/usr/bin/clisp とか(実際の CLISP のPATH)やって実行権限付与すれば、そのままスクリプトとして実行できる。ということは・・・CGI 書けるのでは?と思ってやってみた。 CGI サンプルファ…