ServerAdmin admin@bisakomputer.wp
DocumentRoot "c:/xampp/htdocs/tracer"
ServerName tracer.unissula.ac.id
ServerAlias tracer.unissula.ac.id
ErrorLog logs/tracer.unissula.ac.id.log
CustomLog logs/tracer.unissula.ac.id.log combined
<Directory "c:/xampp/htdocs/tracer">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
C:\xampp\apache\conf\extra/vhoost.conf
jangan lupa tambahkan kode dibawah ini letakkan paling atas agar root localhost terbaca
<VirtualHost *:80>
DocumentRoot "C:\xampp\htdocs"
ServerName localhost
</VirtualHost>
lebih lengkap
<VirtualHost *> DocumentRoot "C:\xampp\htdocs" ServerName localhost </VirtualHost> <VirtualHost *> DocumentRoot "C:\xampp\htdocs\yoursite.dev" ServerName yoursite.dev <Directory "C:\xampp\htdocs\yoursite.dev"> Order allow,deny Allow from all </Directory> </VirtualHost> <VirtualHost *> DocumentRoot "C:\xampp\htdocs\yoursite2.dev" ServerName yoursite2.dev <Directory "C:\xampp\htdocs\yoursite2.dev"> Order allow,deny Allow from all </Directory> </VirtualHost> <VirtualHost *> DocumentRoot "C:\xampp\htdocs\yoursite3.dev" ServerName yoursite3.dev <Directory "C:\xampp\htdocs\yoursite3.dev"> Order allow,deny Allow from all </Directory> </VirtualHost>
Tidak ada komentar:
Posting Komentar