Created
April 17, 2019 12:21
-
-
Save diloabininyeri/32e4e62df5b939ffbf775c9437aa7f71 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/etc/apache2/sites-enabled
local.sitenname.com .conf
on /etc/hosts add 127.0.0.1 local.sitename.com