2011-04-14 47 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