使用 Joomla 自定义域
Joomla 1.0.x 有什么好的组件允许服务自定义域吗?我想要实现的是销售对我的服务的订阅,并提供自定义品牌,包括自定义网址,例如 yourcompany.myservice.com 甚至 example.myservice.com。有什么指点吗?我已经销售订阅本身很长时间了,所以问题专门针对域部分 - 如何动态管理 apache vhosts/dns 设置/其他内容。
Is there any nice component for Joomla 1.0.x allowing to serve custom domains? What I am trying to archieve is to sell subscription to my service and to offer custom branding including custom urls like yourcompany.myservice.com and even example.myservice.com. Any pointers? I am selling subscriptions themselves already for a long time, so the question is specifically on the domain part - how to manage apache vhosts/dns settings/whatever dynamically.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
由于 Joomla 已经推出了 1.5 版本,因此很难找到您想要的 1.0 版本。我建议切换到 1.5。
您自己就可以轻松获得多领域能力。首先,您必须确保所有子域解析为同一组 IP。 (*.yoursite.com)
对于 1.0,您可能只需要插件就可以了,但您可能需要编辑核心。
如果您使用插件,例如系统插件,您可以在插件中检查 HOST 标头。
例如:
从此,您可以根据特定的设置/参数等。您还可以从组件、模块等内部进行检查。
一个示例是加载不同的模板。如果主机是子域,则加载该子域的自定义模板。
这实际上在 1.5 中更容易做到,因为您可以控制从插件加载的内容。
Since Joomla has moved on with version 1.5 it would be hard to find what you want for 1.0. I'd recommend switching to 1.5.
You can easily get multi-domain ability yourself. First you have to make sure all sub domains resolve to the same set of IPs. (*.yoursite.com)
For 1.0 you could probably get away with just plugins, but you might need to edit the core.
If you use a plugin, say a system plugin, in the plugin you can check for the HOST header.
eg:
From this, you base your specific settings/parameters etc. You can also do the check from within components, modules etc.
An example would be loading different template. If the host is a sub domain, then load a custom template for that sub domain.
This is actually a lot easier to do with 1.5 as you can control what loads from plugins.
您不需要更改 apache 配置。有几个插件可以根据域名选择 Joomla 配置(包括模板)和数据库,例如 Joomla Multisites (顺便说一句。我真的建议切换到 1.5)
You don't need to change the apache config. There are several Plugins that can choose the Joomla configuration (including the template) and database based on the Domain name e.g. Joomla Multisites (btw. I would really recommend switching to 1.5)