Apache

Apacheエラーログ Malformed UTF-8 character (byte 0xff) in eval "string" at (eval **) line *

プログラム my $komoji = 'aiueoAIUEO0123456789,./%-'; print "komoji : ".$komoji."<br>"; my $oomoji = Jcode->new($komoji)->tr('a-zA-Z0-9-!(),./%%','a-zA-Z0-9!−(),./%')->sjis; print "oomoji : ".$oomoji."<br>"; Apacheエラーログ Malformed …

.htaccess出条件にマッチしたらRewriteさせない

indexファイルだったらRewriteさせない RewriteRule ^index.html$ - [L]

robots.txtでクローリングを全拒否

ドキュメントルート直下でrobots.txtを作成 User-agent: * Disallow: /

ある特定のUser-Agentをアクセス許可をし、リライトさせる

<Directory /> SetEnvIf User-Agent "hoge" AllowUserAgent Allow from env=AllowUserAgent Deny from all RewriteCond %{HTTP_USER_AGENT} "hoge" RewriteRule (^$|index.html) http://www.hoge.com/hoge/ [L] </Directory>http://d.hatena.ne.jp/zabadaq/20080313/1205423510 【iPho…

Apache色々

cgi-bin http://www.futomi.com/lecture/apache/config.html Alias http://www.adminweb.jp/apache/docroot/index3.html Rewrite http://memorva.jp/memo/linux/mod_rewrite.php http://tech.bayashi.net/svr/doc/apache/mod_rewrite.html http://tech.bayas…

apacheの出力ログ形式をcommonからcombinedに変更する

#vi /usr/local/apache/conf/httpd.conf CustomLog "logs/access_log" combined http://vine-linux.ddo.jp/linux/apache/accesslog.php http://pmakino.jp/tdiary/20070907.html http://tech.n-linux.com/index.php?%A5%C6%A5%AF%A5%CB%A5%AB%A5%EB%A5%CE%A1…

Apacheの実行ユーザー変更

ユーザ追加 useradd hogehoge -g users confファイル編集 vi /usr/local/httpd/conf/httpd.conf <IfModule !mpm_netware_module> # # If you wish httpd to run as a different user or group, you must run # httpd as root initially and it will switch. # # User/Group: The name (or #</ifmodule>…

PHPインストール

オプション http://php.benscom.com/manual/ja/configure.about.php 手順 http://www.aconus.com/~oyaji/www/apache_linux_php.htm

PostgreSQLインストール

http://y-kit.jp/saba/xp/postgreinst.htm

自動起動

/etc/rc.d/rc.localをviして /usr/local/apache/bin/apachectl startを追記する

configure

configure は Makefile を適切に修正するためのプログラムです。 --prefix=PREFIX PREFIXで指定したディレクトリにApacheをインストールします --with-layout=[F:]ID file F から取得したインストールパスレイアウトIDを使用します --with-mpm= NAME 任意…