PHP7을 설치 하였으니 가상호스트를 설정해보자.
1.
vi /usr/local/etc/apache2/2.4/httpd.conf # Virtual hosts Include /usr/local/etc/apache2/2.4/extra/httpd-vhosts.conf 주석제거 | cs |
2.
vi /usr/local/etc/apache2/2.4/extra/httpd-vhosts.conf <VirtualHost *:80> ServerAdmin PROJECT1@PROJECT1.co.kr DocumentRoot "/Users/*****/Documents/PROJECT ADDRESS" ServerName api.paynowshop.co.kr ErrorLog "/usr/local/var/log/apache2/dummy-host.example.com-error_log" CustomLog /usr/local/var/log/apache2/dummy-host.example.com-access_log common </VirtualHost> <VirtualHost *:80> ServerAdmin PROJECT2@PROJECT2.co.kr DocumentRoot "/Users/*****/Documents/PROJECT ADDRESS" ServerName dev.paynowshop.co.kr ErrorLog "/usr/local/var/log/apache2/dummy-host.example.com-error_log" CustomLog /usr/local/var/log/apache2/dummy-host.example.com-access_log common </VirtualHost> | cs |
3.
vi /etc/hosts 127.0.0.1 PROJECT1@PROJECT1.co.kr 127.0.0.1 PROJECT2@PROJECT2.co.kr 추가 | cs |
'STUDY > ETC' 카테고리의 다른 글
sourcetree (0) | 2018.01.22 |
---|---|
SlickGrid (0) | 2018.01.22 |
PHP 설치 (0) | 2018.01.22 |
HTTP프로토콜 HTML5 Geolocation API 위치정보 사용에 대하여 (0) | 2018.01.22 |
Redis(레디스) (0) | 2018.01.22 |