2011-04-14 45 views
0

我跟着Magento支持的文章介紹瞭如何設置一個包含多個網站,商店和商店視圖的Magento安裝,但它搞砸了我的安裝,我無法訪問任何東西。感謝我對我的文章的一些回覆,我能夠回到某種工作系統的外表。 我真的很感激,如果有人能夠發現我在我的設置中必須做的愚蠢的事情。Magento多網站/商店設置 - 請幫助!

我對此測試設置的要求如下:
- 一個單一管理區域。
- 兩個網站。
- 第一個網站有1個商店(有3個商店的意見)。
- 第二個網站有2個商店(每個商店都有一個商店的視圖)。
- 我寧願使用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:

Include conf/extra/httpd-vhosts.conf 

的httpd-vhosts.conf文件:

<VirtualHost *:80> 
    ServerAdmin [email protected]il.com 
    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
我得到了Magento的徽標的頁面,只是說:「有沒有配置或找到主頁CMS頁面「

我寧願使用的URL,即
http://test.pdapache.com
http://www.paulsplace.com
只顯示Apache index.html「It works!」頁。

幫助!我想我在某個地方犯了一個愚蠢的錯誤,可能不止一個,但我不知道在哪裏。

回答

0

將您的DocumentRoot設置爲C:/Applications/Apache Software Foundation/Apache2.2/htdocs/magento並從基址中刪除/magento以使Magento顯示在根級別。

+0

謝謝。這當然讓我進一步。 – user649650 2011-04-18 13:30:23