×

Welcome to TagMyCode

Please login or create account to add a snippet.
1
0
 
0
Language: Apache
Posted by: Urgent Programmer
Added: May 26, 2015 3:43 PM
Modified: May 26, 2015 3:43 PM
Views: 16
For local development

Enable vhost in httpd.conf

755 perms up to root with http group ownership

Add domain to /etc/hosts
  1. NameVirtualHost *.80
  2.  
  3. <VirtualHost *:80>
  4.     ServerName sub.localhost
  5.     ServerAlias sub.localhost
  6.     ServerPath "/home/<user>/src/sub"
  7.     DocumentRoot "/home/<user>/src/sub"
  8.     <Directory "/home/<user>/src/sub">
  9.         Options Indexes FollowSymLinks
  10.         AllowOverride All
  11.         Order allow,deny
  12.         Allow from all
  13.         Require all granted
  14.    </Directory>
  15. </VirtualHost>
  16.