配置 Drupal 以使用现有的 Web 应用程序
我有一个现有的 Web 应用程序,我一直使用 ant 脚本构建该应用程序并将其作为 .war 文件部署到 Tomcat。
我正在尝试将 Drupal 添加到我当前的技术堆栈中,以提供 CMS 和一般 UI 相关功能,这样我就不必手动编写 html 页面,而是使用模板。
在安装 Drupal7 期间,一些说明建议我转到此目录:
/etc/apache2/sites-available
并将 DocumentRoot 更改为
/home/myuser/drupal/drupal7
如果我将 docroot 设置为文件系统上的基本目录,这将如何影响应用程序的工作方式?除了Apache之外,我还有Tomcat服务器。我的目标是让他们一起打得很好。如何最好地实现这一点?
I have an existing web application which I have been building with an ant script and deploying as a .war file to Tomcat.
I am trying to add Drupal to my current technology stack to provide CMS and general UI-related functionality so that I don't have to write my html pages by hand and rather use templates.
During the installation of Drupal7, some of the instructions suggest that I go to this directory:
/etc/apache2/sites-available
and change the DocumentRoot to
/home/myuser/drupal/drupal7
If I make the docroot a basic directory on the file system, how will this impact how the application will work? In addition to Apache, I also have Tomcat server. My goal is to get them to all play nice together. How is this best accomplished?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不确定您的意思。 /var/www 和 /home/mysuser/drupal/drupal7 之间没有质的区别。后者更长,并且位于用户的主目录中,但假设该用户无论如何都会管理该服务,这并不重要。
接下来,让 Tomcat 和 Apache 和谐相处的最佳方法可能是在不同的子域上运行其中一个。您可以使用相同的域,但这意味着您必须在非标准端口上运行其中一个守护程序,这看起来很奇怪,并且可能会遇到某些用户的防火墙问题。
I'm not sure what you mean by this. There's no qualitative difference between /var/www and /home/mysuser/drupal/drupal7. The latter is longer and in the user's home directory, but assuming this user would be administering the service anyway that doesn't matter.
Next, the best way to make Tomcat and Apache get along is probably to run one of them on different subdomains. You could use the same domain, but that'd mean you had to run one of the daemons off a nonstandard port and that looks strange and might run into firewall trouble with some users.