Apache

site.com.conf

1. 개요

Apache site-conf 파일을 수정하여 VirtualHost를 구성한다.

 

2. Config File

/etc/apache2/sites-available/site.com.conf

<VirtualHost *:80>
    ServerName site.com

    ServerAdmin admin@site.com
    DocumentRoot /var/www/homepage

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

</VirtualHost>

<Directory /var/www/homepage/>
    Options FollowSymLinks
    AllowOverride None
    Require all granted
</Directory>

#<Directory /var/www/homepage/index.html>
#   Order deny,allow
#   Deny from all
#   Allow from 192.168.0.1/24
#   Allow from 1.2.3.4
#</Directory>

 

Back To Top