가비아 리눅스 서버 세팅 예제
OS/Linux2016. 9. 28. 14:56
터미널 접속 -> 아파치 가상 호스트 세팅
ㄴ 계정 생성 후 권한 755로 변경.
useradd new-user
cat /etc/passwd | grep new-user
echo 'pass!word!' | passwd --stdin new-user
ㄴ /usr/local/apache/conf/extra/httpd-vhosts.conf
<VirtualHost www.example.com>
ServerAdmin admin@example.com
DocumentRoot "/home/new-user"
ServerName www.example.com
ErrorLog "logs/new-user-error_log"
CustomLog "logs/doctors_log" common
</VirtualHost>
ㄴ /etc/hosts
111.222.333.444 www.example
ㄴ service httpd restart
'OS > Linux' 카테고리의 다른 글
VirtualBox 리눅스 인터넷 연결 확인 (0) | 2017.10.01 |
---|---|
CentOs 6.8 tomcat+java+jsp 연동 (0) | 2016.12.31 |
특정 파일(PHP)의 특정 폴더 실행 막기 (Linux Ver) (0) | 2016.08.07 |
centos 6.x 에서 node.js 설치 (0) | 2016.02.07 |
포트 열기/닫기 & 백그라운드 실행 (0) | 2015.11.24 |