Apache Multiple virtual hosts on localhost

/ Published in: XML
Save to your folder(s)

Setup multple vhosts on localhost. Update hosts file with mapping.

` ci2.dev`

Copy this code and paste it in your HTML
  1. NameVirtualHost *:80
  2. <VirtualHost *:80>
  3. DocumentRoot "E:/wamp/www/appsland_dev/public"
  4. ServerName appsland.dev
  5. </VirtualHost>
  7. <VirtualHost *:80>
  8. DocumentRoot "E:/wamp/www/8102_ci2/public"
  9. ServerName ci2.dev
  10. </VirtualHost>

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.