24,923
社区成员
发帖
与我相关
我的任务
分享
<VirtualHost *:80>
ServerName www.demo.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/demo
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/demo/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/demo_error.log
LogLevel warn
CustomLog /var/log/apache2/demo_access.log combined
ServerSignature On
AddType application/x-httpd-php .php .htm .html
<IfModule dir_module>
DirectoryIndex index.php
</IfModule>
</VirtualHost>