是否有人在他们的计算机中设置了Opencart
多部分,并在本地投掷Xampp
,知道如何正确添加代码。我已经抛出了与Google一样多的教程,这个论坛已经并且似乎无法弄清楚如何正确放置代码。放入http.conf
文件后它应该如何显示的示例
真的很有帮助。
教程要求我编辑Apache配置文件为每个子商店添加“别名”。
别名/opcStore_1 "C:/xampp/htdocs/store"
别名/opcStore_2 "C:/xampp/htdocs/store"
别名/opcStore_1 "C:/xampp/htdocs/store"
别名/opcStore_2 "C:/xampp/htdocs/store"
在添加代码时如何看待?在哪里可以添加它以及它应该如何显示? 因为我尝试放置它但只获得错误的本地URL。感谢
现在,您必须从XAMPP
控制面板重新启动Apache服务器。重新启动后,您必须在Opencart
配置中添加子存储。
OpenCart
配置。
给网址:“http:// localhost / opcStore_2 /”
答案 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
http://localhost/opencart-1.5.6.1/malaysia/
Alias /opencart-1.5.6.1/malaysia "C:/xampp/htdocs/opencart-1.5.6.1/"
ScriptAlias /cgi-bin/ "C:/xampp/cgi-bin/"
代码
http://localhost/opencart-1.5.6.1/malaysia/