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>