Skip to content

Instantly share code, notes, and snippets.

@artemsites
Last active August 11, 2019 11:47
Show Gist options
  • Save artemsites/002a59f6a9becc31ebe77c3cdfac9f16 to your computer and use it in GitHub Desktop.
Save artemsites/002a59f6a9becc31ebe77c3cdfac9f16 to your computer and use it in GitHub Desktop.
Lampp пример создания локального домена (Linux).
/**************************************
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