Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo chmod a+x /home/neagoe/Work/InterWebs/Projects/testing/CustomerProjects/website/dist
- sudo chown -R www-data:www-data /home/neagoe/Work/InterWebs/Projects/testing/CustomerProjects/website/dist
- sudo chmod -R 775 /home/neagoe/Work/InterWebs/Projects/testing/CustomerProjects/website/dist
- sudo adduser $USER www-data
- sudo a2enmod userdir
- sudo cp /etc/apache/sites-available/default /etc/apache/sites-available/testing
- <VirtualHost *:80>
- ServerAdmin webmaster@localhost
- ServerName testing
- DocumentRoot /home/neagoe/Work/InterWebs/Projects/testing/CustomerProjects/website/dist
- <Directory />
- Options FollowSymLinks
- AllowOverride None
- </Directory>
- <Directory /home/neagoe/Work/InterWebs/Projects/testing/CustomerProjects/website/dist/ >
- Options Indexes FollowSymLinks MultiViews
- AllowOverride All
- Order allow,deny
- allow from all
- </Directory>
- ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
- <Directory "/usr/lib/cgi-bin">
- AllowOverride None
- Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
- Order allow,deny
- Allow from all
- </Directory>
- ErrorLog ${APACHE_LOG_DIR}/error.log
- # Possible values include: debug, info, notice, warn, error, crit,
- # alert, emerg.
- LogLevel warn
- CustomLog ${APACHE_LOG_DIR}/access.log combined
- </VirtualHost>
- 127.0.0.1 localhost
- 127.0.0.1 testing
- # The following lines are desirable for IPv6 capable hosts
- ::1 ip6-localhost ip6-loopback
- fe00::0 ip6-localnet
- ff00::0 ip6-mcastprefix
- ff02::1 ip6-allnodes
- ff02::2 ip6-allrouters
- sudo a2ensite testing
- sudo service apache2 restart
- <Directory /var/www/ >
- Order allow,deny
- Allow from all
- Require all granted
- </Directory>
- sudo service apache2 restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement