インフォメーションBBS
[使い方]
[タイトルのみ]
[関連発言]
[最新20発言]
[過去ログ一覧]
発言#1037を修正または削除できます:
お名前:
←パスワード(修正用)
アドレス:
タイトル:
本文:
購入させていただきました本を頼りに、NetBSD+Apache1.3.11でホームページ を立ちあげました。 みんなで利用できるようにと httpd.confには # This should be changed to whatever you set DocumentRoot to. # <directory "/usr/pkg/share/httpd/htdocs"> # # This may also be "None", "All", or any combination of "Indexes", # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews". # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # Options Indexes FollowSymLinks MultiViews # # This controls which options the .htaccess files in directories can # override. Can also be "All", or any combination of "Options", "FileInfo", # "AuthConfig", and "Limit" # AllowOverride All # # Controls who can get stuff from this server. # Order allow,deny Allow from all </directory> ・・中略・・ ScriptAlias /cgi-bin/ "/usr/pkg/libexec/cgi-bin/" # # "/usr/pkg/libexec/cgi-bin" should be changed to whatever your ScriptAliased # CGI directory exists, if you have that configured. # <directory "/usr/pkg/libexec/cgi-bin"> AllowOverride None Options ExecCGI Order allow,deny Allow from all </directory> と言った感じで設定し、telnetで入って直接count_g1.plを実行すると、 無事動作もしますし、counter_g1.logも快調に増えていくのですが、 /home/hogehoge に置きました、count_g1.htmが「いらっしゃいませ」のみ表示されて カウンターが表示されないのです。 不思議なことにエラーログも出ません。 先の設定で、/cgi-bin/は/usr/pkg/libexec/cgi-bin/のAliasになって いるはずなのですが、、、。 ちなみに、.htaccessファイルは/home/hogehoge/public_htmlの中にあって Options FollowSymLinks Indexes Includes AddType text/x-server-parsed-html .html AddType text/x-server-parsed-html .htm AddType application/x-httpd-cgi .cgi AddType application/x-httpd-cgi .pl という設定になっています。 何がいけないのでしょうか? ちなみに皆さんは、cgiをどこに置いて使っていらっしゃるのでしょう?
[トップページに戻る]
管理人 :
キャメル