[英]Opencart How To] Multi-Store on Xampp Localhost
是否有人在本地計算機上建立了Opencart
多元存儲庫,讓Xampp
知道如何正確添加代碼。 我已經投入了與Google一樣多的教程,並且該論壇已經並且似乎無法弄清楚如何正確放置代碼。 放置在http.conf
文件中的外觀示例將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 /”
會看起來像這樣,最后我添加了5個子商店。
##重定向:允許您告訴客戶端有關#曾經存在於服務器名稱空間中但不再存在的文檔的信息。 客戶#將在其新位置對文檔提出新請求。 #示例:#重定向永久/ 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”
假設您的主要商店是http://localhost/opencart-1.5.6.1
http://localhost/opencart-1.5.6.1/malaysia/
ScriptAlias /cgi-bin/ "C:/xampp/cgi-bin/"
之后的代碼中添加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/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.