【问题标题】:Opencart How To] Multi-Store on Xampp LocalhostOpencart How To] Xampp 本地主机上的多商店
【发布时间】:2012-09-24 03:15:08
【问题描述】:

是否有人在他们的计算机中设置了Opencart 多存储在本地抛出Xampp,这将知道如何正确添加代码。我已经扔了和谷歌一样多的教程,这个论坛已经而且似乎无法弄清楚如何正确放置代码。将其放置在http.conf 文件中时的外观示例将 真的很有帮助。

教程要求我编辑 Apache 配置文件,为每个子商店添加“别名”。

别名/opcStore_1 "C:/xampp/htdocs/store"

别名/opcStore_2 "C:/xampp/htdocs/store"

  1. 转到此路径:C:\xampp\apache\conf\
  2. 找到httppd.conf文件并打开
  3. 搜索“”部分并在此部分中添加以下代码。 ???

别名/opcStore_1 "C:/xampp/htdocs/store"

别名/opcStore_2 "C:/xampp/htdocs/store"

添加代码后效果如何?我应该在哪里添加它以及它的外观? 因为我尝试放置它但只得到错误的本地 URL。谢谢

现在,您必须从 XAMPP 控制面板重新启动 Apache 服务器。重启后需要在Opencart配置中添加子商店。

OpenCart Multi store 的配置。

  1. 登录到您的主商店:C:/xampp/htdocs/store/admin
  2. 转到:系统 > 设置,您可以在此处添加新商店。
  3. 添加给商店网址时:对于第一家商店给网址:“http://localhost/opcStore_1/”

对于第二家商店,请提供网址:“http://localhost/opcStore_2/”

【问题讨论】:

    标签: xampp local opencart


    【解决方案1】:

    会是这个样子,最后我加了5个子店。

    # # Redirect: 允许你告诉客户关于过去的文档 # 存在于服务器的命名空间中,但不再存在。客户端 # 将在其新位置对文档发出新请求。 # 例子: # 重定向永久 /foo http://localhost/bar

    #
    # Alias: Maps web paths into filesystem paths and is used to
    # access content that does not live under the DocumentRoot.
    # Example:
    # Alias /webpath /full/filesystem/path
    #
    # If you include a trailing / on /webpath then the server will
    # require it to be present in the URL.  You will also likely
    # need to provide a <Directory> section to allow access to
    # the filesystem path.
    
    #
    # ScriptAlias: This controls which directories contain server scripts. 
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the target directory are treated as applications and
    # run by the server when requested rather than as documents sent to the
    # client.  The same rules about trailing "/" apply to ScriptAlias
    # directives as to Alias.
    #
    ScriptAlias /cgi-bin/ "cgi-bin/"  Alias /allbridaljewelry "C:/wamp/www/newStore"  Alias /caketopshop "C:/wamp/www/newStore"
    

    别名 /myspecialparty "C:/wamp/www/newStore" 别名 /superweddingday "C:/wamp/www/newStore" 别名 /weddingfavorsmart "C:/wamp/www/newStore"

    【讨论】:

      【解决方案2】:

      你可以检查这个How to setup our own domain when in a developing stage (not localhost)/

      它是印度尼西亚语,但您可以尝试 translate.google.com 来翻译它。

      希望对你有所帮助。

      【讨论】:

      • 他需要在localhost中添加
      【解决方案3】:

      假设您的主要商店是http://localhost/opencart-1.5.6.1

      1. 创建您的多商店(商店名称马来西亚),网址为 http://localhost/opencart-1.5.6.1/malaysia/
      2. 打开文件 C:\xampp\apache\conf\httpd.conf 并在 ScriptAlias /cgi-bin/ "C:/xampp/cgi-bin/" 之后添加此代码 Alias /opencart-1.5.6.1/malaysia "C:/xampp/htdocs/opencart-1.5.6.1/" 代码
      3. 重启 Apache 进程并尝试访问此 URL http://localhost/opencart-1.5.6.1/malaysia/

      【讨论】:

        猜你喜欢
        • 2017-06-28
        • 2015-06-01
        • 2012-08-17
        • 1970-01-01
        • 1970-01-01
        • 2016-10-25
        • 1970-01-01
        • 1970-01-01
        • 2017-01-17
        相关资源
        最近更新 更多