Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save diloabininyeri/32e4e62df5b939ffbf775c9437aa7f71 to your computer and use it in GitHub Desktop.
Save diloabininyeri/32e4e62df5b939ffbf775c9437aa7f71 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
# Admin email, Server Name (domain name) and any aliases
ServerName local.sitename.com
#ServerAlias www.domain1.com
# Index file and Document Root (where the public files are located)
DirectoryIndex index.php
#DocumentRoot /home/demo/public_html/domain1.com/public
DocumentRoot /var/www/sitename/public/
# Custom log file locations
#LogLevel warn
#ErrorLog /var/log/apache2/error-mydomainname.com.log
#CustomLog /var/log/apache2/access-mydomainname.com.log combined
<Directory var/www/sitename/public>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
@diloabininyeri
Copy link
Author

diloabininyeri commented Apr 17, 2019

/etc/apache2/sites-enabled
local.sitenname.com .conf

on /etc/hosts add 127.0.0.1 local.sitename.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment