[공지] SMS114.CO.KR 바로가기
www.sms114.co.kr
👉 텔레그램 상담 바로가기
[virtualhost] VirtualHost 샘플 및 빠른 폴더 권한
1. wordpress 다운로드
wget https://ko.wordpress.org/latest-ko_KR.tar.gz
tar -xzf latest-ko_KR.tar.gz
2. VirtualHost 샘플
<VirtualHost *:80>
DocumentRoot /var/www/html
ServerName a.tripbay.net
ServerAlias a.tripbay.net
<Directory "/var/www/html">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
#RewriteEngine On
#RewriteCond %{HTTPS} off
#RewriteRule ^(.)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</VirtualHost>
3. /var/www/ 및 이하 모든 디렉토리에 읽기, 쓰기, 실행 빠른 권한 설정
3-1. 2775(특수권한, 소유자권한, 그룹권한, 다른사용자권한)
sudo chmod 2775 /var/www && find /var/www -type d -print0 | sudo xargs -0 chmod 2775
3-2. 0664(특수권한, 소유자권한, 그룹권한, 다른사용자권한)
find /var/www -type f -print0 | sudo xargs -0 chmod 0664
댓글남기기