Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save manishprajapatidev/9080fa3489cc4a9679fef70b32ba38ef to your computer and use it in GitHub Desktop.
Save manishprajapatidev/9080fa3489cc4a9679fef70b32ba38ef to your computer and use it in GitHub Desktop.
sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/php.koffeewithkode.com.conf
sudo nano /etc/apache2/sites-available/php.koffeewithkode.com.conf
<VirtualHost *:80>
ServerAdmin admin@koffeewithkode.com
ServerName koffeewithkode.com
ServerAlias php.koffeewithkode.com
DocumentRoot /var/www/html/php
DirectoryIndex index.php
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
sudo a2ensite php.koffeewithkode.com
sudo systemctl reload apache2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment