Skip to content

Instantly share code, notes, and snippets.

@eftakhairul
Last active November 30, 2016 16:37
Show Gist options
  • Save eftakhairul/bc47809a7422aed358d8 to your computer and use it in GitHub Desktop.
Save eftakhairul/bc47809a7422aed358d8 to your computer and use it in GitHub Desktop.
Basic apache2 server configuration for php App
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /home/app/php-app
ServerAlias www.abc.com
ServerName abc.com
<Directory /home/app/php-app>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment