Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2014
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. sudo chmod a+x /home/neagoe/Work/InterWebs/Projects/testing/CustomerProjects/website/dist
  2.  
  3. sudo chown -R www-data:www-data /home/neagoe/Work/InterWebs/Projects/testing/CustomerProjects/website/dist
  4.  
  5. sudo chmod -R 775 /home/neagoe/Work/InterWebs/Projects/testing/CustomerProjects/website/dist
  6.  
  7. sudo adduser $USER www-data
  8.  
  9. sudo a2enmod userdir
  10.  
  11. sudo cp /etc/apache/sites-available/default /etc/apache/sites-available/testing
  12.  
  13. <VirtualHost *:80>
  14. ServerAdmin webmaster@localhost
  15. ServerName testing
  16. DocumentRoot /home/neagoe/Work/InterWebs/Projects/testing/CustomerProjects/website/dist
  17.  
  18. <Directory />
  19. Options FollowSymLinks
  20. AllowOverride None
  21. </Directory>
  22. <Directory /home/neagoe/Work/InterWebs/Projects/testing/CustomerProjects/website/dist/ >
  23. Options Indexes FollowSymLinks MultiViews
  24. AllowOverride All
  25. Order allow,deny
  26. allow from all
  27. </Directory>
  28.  
  29. ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  30. <Directory "/usr/lib/cgi-bin">
  31. AllowOverride None
  32. Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  33. Order allow,deny
  34. Allow from all
  35. </Directory>
  36.  
  37. ErrorLog ${APACHE_LOG_DIR}/error.log
  38.  
  39. # Possible values include: debug, info, notice, warn, error, crit,
  40. # alert, emerg.
  41. LogLevel warn
  42.  
  43. CustomLog ${APACHE_LOG_DIR}/access.log combined
  44. </VirtualHost>
  45.  
  46. 127.0.0.1 localhost
  47. 127.0.0.1 testing
  48.  
  49.  
  50. # The following lines are desirable for IPv6 capable hosts
  51. ::1 ip6-localhost ip6-loopback
  52. fe00::0 ip6-localnet
  53. ff00::0 ip6-mcastprefix
  54. ff02::1 ip6-allnodes
  55. ff02::2 ip6-allrouters
  56.  
  57. sudo a2ensite testing
  58. sudo service apache2 restart
  59.  
  60. <Directory /var/www/ >
  61. Order allow,deny
  62. Allow from all
  63. Require all granted
  64. </Directory>
  65.  
  66. sudo service apache2 restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement