debian 10 apache2 VirtualHost

最基本的VirtualHost配置

  1. 新增配置文件

nano /etc/apache2/sites-available/example.hkcto.com.conf 
 
<VirtualHost *:80>
  ServerAdmin webmaster@example.hkcto.com
  DocumentRoot "/var/www/example.hkcto.com"
  ServerName example.hkcto.com
  ErrorLog "${APACHE_LOG_DIR}/example.hkcto.com-error_log"
  TransferLog "${APACHE_LOG_DIR}/example.hkcto.com-access_log"
</VirtualHost>

    2. 使VirtualHost 配置文件生效

a2ensite example.hkcto.com.conf

    3. apache 重新加載配置文件

systemctl reload apache2

留言

  1. Harrah's Hotel and Casino, Joliet, IL - Mapyro
    Property Location With a stay at Harrah's Hotel and Casino in Joliet (Illinois), 광주 출장샵 you'll 안양 출장샵 be steps from LINQ 광양 출장안마 Promenade and 9 minutes 여수 출장샵 by foot from Horseshoe 안양 출장샵

    回覆刪除

張貼留言

這個網誌中的熱門文章

VMware Workstation 教學之三種網絡設定模式

SET命令詳解

Elastix 呼入路由設定 (Inbound Routes)