2013-10-09 3 views
0

나는 민트 리눅스에 아파치 가상 호스트를 설정하려고한다. 다소 효과가 있지만 일부 이미지는 제공되지 않습니다. 예를 들어 http://test.local/icons/world.png은 이미지가 있더라도 404를 반환합니다. 내가 로그 검사 할 때 그것이 내가 설정 내 DocumentRoot에이Apache2 가상 호스트 on 민트

을이됩니다 /var/www/test.local/public_html하는 경우에도을 /usr/share/apache2/icons/world.png 에서 이미지를 찾고 말한다 내가 어떻게 이랬어. 복사/등/아파치/가능한 사이트-/ 기본 test.local과 같은 편집 :

<VirtualHost *:80> ServerAdmin [email protected] ServerName test.local DocumentRoot /var/www/test.local/public_html <Directory /var/www/test.local/public_html/> <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost> 

은 그 때 나는 편집/etc/hosts 파일과의 127.0.0.1 test.local을 포함한다. a2ensite test.local을 실행하고 아파치를 다시 시작하십시오. 내가하려고 어떤

http://test.local/var/www/test.local/public_html에서 맵 폴더 내가 부족 아무것도, 또는이 작업을 수행하는 쉬운 방법이있다.

또한 프로젝트의 루트 디렉토리 또는 아이콘 디렉토리에는 .htaccess 파일이 없습니다.

답변

관련 문제