Web Server Install
★Web Server 設定
☆Apache2の設定
赤字のエリアは各自の希望に合わせて設定
fastcgiを動作させたいときは、更に拡張子を追加する等の変更が必要
ファイル名:/etc/apache2/sites-available/default
編集方法:sudo nano /etc/apache2/sites-available/default
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/
<Directory /home/*/>
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/*/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
AddHandler cgi-script .cgi .pl .py
Options ExecCGI
</Directory>
ScriptAlias /cgi-bin/ /home/*/
<Directory "/home/*">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0::1/128
</Directory>
</VirtualHost>
☆Apache2再起動
sudo /etc/init.d/apache2 reload
Comments
Post a Comment