반응형

#cd /etc/apache2/sites-available

#cp default.conf test.com.conf

#a2ensite test.com.conf

#service apache2 restart

 

conf 파일 예제

 

<VirtualHost *:80>

        ServerName www.mmm.kr
        ServerAlias www.mmm.kr

        ServerAdmin mmm@gmail.com
        DocumentRoot /var/www/mmm


    <Directory "/var/www/mmm">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

반응형

+ Recent posts