Apache's virtual host configuration

zhaozj2021-02-16  97

DNS configuration www.yourdomain.com Resolution to 192.168.0.1apache configuration file modified as follows: # ### section 3: Virtual hosts #

 namevirtualhost 192.168.0.1  ServerHost 192.168.0.1> ServerAdmin system @sohu.com document VAR / WWW / HTML / ServerName www.mydomain.com errorlog /var/www/logs/www.mydomain.com-error_log customlog /var/www/logs/www.mydomain.com-access_log common   ServerAdmin minkychu@sohu.com DocumentRoot /www/docs/www.yourdomain.com ServerName www.yourdomain.com ErrorLog /www/logs/www.yourdomain.com-error_log CustomLog /www/logs/www.yourdomain.com -Access_log common   

转载请注明原文地址:https://www.9cbs.com/read-10817.html

New Post(0)