Skip to content

Instantly share code, notes, and snippets.

@shinokada
Last active September 25, 2023 03:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shinokada/f0f6aa7bce83e219168e4f8f493f1b95 to your computer and use it in GitHub Desktop.
Save shinokada/f0f6aa7bce83e219168e4f8f493f1b95 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ServerAdmin your.email@gmail.com
ServerName example.com
ServerAlias www.example.com
DocumentRoot /var/www/example.com/public_html
<Directory /var/www/example.com/public_html>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<IfModule mod_dir.c>
DirectoryIndex index.php index.pl index.cgi index.html index.xhtml index.htm
</IfModule>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment