2011-04-14 3 views
0

여러 웹 사이트, 상점 및 저장보기를 사용하여 Magento 설치를 설정하는 방법에 대한 Magento 지원의 기사를 따랐지만 설치가 망쳐서 아무 것도 액세스 할 수 없었습니다. 내 게시물에 대한 몇 가지 답장 덕분에 작업 시스템의 모습으로 돌아갈 수있었습니다. 누군가 내 설치 작업에서 수행 했어야 할 어리석은 일을 발견 할 수 있다면 정말 감사 할 것입니다.Magento 멀티 웹 사이트/매장 설정 - 도와주세요!

이 테스트 설정에 대한 나의 요구 사항은 다음과 같습니다.
- 하나의 단일 관리 영역.
- 두 개의 웹 사이트.
- 첫 번째 웹 사이트에 1 개 스토어가 있습니다 (스토어 뷰가 3 개).
- 2 개의 상점이있는 두 번째 웹 사이트 (각 상점보기는 1 개)
- 내가 좋아하는 URL을 사용하여 프론트 엔드에 액세스 할 수 원합니다 : http://www.firstwebsite.com 오히려

http://www.firstwebsite.com/magento/index.php 이상의 기계가 Windows XP를 실행한다.

Websites: 
    Name=Main Website 
    code=base 

    Name=Paul Website 
    code=pws1 
Stores: 
    Name=Main Store 
    Website=Main Website 

    Name=Electronics 
    Website=Paul Website 

    Name=Media 
    Website=Paul Website 

Store Views: 
    Name=English 
    Store=Electronics 
    code=en1 

    Name=English 
    Store=Media 
    code=en2 

    Name=English 
    Store=Main Store 
    code=default 

    Name=French 
    Store=Main Store 
    code=french 

    Name=German 
    Store=Main Store 
    code=german 

시스템/구성/일반/웹 (URL http://test.pdapache.com/magento/index.php 액세스) :

Scope=Default Config 
    Add Store Code to Urls = No  
    Auto-redirect to Base URL = No  
    Secure and Unsecure URLs just set to {{base_url}} at this scope 

Scope=Main Website 
    Unsecure Base URL=http://test.pdapache.com/magento/ 
    Secure Base URL=https://test.pdapache.com/magento/ 
    All other secure/unsecure not using default. Also Default Web URL=cms (use Default = No). CMS Home Page=Home Page (use default = no) 

Scope=Paul Website 
    Unsecure Base URL=http://paulsplace.com/magento/ 
    Secure Base URL=https://paulsplace.com/magento/ 
    All other secure/unsecure not using default. Also Default Web URL=cms (use Default = No). CMS Home Page=Home Page (use default = no) 

hosts 파일

127.0.0.1 test.pdapache.com 
127.0.0.1 www.paulsplace.com 
127.0.0.1 paulsplace.com 
매장 구성에서

나는이 설정을 가지고

httpd.conf :

,451,515,
Include conf/extra/httpd-vhosts.conf 

아파치 - vhosts.conf 파일 :

<VirtualHost *:80> 
    ServerAdmin [email protected] 
    DocumentRoot "C:/Applications/Apache Software Foundation/Apache2.2/htdocs" 
    ServerName paulsplace.com 
    ErrorLog "logs/paulsplace.com-error.log" 
    CustomLog "logs/paulsplace.com-access.log" common 
    SetEnv MAGE_RUN_TYPE website 
    SetEnv MAGE_RUN_CODE pws1 
</VirtualHost> 

<VirtualHost *:80> 
    ServerAdmin [email protected] 
    DocumentRoot "C:/Applications/Apache Software Foundation/Apache2.2/htdocs" 
    ServerName pdapache.com 
    ErrorLog "logs/pdapache.com-error.log" 
    CustomLog "logs/pdapache.com-access.log" common 
    SetEnv MAGE_RUN_TYPE website 
    SetEnv MAGE_RUN_CODE base 
</VirtualHost> 

나는 이러한 주소 중 하나를 방문하십시오
http://test.pdapache.com/magento/index.php
http://www.paulsplace.com/magento/index.php
난 그냥라는 젠토 로고 에드 페이지를 얻을 수 "가되었다 홈 CMS 페이지가 구성되어 있지 않습니다. "

오히려 내가 사용하고 싶은 URL, 즉
http://test.pdapache.com
http://www.paulsplace.com
은 아파치 index.html "It works!" 페이지.

도움말! 나는 아마 어딘가에 어리석은 실수를 저질렀을지도 모른다고 생각한다.

답변

0

으로 설정하고 기본 URL에서 /magento을 제거하면 루트 수준에서 Magento가 표시됩니다.

+0

감사합니다. 이것은 분명히 나를 더욱 끌어 들였습니다. – user649650