ubuntu apache2配置说明

来源:互联网 发布:oppo高价低配 知乎 编辑:程序博客网 时间:2024/05/03 02:06
 ubuntu apache2配置说明
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