Opencart如何在Xampp Localhost上多存储

时间:2012-09-24 03:15:08

标签: xampp local opencart

是否有人在他们的计算机中设置了Opencart多部分,并在本地投掷Xampp,知道如何正确添加代码。我已经抛出了与Google一样多的教程,这个论坛已经并且似乎无法弄清楚如何正确放置代码。放入http.conf文件后它应该如何显示的示例 真的很有帮助。

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

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

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

  1. 转到此路径:C:\ xampp \ apache \ conf \
  2. 查找httppd.conf文件并将其打开
  3. 搜索“”部分并在此部分中添加以下代码。 ???
  4. 别名/opcStore_1 "C:/xampp/htdocs/store"

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

    在添加代码时如何看待?在哪里可以添加它以及它应该如何显示? 因为我尝试放置它但只获得错误的本地URL。感谢

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

    多商店的

    OpenCart配置。

    1. 登录到您的主要商店:C:/ xampp / htdocs / store / admin
    2. 转到:系统>设置,在这里您可以添加新商店。
    3. 添加商店网址时:为第一家商店提供网址:“http:// localhost / opcStore_1 /”
    4. 第二个商店的

      给网址:“http:// localhost / opcStore_2 /”

3 个答案:

答案 0 :(得分:1)

看起来像这样,最后我添加了5个子商店。

  

      #       #Redirect:允许您告诉客户有关以前的文档       #存在于服务器的命名空间中,但不再存在。客户端       #将在新位置对文档发出新请求。       #示例:       #重定向permanent / 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"
     

Alias / myspecialparty“C:/ wamp / www / newStore”Alias / superweddingday   “C:/ wamp / www / newStore”Alias / weddingfavorsmart   “C:/ wamp / www / newStore”

答案 1 :(得分:0)

您可以查看How to setup our own domain when in a developing stage (not localhost) /

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

希望它会有所帮助。

答案 2 :(得分:0)

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

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