반응형
https://www.apachefriends.org/index.html
XAMPP Installers and Downloads for Apache Friends
What is XAMPP? XAMPP is the most popular PHP development environment XAMPP is a completely free, easy to install Apache distribution containing MariaDB, PHP, and Perl. The XAMPP open source package has been set up to be incredibly easy to install and to us
www.apachefriends.org
XAMPP 아파치서버에 Virtual Host를 설정하기
1. <...>\xampp\apache\conf\extra\httpd-vhosts.conf 열기
cd <...>\xampp/apache/conf/extra
notepad httpd-vhosts.conf
2. httpd-vhosts.conf 파일 '##NameVirtualHost *:80'부분 주석해제(##제거)
3. httpd-vhosts.conf 파일 하단에 추가
# localhost -> <...>/xampp/htdocs 로드
<Virtualhost *:80="">
DocumentRoot "<...>/xampp/htdocs"
ServerName localhost
</Virtualhost>
# test.zakkum.com -> <...>/xampp/htdocs/zakkum 로드
<VirtualHost *:80>
DocumentRoot "<...>/xampp/htdocs/zakkum"
ServerName test.zakkum.com
ErrorLog "logs/test.zakkum.com-error.log"
CustomLog "logs/test.zakkum.com-access.log" common
</VirtualHost>
4. C:\windows\system32\drivers\etc\hosts 파일 하단에 ip와 VirtualHost ServerName 추가
ex) 192.168.0.xxx test.zakkum.com
반응형
'Tip' 카테고리의 다른 글
SSL/TLS 인증서 테스트 badssl.com (0) | 2025.04.10 |
---|---|
Moakt 일회용 이메일 (0) | 2024.07.01 |