-
본문으로 바로가기

아파치 웹서버에서 보면 index 파일이 없는 경우 해당 디렉토리의 파일들을 마치 FTP 처럼 보여주는 경우가 있습니다.

이 리스트에 대한 스타일을 조정하는 방법을 출처의 내용을 활용하여 메모해 둡니다.


아파치 웹서버 리스팅 스타일 수정 방법 (apache web server / index of / style / indexStyleSheet )

스타일을 변경하기 위해서는 다음과 같이 해봅니다.

 

/etc/apache2/sites-enabled/your_site.conf 파일에서

IndexStyleSheet "/css/style.css" 파일을 사용하게 되는데요.

 

<VirtualHost *:80> ServerName something.com DocumentRoot /var/www/ IndexStyleSheet "/css/style.css" ...</VirtualHost>

 

이렇게 수정을 하고

 

/var/www/css/style.css 의 스타일 시트 파일에서

 

body { color: red; }

 

하게 되면 변경되는 부분을 확인하면, 어떤 파일이 리스팅의 스타일 시트파일인지 확인할 수 있다.

 

어렵지 않죠?

 

 

 

 

출처: https://askubuntu.com/questions/544197/how-to-change-the-index-of-template


이상입니다.

퍼가기 하실때는 출처 꼭 같이 남겨주시면 감사하겠습니다.


출처: 코키티비, http://cocatv.tistory.com/136

반응형