ubuntu apache2配置说明
1./etc/apache2/httpd.conf增加
ServerName localhost
1./etc/apache2/httpd.conf增加
ServerName localhost
2./etc/apache2/ports.conf增加
NameVirtualHost *:8080
Listen 8080
3./etc/apache2/conf.d增加文件apache.conf
内容:
Alias /zm /usr/share/zoneminder
<Directory /usr/share/zoneminder>
php_flag register_globals off
Options Indexes FollowSymLinks
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
</Directory>
4.完成后 /etc/init.d/apache2 restart