apache 테스트 5
13107 단어 linux
apache 5
mkdir /var/www/html/JaneEyre
mkdir /var/www/html/PrideAndPrejudice
mkdir /var/www/html/WutheringHeights
mkdir /var/www/html/ATaleofTwoCitiess
echo "star platinum 2021-1-4 http://JaneEyre.literature.org" > /var/www/html/JaneEyre/index.html
echo "star platinum 2021-1-4 http://PrideAndPrejudice.literature.org " > /var/www/html/PrideAndPrejudice/index.html
echo "star platinum 2021-1-4 http://WutheringHeights.literature.org" > /var/www/html/WutheringHeights/index.html
echo "star platinum 2021-1-4 http://ATaleofTwoCitiess.literature.org " > /var/www/html/ATaleofTwoCitiess/index.html
chmod 755 /var/www/html/JaneEyre/index.html
chmod 755 /var/www/html/PrideAndPrejudice/index.html
chmod 755 /var/www/html/WutheringHeights/index.html
chmod 755 /var/www/html/ATaleofTwoCitiess/index.html
cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak
cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak4
gedit /etc/httpd/conf.d/vhost.conf
#vi /etc/hosts
gedit /etc/hosts
127.0.0.1 JaneEyre.literature.org
127.0.0.1 PrideAndPrejudice.literature.org
127.0.0.1 WutheringHeights.literature.org
127.0.0.1 ATaleofTwoCities.literature.org
cp /etc/httpd/conf.d/vhost.conf /etc/httpd/conf.d/vhost.conf.bak4
gedit /etc/httpd/conf.d/vhost.conf
<VirtualHost 127.0.0.1>
ServerName JaneEyre.literature.org:80
DocumentRoot /var/www/html/JaneEyre
DirectoryIndex index.html
ErrorLog logs/error_log.JaneEyre
CustomLog logs/access_log.JaneEyre common
</VirtualHost>
<VirtualHost 127.0.0.1>
ServerName PrideAndPrejudice.literature.org:80
DocumentRoot /var/www/html/PrideAndPrejudice
DirectoryIndex index.html
ErrorLog logs/error_log.PrideAndPrejudice
CustomLog logs/access_log.PrideAndPrejudice common
</VirtualHost>
<VirtualHost 127.0.0.1>
ServerName WutheringHeights.literature.org:80
DocumentRoot /var/www/html/WutheringHeights
DirectoryIndex index.html
ErrorLog logs/error_log.WutheringHeights
CustomLog logs/access_log.WutheringHeights common
</VirtualHost>
<VirtualHost 127.0.0.1>
ServerName ATaleofTwoCities.literature.org:80
DocumentRoot /var/www/html/ATaleofTwoCitiess
DirectoryIndex index.html
ErrorLog logs/error_log.ATaleofTwoCities
CustomLog logs/access_log.ATaleofTwoCities common
</VirtualHost>
mkdir-p 멀티 레이어
systemctl restart network.service systemctl restart httpd.service
[root@platinum ]# systemctl restart httpd.service
Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.
apachectl configtest
AH00526: Syntax error on line 9 of /etc/httpd/conf.d/vhost.conf:
ServerName takes one argument, The hostname and port of the server
왜냐하면 여기에 공백이 하나 더 생겼어요. 80 ServerName과 포트 사이.
<VirtualHost 127.0.0.1>
ServerName ATaleofTwoCities.literature.org :80
DocumentRoot /var/www/html/ATaleofTwoCitiess
DirectoryIndex index.html
ErrorLog logs/error_log.ATaleofTwoCities
CustomLog logs/access_log.ATaleofTwoCities common
< /VirtualHost>
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
용감한 바로 가기 및 우분투 응용 프로그램안녕하세요 여러분, 이 기사에서는 모든 사이트에서 pwa를 생성하고 실행기 응용 프로그램으로 추가하는 방법을 설명하고 싶습니다. 일부 웹사이트는 PWA로 설치를 허용하지 않지만 유사한 애플리케이션을 원합니다. 1. ...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.