To add a lamp on the host server, we simply open a terminal and log in as root.
cd /etc/apache2/sites-available
touch-your-site name.conf
gedit-your-site name.conf
Enter your Virtual hostname, for example:
Servername myserver
ServerAdmin me@myserver
DocumentRoot/home/me/webroot/default
Options-Indexes
AllowOverride All
Order Allow, Deny
Allow From All
Save Name the new virtual host.
cd .. /sites-enabled
ln-s/etc/apache2/sites-available/nama-site-anda.conf
. /site-name-anda.conf
cd .. /
gedit apache2.conf
Enter the script below on apache2.conf
# Include the virtual host configurations:
NameVirtualHost 127.0.1.1:80
Include /etc/apache2/sites-enabled/
Save the above script that you add.
gedit /etc/hosts
127.0.0.1 localhost
127.0.1.1 minez myserver
Then save. restart apche2
/etc/init.d/apache2 restart
Virtual host that you just created, and can be accessed, if not successful, repeat above.
Congratulations and Thank Testing
cd /etc/apache2/sites-available
touch-your-site name.conf
gedit-your-site name.conf
Enter your Virtual hostname, for example:
Servername myserver
ServerAdmin me@myserver
DocumentRoot/home/me/webroot/default
Options-Indexes
AllowOverride All
Order Allow, Deny
Allow From All
Save Name the new virtual host.
cd .. /sites-enabled
ln-s/etc/apache2/sites-available/nama-site-anda.conf
. /site-name-anda.conf
cd .. /
gedit apache2.conf
Enter the script below on apache2.conf
# Include the virtual host configurations:
NameVirtualHost 127.0.1.1:80
Include /etc/apache2/sites-enabled/
Save the above script that you add.
gedit /etc/hosts
127.0.0.1 localhost
127.0.1.1 minez myserver
Then save. restart apche2
/etc/init.d/apache2 restart
Virtual host that you just created, and can be accessed, if not successful, repeat above.
Congratulations and Thank Testing

0 comments
Posting Komentar