글
copied /etc/apache2/sites-avaliable/default
to /etc/apache2/sites-available/afflicto
.
then edited it, it now looks like the following:
/etc/apache2/sites-available/afflicto
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/afflicto/public_html
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/afflicto/public_html/>
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>
I did sudo a2dissite default && sudo a2ensite afflicto && sudo service apache2 restart
도움주신 url
http://stackoverflow.com/questions/17636389/apache2-virtualhost-403-forbidden
'Linux' 카테고리의 다른 글
우분투에서 윈도우 공유폴더 마운트 하는 방법 (0) | 2014.02.11 |
---|---|
UberGallery 사진첩 기능 (0) | 2014.01.24 |
iptables 를 이용한 국가별 IP 차단. (0) | 2014.01.21 |
iptables 를 이용한 domain 접근 제어. (0) | 2013.11.12 |
MRTG program Cacti 설치방법. (0) | 2013.11.05 |
RECENT COMMENT