エラーログには「ensure interpreted scripts have "#!" first line」って、 これって、.htmlファイルも.cgiファイルと見てるわけですよね。 htmlファイルはhtmlファイルとして見るようにするにはhttpd.confで 指定するのかなと思ったんですけど、どこをどう変えるのかわかりません。
/home/xxx/public_html/test/.htaccess: DirectoryIndex not allowed her となってしまいます。 どうすれば有効になるのでしょうか?
http.confには
<Directory /home/*/public_html> AllowOverride FileInfo AuthConfig Limit Options All <Limit GET POST OPTIONS PROPFIND> Order allow,deny Allow from all </Limit> <LimitExcept GET POST OPTIONS PROPFIND> Order deny,allow Deny from all </LimitExcept> </Directory>
Solaris8でapache_1.3.22をインストールしたんですけど、CGIがうまく動作しません。 -------------------------------------------------------------- Method Not Allowed The requested method POST is not allowed for the URL /~public_html/cgi-bin/keiji.cgi. -------------------------------------------------------------- というエラーメッセージがでるのですが、どうすればいいのか教えてください。 。
apachectl status とやると「Forbidden」と出てしまうのですが、何が問題なのでしょう? 設定は Allow from 192.168.0. のようにやっているのですが、ブラウザの場合はこれで問題なく server-statusが見れたりします。 もちろん、Allow from all とやればコンソールでも見れるのですが…
Port 80 Listen 80 Listen 1234 <VirtualHost *> Deny from all Allow from 127.0.0.1 Allow from 192.168.0.0/24 DocumentRoot /path/to/80 </VirtualHost> <VirtualHost *:1234> DocumentRoot /path/to/1234 </VirtualHost>
<VirtualHost *> DocumentRoot "/usr/local/apache/htdocs" <Directory /> Deny from all Allow from 127.0.0.1 Allow from 192.168.0.0/24 Options FollowSymLinks AllowOverride None </Directory> <Directory /home/*/public_html> Options Indexes AllowOverride All </Directory> </VirtualHost>
<VirtualHost *:1234> DocumentRoot "/usr/local/apache/htdocs" <Directory /> Allow from all Options FollowSymLinks AllowOverride None </Directory> <Directory /home/*/public_html> Deny from all AllowOverride None </Directory> <Directory /home/*/public_html/docs> Allow from all Options Indexes AllowOverride All </Directory> </VirtualHost>
<Directory /home/*/public_html> AllowOverride FileInfo AuthConfig Limit Indexes Options All <Limit GET POST OPTIONS PROPFIND> Order allow,deny Allow from all </Limit> <LimitExcept GET POST OPTIONS PROPFIND> Order deny,allow Deny from all </LimitExcept> </Directory>
/home/hiroyuki/public_htm/bbsに置いたcgiをブラウザから開くと
Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log.
こうなって/var/log/httpd-error.logには
[Wed Dec 5 03:17:31 2001] [error] [client 192.168.0.2] Premature end of script headers: /home/hiroyuki/public_html/bbs/light.cgi
Premature end of script headers: /home/hiroyuki/public_html/bbs/light.cgi Can't locate ./jcode.pl in @INC (@INC contains: /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503 /usr/local/lib/perl5/site_perl/5.005/i386-freebsd / usr/local/lib/perl5/site_perl/5.005 .) at /home/naoya/public_html/bbs/light.cgi line 34.
|| Forbidden || You don't have permission to access /cgi-bin/ on this server. || || -------------------------------------------------------------------------------- || Apache/1.3.20 Server at node01.1ch.tv Port 80
を追加して # /etc/rc.d/init.d/httpd restart したら Stopping httpd: [ OK ] Starting httpd: [Fri Dec 21 14:47:57 2001] [warn] VirtualHost 210.255.82.203:80 overlaps w ith VirtualHost 210.255.82.203:80, the first has precedence, perhaps you need a NameVirtua lHost directive [ OK ] というメッセージが出ました。
ええと、httpd restartしたところ >Starting httpd: [Fri Dec 21 14:47:57 2001] [warn] VirtualHost 111.111.111.111 overlaps with VirtualHost 111.111.111.111, >the first has precedence, perhaps you need a NameVirtualHost directive というメッセージが出たので、
# Each directory to which Apache has access, can be configured with respect # to which services and features are allowed and/or disabled in that # directory (and its subdirectories). # # First, we configure the "default" to be a very restrictive set of # permissions. # #<Directory /> # Options FollowSymLinks # AllowOverride None #</Directory>
@echo off rem build.bat -- Build Script for the "Hello, World" Application rem $Id: build.bat,v 1.3.2.2 2000/11/27 22:45:57 craigmcc Exp $
set _CP=%CP%
rem Identify the custom class path components we need set CP=%TOMCAT_HOME%\lib\ant.jar;%TOMCAT_HOME%\lib\servlet.jar set CP=%CP%;%TOMCAT_HOME%\lib\jaxp.jar;%TOMCAT_HOME%\lib\parser.jar set CP=%CP%;%JAVA_HOME%\lib\tools.jar
rem Execute ANT to perform the requird build target java -classpath %CP%;%CLASSPATH% org.apache.tools.ant.Main -Dtomcat.home=%TOMCAT_HOME% %1 %2 %3 %4 %5 %6 %7 %8 %9
You don't have permission to access /dummy.htm on this server. ----------------------------------------------------- Apache/1.3.22 Server at www.dumy.or.jp Port 80 <-この部分
---------------------------- UserDir public_html <Directory /home/*/public_html> AllowOverride FileInfo AuthConfig Limit Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec ExecCGI <Limit GET POST OPTIONS PROPFIND> Order allow,deny Allow from all </Limit> <Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK> Order deny,allow Deny from all </Limit> </Directory> ----------------------------
# log files $LockFile = "logs/httpd.lock"; # lock file for the server $ErrorLog = "logs/error_log"; # Error logs $PidFile = "logs/httpd.pid"; # stores process ID for httpd
指定されたパスが見つかりません。 (22)Invalid argument: <Perl>:Invalid command 'AccessLog' perhaps mis-spelled or defined by a module not included in the server configuration
エラーまでの一連の作業工程はこういったものです。 # cd mod_perl-1.26 # perl Makefile.PL APACHE_SRC=../apache_1.3.23/src \ DO_HTTPD=1 USE_APACI=1 USE_DSO=1 PREP_HTTPD=1 EVERYTHING=1 # make # cd ../apache_1.3.23/ # ./configure --activate-module=src/modules/perl/libperl.a \ --enable-module=most --enable-shared=max # make # cd ../mod_perl-1.26 # make test
その辺の解説ページにあるように、httpd.confの最終行に Include /usr/local/tomcat/conf/mod_jk.conf-auto を加えて、tomcatのサンプルページ /examples/servlet/SessionExample を表示し、投稿を行うと、
Not Found (404) Original request: /examples/servlet/SessionExample%3bjsessionid=s19i3cbb51 Not found request: /examples/servlet/SessionExample%3bjsessionid=s19i3cbb51
>827 該当時刻に再起動をかけるのはapacheのhttpdだけです。 エラーログをチェックしてみると、シグナルを送った直後に Cannot remove module mod_hoge.c : not foud in module list というようにモジュールを取り除けないというエラーが並んでいます。
Include directive Syntax: Include file-path|directory-path Context: server config Status: Core Compatibility: Include is only available in Apache 1.3 and later. This directive allows inclusion of other configuration files from within the server configuration files.
New in Apache 1.3.13 is the feature that if Include points to a directory, rather than a file, Apache will read all files in that directory, and any subdirectory, and parse those as configuration files.
FreeBSD4.5-Rで1.3.22をpkg_addして http://www.planet-green.com/linux/mod_gzip.html を参考にmod_gzip使おうとしましたが、起動できませんでした # /usr/local/sbin/apachectl start Syntax error on line 205 of /usr/local/etc/apache/httpd.conf: Cannot load /usr/local/libexec/apache/mod_gzip.so into server: Shared object "libc.so.6" not found /usr/local/sbin/apachectl start: httpd could not be started
* Fix the security vulnerability noted in CAN-2002-0061 (mitre.org) regarding the escaping of command line args on Win32. * Prevent invalid client hostnames from appearing in the log file.
New features
The main new features in 1.3.24 (compared to 1.3.23) are:
* Various mod_proxy improvements, such as the new ProxyIOBufferSize directive. * The new ''IgnoreCase' keyword to the IndexOptions directive.
New features that relate to specific platforms:
* Added the module mod_log_nw to handle log rotation under NetWare.
Bugs fixed
The following bugs were found in Apache 1.3.23 (or earlier) and have been fixed in Apache 1.3.24:
* mod_rewrite's 'rnd' was broken and has been fixed. * The '-S' option of 'apxs' was not able to handle quotes; also 'apxs' is now rebuilt when options are changed. * proxy now correctly handles Cookies and X-Cache headers.
The following bugs relate to specific platforms:
* Fixed a problem in TPF when we were using the wrong subpool when opening the error log. * pthread accept() mutexes on Solaris were broken (since we were not linking against pthread)
please recompile it with -DEAPI という事なのでコンパイル?とか思ったのですが portsからapache1.3-modssl,php4をいれてるので make installしかしてないです。 どこでコンパイルって作業すればいいのでしょうか? configureっていう奴ですよね?