가정용 컴퓨터에 램프(Linux Apache Mysql PHP) 설치를 만들었습니다. ilias라는 패키지를 다운로드하고 다음과 같이 문서 루트에서 추출했습니다.
/var/www/ilias
이제 지침에 따라 설치하려고 할 때마다 http:///ilias/
로컬 컴퓨터에 zip 파일 묶음으로 ilias 디렉토리가 다운로드되는 것을 볼 수 있습니다.
실제로 설치된 컴퓨터에 가서 어떻게 합니까? http://localhost/ilias
그러면 설치 화면을 볼 수 있습니다.
왜 이런 일이 일어나는지 이해할 수 없습니다. 다음은 내 가상 호스트 구성입니다
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName localhost
DocumentRoot /var/www/
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
</VirtualHost>
~
실제로 hxxp://localhost인 시스템에서 사이트에 액세스할 때의 아파치 로그는 다음과 같습니다.
127.0.0.1 - - [04/Feb/2011:22:18:29 +0530] "GET /ilias/templates/default/images/ButtonsBack.gif HTTP/1.1" 304 - "http://localhost/ilias/templates/default/delos.css" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009033100 Ubuntu/9.04 (jaunty) Firefox/3.0.8"
하지만 내가 할 때http://192.168.43.129/ilias/
/var/log/apache2/access.log 에 항목이 표시되지 않습니다. 이 문제의 가장 놀라운 부분은 노트북에서 실행되는 Vmware에 Ubuntu를 설치했다는 것입니다. 게스트 Ubuntu의 IP는 192.168.43.129이고 호스트 Ubuntu의 IP는 192.168.1.3입니다.
답변1
알았어 위 문제에 대한 해결책을 찾았어
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName localhost
DocumentRoot /var/www
#Remove the 4 lines below had created problem that site started getting downloaded
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
</VirtualHost>
이 구성은 효과가 있었습니다.