忍者ブログ
出来損ないのカメレオン

/var/www/htdocs

/etc/apache2/default-server.conf

<Directory "/var/www/htdocs/man">
 Options Indexes MultiViews
 AllowOverride None
 Order allow,deny
 Allow from all
</Directory>

/etc/rc.d/apache2 graceful
/etc/rc.d/apache2 restart

------------------------------------------------------
<VirtualHost *:80>
    ServerAdmin webmaster@domain.com
    VirtualDocumentRoot /var/www/%0/htdocs
    VirtualScriptAlias /var/www/%0/htdocs/cgi-bin
    <Directory /var/www/*/htdocs>
        AllowOverride All
        Options -Indexes +Includes +FollowSymLinks
        <Limit GET POST OPTIONS>
            Order allow,deny
            Allow from all
        </Limit>
        <LimitExcept GET POST OPTIONS>
            Order deny,allow
            Deny from all
        </LimitExcept>
    </Directory>
    <Directory /var/www/*/htdocs/cgi-bin>
        Options +ExecCGI
    </Directory>
    ErrorLog logs/error_log
    CustomLog logs/access_log common
</VirtualHost>
------------------------------------------------------

CGI

default-serveer.conf
<Directory /usr/local/apache2/htdocs/somedir>
Options +ExecCGI
</Directory>

mod_mime-defaults.conf
AddHandler cgi-script .cgi .pl

PR
ブログ内検索
Counter


カレンダー
02 2025/03 04
S M T W T F S
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31
忍者ブログ [PR]