Adding VirtualHost fails: Access Forbidden Error 403 (XAMPP)

Selection_002

Pernah menambahkan virtual host di XAMPP lalu akses folder ‘/’ di localhost malah muncul access forbidden ?

Silahkan buka di terminal :

sudo gedit /opt/lampp/etc/extra/httpd-vhosts.conf

tambahkan :

<Directory “*YourLocation*”>
Options All
AllowOverride All
Require all granted </Directory>

menjadi seperti misal :

<Directory “/opt/lampp/htdocs”>
Options All
AllowOverride All
Require all granted
</Directory>

dan reload apache xampp nya:

sudo /opt/lampp/lampp reloadapache

oke sudah bisa, silahkan akses di browser Anda: ‘localhost’

(screenshotnya arta.dev ;D)

Selection_001

sumber:

http://stackoverflow.com/a/12895792

 

Advertisements

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