Last active
August 11, 2019 11:47
-
-
Save artemsites/002a59f6a9becc31ebe77c3cdfac9f16 to your computer and use it in GitHub Desktop.
Lampp пример создания локального домена (Linux).
This file contains 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
/************************************** | |
1. sudo gedit /opt/lampp/etc/httpd.conf | |
uncomment line: | |
**************************************/ | |
Include etc/extra/httpd-vhosts.conf | |
/*************************************************** | |
2. sudo gedit /opt/lampp/etc/extra/httpd-vhosts.conf | |
add this code to the end file: | |
***************************************************/ | |
<VirtualHost *:80> | |
ServerName testdomain.com | |
DocumentRoot "/home/artem/MEGA/Webmaster/Projects/localhost/testdomain.com" | |
<Directory "/home/artem/MEGA/Webmaster/Projects/localhost/testdomain.com"> | |
Options Indexes FollowSymLinks Includes ExecCGI | |
AllowOverride All | |
Require all granted | |
</Directory> | |
ErrorLog "logs/testdomain.com-error_log" | |
</VirtualHost> | |
/********************** | |
3. add this code to the end file: | |
sudo gedit /etc/hosts | |
127.0.0.1 testdomain.com | |
**********************/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment