Guest User

Untitled

a guest
Jul 23rd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. Open with vim and root privileges:
  2.  
  3. sudo vim /private/etc/apache2/extra/httpd-vhosts.conf /private/etc/hosts
  4.  
  5. In the file: `/private/etc/apache2/extra/httpd-vhosts.conf`
  6.  
  7. <VirtualHost *:80>
  8. DocumentRoot "/Users/mkitt/Sites/project"
  9. ServerName project
  10. </VirtualHost>
  11.  
  12.  
  13. In the file: `/private/etc/hosts`
  14.  
  15. 127.0.0.1 project
  16.  
  17.  
  18. Restart Apache
Add Comment
Please, Sign In to add comment