Jump to content

Apache:Virtual Host Sederhana

From Wiki
Revision as of 17:24, 13 November 2022 by Kangtain (talk | contribs)

<syntaxhighlight lang="apache" line="1"> <VirtualHost *:80>

   ServerName example.com
   ServerAlias www.example.com
   ServerAdmin webmaster@example.com
   DocumentRoot /var/www/example.com/public_html
   <Directory /var/www/example.com/public_html>
       Options -Indexes +FollowSymLinks
       AllowOverride All
   </Directory>
   ErrorLog ${APACHE_LOG_DIR}/example.com-error.log
   CustomLog ${APACHE_LOG_DIR}/example.com-access.log combined

</VirtualHost> </syntaxhighlight>

Source