Vine2.5 + So-net ADSLでのサーバ構築メモ

Contents List

Contents

  1. はじめに/更新情報
  2. 導入目的
  3. インストールするOS
  4. サーバ設定概略
  5. ホスト名
  6. ssh
  7. inetd/TCP Wrappers
  8. Samba
  9. Apache
  10. DDNS
  11. ACCAのルーター設定
  12. ProFTPD
  13. WinSCP
  14. Postfix/Qpopper
  15. 使わないサービスの停止
  16. 応用編

Apache

基本方針

ということで、cd /etc/httpd/conf して、念のためにhttpd.confのバックアップを残しておきます。mv httpd.conf httpd.conf_old その後、編集。

httpd.conf(いじったところ)

	
ServerAdmin webmaster@maitrise.net
ServerName www.maitrise.net
DocumentRoot /home/httpd/html

<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

<Directory /home/httpd/html>
    Options Includes FollowSymLinks ExecCGI #SSI/CGIをOKに
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

UserDir public_html

<Directory /home/*/public_html> #各ユーザの/home/public_htmlでSSI/CGIをOKに
     Options Includes ExecCGI FollowSymLinks
</Directory>

DirectoryIndex index.html index.shtml index.php index.cgi

#Alias /icons/ /home/httpd/icons/ #使わないのでコメント化
#
#<Directory /home/httpd/icons>
#    Options Indexes MultiViews
#    AllowOverride None
#    Order allow,deny
#    Allow from all
#</Directory>

#ScriptAlias /cgi-bin/ /home/httpd/cgi-bin #使わないのでコメント化
#
# "/home/httpd/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
#<Directory /home/httpd/cgi-bin>
#    AllowOverride None
#    Options ExecCGI
#    Order allow,deny
#    Allow from all
#</Directory>

AddHandler cgi-script .cgi .pl

AddType text/html .shtml
AddHandler server-parsed .shtml
	

激しく間違っている気もしますが、とりあえずこれでうまく動いているようです。書き換えたら、いつものようにサーバを再起動しましょう。当然httpサーバはinet経由ではなくstandaloneです。

ちゃんと見れるかどうか確認。サーバ上では、http://localhost/、クライアントのPCだったら、http://192.168.0.3/(サーバのプライベートアドレス)もしくは、ホスト名(http://parcival.maitrise.net/)でも、ドメイン(http://www.maitrise.net/)。

あとは、適当にcgiとかSSIとかできるかどうか一通り試してみましょう。

copyright © 2002 Kei All Right Reserved webmaster@maitrise.net
Last Modified