Mac XAMPP VirtualHost 설정
# sudo vi /etc/httpd/conf/httpd.conf # Include etc/extra/httpd-vhosts.conf #주석제거 # httpd-vhosts.conf 설정 <virtualhost *:80> ServerAdmin username@domain.com DocumentRoot "/Users/username/workspace/project" ServerName domain.com ErrorLog "logs/doamin.com-error.log" CustomLog "logs/domain.com-access.log" common <directory "/Users/username/workspace/project"> #http://stackoverflow.com/questions/18365500/xampp-mac-virtual-host-showing-403 ServerSignature Off Options Indexes FollowSymLinks IncludesNoExec AllowOverride All #Order allow,deny <- You can remove this #Allow from all <- and that # Insert the following: Require all granted </directory> </virtualhost>
DNS cache 갱신
sudo vi /private/etc/hosts dscacheutil -flushcache
반응형
'server-side > apache' 카테고리의 다른 글
Chrome "CAUTION: Provisional headers are shown" (0) | 2017.05.18 |
---|---|
아파치 성능도구 ab (0) | 2017.02.22 |
XAMPP 아파치 가상서버 SSL 설정 (0) | 2015.08.19 |
아파치 특정 IP 차단 및 허용 (0) | 2010.09.07 |
apache httpd.conf 설정파일 (0) | 2010.09.03 |