Setting Virtual Host Di Lampp / Xampp linux


Cara setting virtualhost di xampp linux sangat mudah sekali kalo menurut saya tinggal cari di mana installan lampp nya atau xampp nya, nah biasanya si di under directory /opt tapi tergantung selera juga si mau nya nginstallnya dimana, ok langsung saja ke TKP, kekeke

Apabila installnya under directory /opt buka httpd.conf nya lampp

# vi /opt/lampp/etc/httpd.conf

Cari line di bawah ini

# Virtual hosts
# Include etc/extra/httpd-vhosts.conf hilangkan tanda pagarnya

Untuk virtual hostnya settingannya ada di sini

# vim /opt/lampp/etc/extra/httpd-vhosts.conf 

Isi virtualhost nya sesuai directory contoh settingan nya

<VirtualHost *:80>
    ServerAdmin webmaster@magento.developers.com
    DocumentRoot "/opt/lampp/htdocs/magento"
    ServerName magento.developers.com
    ErrorLog "logs/magento.developers.com-error_log"
    CustomLog "logs/magento.developers.com-access_log" common
</VirtualHost>

Sesuaikan dengan settingan directory webnya, semoga bermanfaat ya artikelnya

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s