2011-09-12 1 views
0

저는 Fedora 14를 실행 중이며 localHost에서 다양한 웹 개발 프로젝트를 진행하고 있습니다.VM 가상 박스에서 여러 localhost Dev 웹 사이트 프로젝트를보고 IE 호환성을 테스트합니다.

VM VirtualBox를 설치하고 WindowsXP를 설치하여 프로젝트의 Internet Explorer 호환성 문제를 테스트했습니다.

내 랩톱의 IP 주소를 VirtualBox IE8에 입력하여 첫 번째 로컬 호스트 웹 사이트 프로젝트에 액세스 할 수 있지만 Fedora localhost에서 다른 프로젝트에 액세스하는 방법을 모르겠습니다.

인터넷에서 보았지만 혼란스럽고 계속 붙어 있습니다. > sudo는 gedit를/etc/hosts 파일

127.0.0.1 localhost.localdomain localhost.localdomain localhost localhost4 www.smile www.intranet www.etrack manosLocal www.box 
::1 localhost.localdomain localhost6.localdomain6 localhost6 localhost manosLocal 

- 2 - /etc/httpd/conf.d/vhosts.conf> sudo는 gedit를

1 : 여기

내가 가진 무엇

<VirtualHost *:80> 
    ServerAdmin [email protected]  
    ServerName www.smile 
    ServerAlias www.smile 
    DocumentRoot /repos/smile/trunk 
    ErrorLog /srv/www/logs/smile_error.log 
    CustomLog /srv/www/logs/smile_access.log combined <br /> 
</VirtualHost> 
<VirtualHost *:80> 
    ServerAdmin [email protected]   
    ServerName www.intranet 
    ServerAlias www.intranet 
    DocumentRoot /repos/intranet/trunk 
    ErrorLog /srv/www/logs/intranet_error.log  
    CustomLog /srv/www/logs/intranet_access.log combined <br /> 
</VirtualHost> 
<VirtualHost *:80> 
    ServerAdmin [email protected]  
    ServerName www.etrack 
    ServerAlias www.etrack 
    DocumentRoot /repos/etrack/trunk 
    ErrorLog /srv/www/logs/etrack_error.log 
    CustomLog /srv/www/logs/etrack_access.log combined <br /> 
</VirtualHost> 
<VirtualHost *:80> 
    ServerAdmin [email protected]  
    ServerName www.box 
    ServerAlias www.box 
    DocumentRoot /repos/box/trunk 
    ErrorLog /srv/www/logs/box_error.log 
    CustomLog /srv/www/logs/box_access.log combined <br /> 
</VirtualHost> 

내 노트북의 IP 주소는 다음과 같습니다 ifconfig를 ->inet addr:192.168.1.57

내 VirtualBox-WindowsXP를 시작하고 IE8에서이 IP 주소를 입력하면 Fedora LocalHost의 www.smile 웹 사이트에 액세스 할 수 있습니다. VirtualHosts의 순서를 변경하고 HTTPD 서비스를 다시 시작하면 처음에 로컬 호스트에 액세스 할 수 있습니다.

내 페도라 로컬 호스트의 모든 VirtualHost에 동시에 액세스 할 수 있기를 원하지만 어떻게해야할지 모르겠다.

도움이된다면 정말 감사하겠습니다. 마노스

답변

3

나는 virtualBox의 Windows XP에서 호스트 파일을 구성해야했습니다.

c:\WINDOWS\system32\drivers\etc\hosts 

그런 다음 내 모든 버추얼 호스트

192.168.1.57 localhost www.smile www.intranet www.box www.etrack 

파일을 저장 Internet Explorer를 다시 시작과 함께 ifconfig IP 주소와 기본을 127.0.0.1 localhost

를 교체하고 :-) 위의 주소 중 하나를 입력 끝난!

+1

다음 질문에 답을 표시하십시오 (자기 응답 옆에 "v"표시). –

관련 문제