ini 在Jessie上设置新的虚拟主机:https://www.linode.com/docs/websites/apache/apache-web-server-debian-8

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ini 在Jessie上设置新的虚拟主机:https://www.linode.com/docs/websites/apache/apache-web-server-debian-8相关的知识,希望对你有一定的参考价值。

# add virtual host by creating /etc/apache2/sites-available/[example.com].conf (for Jessie)
# OR  by adding to /etc/apache2/extra/httpd-vhosts.conf (Mac)

  <VirtualHost *:80>
    ServerAdmin [user]@[host]
    DocumentRoot "[/var/www/html/path/to/root]"
    ServerName [servername]
    ServerAlias www.[servername]
    ErrorLog "[/path/to/error-logfile]"
    CustomLog "[/path/to/access-logfile]" [common|combined]
                                          # log format (see http://httpd.apache.org/docs/2.2/logs.html)
    <Directory "[/var/www/html/path/to/root]">
      ...
    </Directory>
  </VirtualHost>

# add new url to /etc/hosts

  127.0.0.1   [servername]

# restart apache

  sudo apachectl restart

以上是关于ini 在Jessie上设置新的虚拟主机:https://www.linode.com/docs/websites/apache/apache-web-server-debian-8的主要内容,如果未能解决你的问题,请参考以下文章

如何调整根文件系统分区的大小 Debian Jessie BeagleBone Black

Opcache 清除太快

sh 在Debian Jessie上安装Salt

如何在 debian 8 jessie 上安装 php 7 gd 扩展?

ini 设置一个虚拟主机

如何在 Debian 8 Jessie 上安装 PhpMyAdmin